Catalyst::Plugin::Data::Localize - Add localize() To Your App
# in your app package MyApp; use Catalyst ( # amon other things... 'Data::Localize' ); # in your model package MyApp::Model::Data::Localize; use base qw(Catalyst::Model::Data::Localize); # else where in your app $string = $c->localize($key, @args);
Catalyst::Plugin::Data::Localize is a very thin wrapper around Catalyst::Model::Data::Localize. You only need this if you want to call localize on the context object.
This module exists mainly to be a stop-gap bridge for people already using Catalyst::Plugin::I18N. If you can get away with it, you might want to deal with Catalyst::Model::Data::Localize directly instead:
# in your controller $c->stash->{localize} = $c->model('Data::Localize'); # in your template [% localize.loc(key) %]
Daisuke Maki <daisuke@endeworks.jp>
<daisuke@endeworks.jp>
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://www.perl.com/perl/misc/Artistic.html
To install Catalyst::Model::Data::Localize, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::Model::Data::Localize
CPAN shell
perl -MCPAN -e shell install Catalyst::Model::Data::Localize
For more information on module installation, please visit the detailed CPAN module installation guide.