<<

NAME

Koha::Template::Plugin::I18N - Translate strings in templates

SYNOPSIS

Do not use this plugin directly. Add the following directive

    [% PROCESS 'i18n.inc' %]

and use the macros defined here

METHODS

t

    [% I18N.t("hello") %]

tx

    [% I18N.tx("hello {name}", { name = name }) %]

tn

    [% I18N.tn("item", "items", count) %]

tnx

    [% I18N.tnx("{count} item", "{count} items", count, { count = count }) %]

txn

Alias of tnx

tp

    [% I18N.tp("context", "hello") %]

tpx

    [% I18N.tpx("context", "hello {name}", { name = name }) %]

tnp

    [% I18N.tnp("context", "item", "items") %]

tnpx

    [% I18N.tnpx("context", "{count} item", "{count} items", { count = count }) %]

<<