Mojolicious::Plugin::I18n(3pm)

Mojolicious::Plugin::I18n3pm

Intenationalization plugin

Usage

    # Mojolicious
    $self->plugin('i18n');
    % languages 'de';
    <%=l 'hello' %>
    # Mojolicious::Lite
    plugin 'i18n' => {namespace => 'MyApp::I18N'};
    <%=l 'hello' %>
    # Lexicon
    package MyApp::I18N::de;
    use base 'MyApp::I18N';
    our %Lexicon = (hello => 'hallo');
    1;

Overview

Mojolicous::Plugin::I18n adds Locale::Maketext support to Mojolicious.

Methods

Mojolicious::Plugin::I18n inherits all methods from Mojolicious::Plugin and implements the following new ones.

"register"

    $plugin->register;

Register plugin hooks and helpers in Mojolicious application.

From libmojolicious-perl 0.999926-1+squeeze2 in Debian 6.0 (Squeeze). Parsed by carta from the page's man source.