CatalystX::I18N::DataLocalize - Wrapper around Data::Localize
package MyApp::DataLocalize; use Moose; extends qw(CatalystX::I18N::DataLocalize);
This class can be used as your Data Localize base-class. It is a wrapper around Data::Localize and provides methods for auto-loading po files. It is designed to work toghether with CatalystX::Model::DataLocalize.
You need to subclass this package in your project in order to use it.
MyApp::DataLocalize->add_localizer( locales => ['de','de_AT'], # Required directories => ['/path/to/your/maketext/files'], # Required );
This method will search the given directories and load all available *.po files.
This class provides only the most basic functionality and probably needs to be re-implemented according to your specific requirements.
Data::Localize
Maroš Kollár CPAN ID: MAROS maros [at] k-1.com L<http://www.k-1.com>
To install CatalystX::I18N, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CatalystX::I18N
CPAN shell
perl -MCPAN -e shell install CatalystX::I18N
For more information on module installation, please visit the detailed CPAN module installation guide.