Data::Localize::Format::Gettext - Gettext Formatter
# Used by Data::Localize::Gettext by default, but if you want to # customize ( maybe include function calls "%myfunc(...)" ), then # do this: $loc = Data::Localize->new(); $loc->add_localizer( Data::Localize::Gettext->new( formatter => Data::Localize::Format::Gettext->new( functions => { foo => sub { my ($lang, $args) = @_; # $lang isa 'Str', # $args isa 'ArrayRef' return "localized text"; }, bar => sub { ... }, baz => sub { ... }, } ) ) );
To install Data::Localize, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::Localize
CPAN shell
perl -MCPAN -e shell install Data::Localize
For more information on module installation, please visit the detailed CPAN module installation guide.