]> git.koha-community.org Git - koha.git/commit
Bug 24068: Fix I18 plugin - tnpx must call __npx
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 19 Nov 2019 16:26:52 +0000 (17:26 +0100)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 22 Nov 2019 14:57:40 +0000 (14:57 +0000)
commit9abdc5945b937dd7a7d9888c63654c35a67c2675
treeb5e0e8cddda2514347df2ce35ecb59aa1b5c9e0a
parent000c42cd60f324a9c1d3fd92900b3be834505327
Bug 24068: Fix I18 plugin - tnpx must call __npx

Test plan:
Use the following code to test this change
    [% PROCESS 'i18n.inc' %]
    [% SET nb_stuffs = 1 %]
    [% tnpx('context', 'There is one stuff.', 'There are {count} stuffs.', nb_stuffs, { count = nb_stuffs }) | $raw  %]
    [% SET nb_stuffs = 42 %]
    [% tnpx('context', 'There is one stuff.', 'There are {count} stuffs.', nb_stuffs, { count = nb_stuffs }) | $raw  %]

Compare with and without the patch

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/Template/Plugin/I18N.pm