Provided by: libsharyanto-utils-perl_0.53-1_all bug

NAME

       SHARYANTO::Role::I18N - Role for internationalized class

VERSION

       version 0.53

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)".

   $doc->locopt(@args) => STR
       Like loc(), but will trap missing translation. So instead of dying, it will return
       $args[0] instead.

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.