Pcore::Core::L10N - localization subsystem.
use Pcore -l10n => 'Domain'; say l10n 'text'; say l10n 'text', 'en'; say l10np 'text', 'text plural', 3; say l10np 'text', 'text plural', 3, 'en'; my $const = l10n_ 'text'; say const; say l10n $const; my $const_plural = l10np_ 'text', 'text_plural'; say $const_plural; say l10n $const_plural; say l10n $const_plural, 'en'; say l10np $const_plural, 3; say l10np $const_plural, 3, 'en'; say $l10n->{'text'}; say $l10n->{$const}; say $l10n->{[$const, 'en']}; say $l10n->{[ $const_plural, 3 ]}; say $l10n->{[ $const_plural, 3, 'en' ]};
zdm <zdm@softvisio.net>
This software is copyright (c) 2016 by zdm.
To install Pcore, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Pcore
CPAN shell
perl -MCPAN -e shell install Pcore
For more information on module installation, please visit the detailed CPAN module installation guide.