NAME
SHARYANTO::Role::I18N - Role for internationalized class
VERSION
version 0.17
DESCRIPTION
This role is for class that wants to provide localized text, using Locale::Maketext. It provides some convention and defaults.
ATTRIBUTES
lang
Defaults to LANG or LANGUAGE environment variable, or en_US
.
loc_class
Project class. Defaults to $class::I18N.
lh
The language handle, where you ask for localized text using lh-
maketext(...)>.
METHODS
$doc->loc(@args) => STR
Shortcut for $doc-
lh->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.