Provided by: libsharyanto-utils-perl_0.53-1_all
NAME
SHARYANTO::Role::I18NMany - Role for internationalized class
VERSION
version 0.53
DESCRIPTION
This role is like SHARYANTO::Role::I18N but for class that wants to localize text for more than one languages. Its locl() accepts desired language as its first argument.
ATTRIBUTES
langs => ARRAY Defaults to a single element array with value of LANG or LANGUAGE environment variable, or "en_US". loc_class => STR Project class name. Defaults to $class::I18N.
METHODS
$doc->lh($lang) => OBJ Get language handle for a certain language. $lang is required. $doc->locl($lang, @args) => STR Shortcut for "$doc-"lh($lang)->maketext(@args)>.
AUTHOR
Steven Haryanto <stevenharyanto@gmail.com>
COPYRIGHT AND LICENSE
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.
FUNCTIONS
None are exported by default, but they are exportable.