https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24068

--- Comment #1 from Jonathan Druart <[email protected]> 
---
Created attachment 95578
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=95578&action=edit
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

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to