Locale::Maketext::ManyPluralForms
use Locale::Maketext::ManyPluralForms {'*' => ['Gettext' => 'i18n/*.po']}; my $lh = Locale::Maketext::ManyPluralForms->get_handle('en'); $lh->maketext("Hello");
The implementation supporting internationalisation with many plural forms using Plural-Forms header from .po file to add plural method to Locale::Maketext based class. As described there http://www.perlmonks.org/index.pl?node_id=898687.
This method to specify languages.
This method handles plural forms. You can invoke it using Locale::Maketext's bracket notation, like "[plural,_1,string1,string2,...]". Depending on value of $num and language function returns one of the strings. If string contain %d it will be replaced with $num value.
Locale::Maketext, Locale::Maketext::Lexicon
Copyright (C) 2016 binary.com
To install Locale::Maketext::ManyPluralForms, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Locale::Maketext::ManyPluralForms
CPAN shell
perl -MCPAN -e shell install Locale::Maketext::ManyPluralForms
For more information on module installation, please visit the detailed CPAN module installation guide.