Koha/koha-tmpl/intranet-tmpl/prog/en/includes/i18n.inc
Julian Maurice d1c6e70b44 Bug 15395: Make QA test script happy
It is not totally happy because of the template file used in tests.
It has line breaks inside TT directives and QA test script complains
because line breaks in TT directives confuse the current translatable
strings extractor.
However this patchset (along with bug 20988) will hopefully make the
current extractor obsolete and thus make the 'no-line-breaks' rule
useless

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
2018-11-08 15:55:52 +00:00

38 lines
1,020 B
PHP

[% USE I18N %]
[% USE raw %]
[% MACRO t(msgid) BLOCK %]
[% I18N.t(msgid) | $raw %]
[% END %]
[% MACRO tx(msgid, vars) BLOCK %]
[% I18N.tx(msgid, vars) | $raw %]
[% END %]
[% MACRO tn(msgid, msgid_plural, count) BLOCK %]
[% I18N.tn(msgid, msgid_plural, count) | $raw %]
[% END %]
[% MACRO tnx(msgid, msgid_plural, count, vars) BLOCK %]
[% I18N.tnx(msgid, msgid_plural, count, vars) | $raw %]
[% END %]
[% MACRO txn(msgid, msgid_plural, count, vars) BLOCK %]
[% I18N.txn(msgid, msgid_plural, count, vars) | $raw %]
[% END %]
[% MACRO tp(msgctxt, msgid) BLOCK %]
[% I18N.tp(msgctxt, msgid) | $raw %]
[% END %]
[% MACRO tpx(msgctxt, msgid, vars) BLOCK %]
[% I18N.tpx(msgctxt, msgid, vars) | $raw %]
[% END %]
[% MACRO tnp(msgctxt, msgid, msgid_plural, count) BLOCK %]
[% I18N.tnp(msgctxt, msgid, msgid_plural, count) | $raw %]
[% END %]
[% MACRO tnpx(msgctxt, msgid, msgid_plural, count, vars) BLOCK %]
[% I18N.tnpx(msgctxt, msgid, msgid_plural, count, vars) | $raw %]
[% END %]