Dmytro Zagashev
and 1 contributors

NAME

Pcore::Ext::App::Class::Ctx::L10N - ExtJS function call generator

SYNOPSIS

    my $str = l10n('singular form', 'plural form', 5);

    {
        text => 'prefix' . l10n('singular form') . 'suffix',
        text => 'prefix' . l10n('singular form', 'plural form', 5) . 'suffix',

        method => func <<"JS",
            console.log('prefix' + $l10n{'singular form'} + 'suffix');

            console.log('prefix' + $str + 'suffix');

            // redefine num for the predefined l10n string
            var num = 10;
            console.log('prefix' + @{[ $str->('num') ]} + 'suffix');
    JS
    }

DESCRIPTION

ATTRIBUTES

METHODS

SEE ALSO

AUTHOR

zdm <zdm@softvisio.net>

COPYRIGHT AND LICENSE

This software is copyright (c) 2016 by zdm.