To install this module, run the following commands:
perl Makefile.PL
make
make test
make install
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