SHARYANTO::Role::I18N - Role for internationalized class
version 0.64
This role is for class that wants to provide localized text, using Locale::Maketext. It provides some convention and defaults.
Defaults to LANG or LANGUAGE environment variable, or en_US.
en_US
Project class. Defaults to $class::I18N.
The language handle, where you ask for localized text using lh->maketext(...).
lh->maketext(...)
Shortcut for $doc->lh->maketext(@args).
$doc->lh->maketext(@args)
Like loc(), but will trap missing translation. So instead of dying, it will return $args[0] instead.
Steven Haryanto <stevenharyanto@gmail.com>
This software is copyright (c) 2013 by Steven Haryanto.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
None are exported by default, but they are exportable.
To install SHARYANTO::Roles, copy and paste the appropriate command in to your terminal.
cpanm
cpanm SHARYANTO::Roles
CPAN shell
perl -MCPAN -e shell install SHARYANTO::Roles
For more information on module installation, please visit the detailed CPAN module installation guide.