The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

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

VERSION

version 0.29

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

DESCRIPTION

This module has Rinci metadata.

FUNCTIONS

None are exported by default, but they are exportable.

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.