NAME
SHARYANTO::Role::I18NMany - Role for internationalized class
VERSION
version 0.21
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
lang
Defaults to LANG or LANGUAGE environment variable, or en_US
.
loc_class
Project class. 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)>.
FUNCTIONS
AUTHOR
Steven Haryanto <stevenharyanto@gmail.com>
COPYRIGHT AND LICENSE
This software is copyright (c) 2012 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.