NAME

Locale::TextDomain::OO::Plugin::Language::LanguageOfLanguages - Select a language of a list

$Id: LanguageOfLanguages.pm 461 2014-01-09 07:57:37Z steffenw $

$HeadURL: svn+ssh://steffenw@svn.code.sf.net/p/perl-gettext-oo/code/module/trunk/lib/Locale/TextDomain/OO/Plugin/Language/LanguageOfLanguages.pm $

VERSION

1.006

DESCRIPTION

This plugin provides the languages method. After set of languages it will find and set the first language match in lexicon. Otherwise language is set to i-default.

SYNOPSIS

$loc = Locale::TextDomain::OO->new(
    plugins => [ qw (
        Language::LanguageOf Languages
        ...
    ) ],
    ...
);

SUBROUTINES/METHODS

method languages

E.g. if exists no lexicon for "de-de" but one for "de" the language is set to "de";

$loc->languages([ qw( de-de de en ) ]);

And read back what languages are set.

$languages_ref = $loc->languages;

EXAMPLE

Inside of this distribution is a directory named example. Run this *.pl files.

DIAGNOSTICS

none

CONFIGURATION AND ENVIRONMENT

none

DEPENDENCIES

Locale::TextDomain::OO::Singleton::Lexicon

Moo::Role

MooX::Types::MooseLike::Base

namespace::autoclean

Locale::TextDomain::OO::Lexicon::Role::Constants

INCOMPATIBILITIES

not known

BUGS AND LIMITATIONS

none

SEE ALSO

Locale::TextDoamin::OO

AUTHOR

Steffen Winkler

LICENSE AND COPYRIGHT

Copyright (c) 2013 - 2014, Steffen Winkler <steffenw at cpan.org>. All rights reserved.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.