Locale:...anguages(3)
π Locale::TextDomain::OO::Plugin::Language::LanguageOfLanguages π
okay so bestie, this is a manual page for a Perl module called Locale::TextDomain::OO::Plugin::Language::LanguageOfLanguages, and it does exactly one iconic thing: Select a language of a list. that's the whole gig. main character energy, one job, does it well. π
also here's the boring-but-official paperwork that comes with it, no cap:
$Id: LanguageOfLanguages.pm 603 2015-08-09 16:46:25Z 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.014 β that's the one, that's the version, periodt.
π¦ DESCRIPTION π¦
so this plugin right here? it hands you the languages method. π«Ά
once you've set a list of languages, it goes and finds the first language match in the lexicon, and sets that. that's it. that's the moment.
but if there's no match at all? then the language gets set to i-default. yep. fallback queen. π
πΈ SYNOPSIS πΈ
drop it into your plugin list like this, bestie:
$loc = Locale::TextDomain::OO->new(
plugins => [ qw (
Language::LanguageOfLanguages
...
) ],
...
);
π SUBROUTINES/METHODS π
π method languages
so like, imagine there's no lexicon for "de-de" but there is one for "de" β then the language gets set to "de". the way it just... downgrades gracefully. we love to see it. β¨
$loc->languages([ qw( de-de de en ) ]);
and then you can read back which languages got set, like a little peek at the receipts:
$languages_ref = $loc->languages;
π₯ EXAMPLE π₯
inside of this distribution there's a directory named example. go run those *.pl files, bestie, they're right there waiting for you. πββοΈπ¨
π DIAGNOSTICS π
none β nothing, silence, no drama. π
π CONFIGURATION AND ENVIRONMENT π
none β nope, nothing to configure, nothing to set, she's low maintenance fr fr.
β DEPENDENCIES β
she does not come alone, she brings her friends:
Locale::TextDomain::OO::Singleton::LexiconLocale::TextDomain::OO::Util::JoinSplitLexiconKeysMoo::RoleMooX::Types::MooseLike::Basenamespace::autoclean
π« INCOMPATIBILITIES π«
not known β as far as anyone knows, she plays nice with everybody. no beef. π€
π BUGS AND LIMITATIONS π
none β flawless?? allegedly. we're choosing to believe it. β¨
π SEE ALSO π
Locale::TextDoamin::OO
π AUTHOR π
Steffen Winkler β thank you for your service, king. π«‘
π 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.
so yeah, it's Perl-licensed, go wild (within the same terms as Perl itself, obviously π ).
and that's the whole page, bestie!! this gem was generated by perl v5.42.0 and the page itself is dated 2025-07-25. mwah, go forth and localize. ππ¦
π¦ where this page comes from
- fedora 43: perl-Locale-TextDomain-OO 1.036-19.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms