- SEE ALSO
Mango::Catalyst::Plugin::I18N - Custom Catalyst I18N Plugin
use Catalyst qw/ -Debug ConfigLoader +Mango::Catalyst::Plugin::I18N Static::Simple /; $c->localize('Hello [_1]', 'world');
Mango::Catalyst::Plugin::I18N is a custom Catalyst plugin for localizing text messages within a Mango application.
The following configuration variables are available:
If specific, this is the name of the class to be used to localize text. The class can be any class that supports the Locale::MAketext interface.
IF no class is specified, $appname::I18N will be loaded. IF that does not exist, $appname::L10N will be loaded.
Same as "language".
Returns the first supported language from the first available localization class.
Same as "languages".
Returns an array reference containing the list of requested languages from %ENV/Accept-Language.
Same as "localize".
Localizes the given text using the first available localization class (i18n_class, $appname::I18N, $appname::L10N). If the text appears unchanged, Mango::I18N will be called to localize the text as a last resort.
Called by Catalyst when loading the plugin.
Christopher H. Laco CPAN ID: CLACO firstname.lastname@example.org http://today.icantfocus.com/blog/