Daisuke Maki
and 1 contributors


Catalyst::Plugin::Data::Localize - Add localize() To Your App


    # in your app
    package MyApp;
    use Catalyst (
        # amon other things...

    # 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>


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