Maroš Kollár > CatalystX-I18N > CatalystX::I18N::Maketext

Download:
CatalystX-I18N-1.13.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Source  

NAME ^

CatalystX::I18N::Maketext - Wrapper around Locale::Maketext

SYNOPSIS ^

 package MyApp::Maketext;
 use parent qw(CatalystX::I18N::Maketext);

DESCRIPTION ^

This class can be used as your Maketext base-class. It is a wrapper around Locale::Maketext and provides methods for auto-loading lexicon files. It is designed to work toghether with CatalystX::Model::Maketext.

You need to subclass this package in your project in order to use it.

MEDTHODS ^

load_lexicon

 MyApp::Maketext->load_lexicon(
     locales        => ['de','de_AT'],              # Required
     directories    => ['/path/to/your/maketext/files'], # Required
     gettext_style  => 0,                           # Optional, Default 1
     inheritance    => {                            # Optional
         de_AT          => 'de',
     },
 );

This method will search the given directories and load all available maketext files for the requested locales

If no translation files can be found for a given locale then Locale::Maketext::Lexicon::Auto will be loaded.

The following parameters are recognized/required

SEE ALSO ^

Locale::Maketext and Locale::Maketext::Lexicon

AUTHOR ^

    Maroš Kollár
    CPAN ID: MAROS
    maros [at] k-1.com
    
    L<http://www.k-1.com>
syntax highlighting: