JSON templates and translation
Hi, We faced a bug on a JSON template broken by PO translation of the column "borrowernumber" /koha-tmpl/intranet-tmpl/prog/en/modules/members/tables/members_results.tt How could we avoid this ? 1/ Disable translation of JSON templates and JS caller must translate using _(). 2/ Add a way to define string to translate in JSON templates, like _() in JS. Best regards, -- Fridolin SOMERS <fridolin.somers@biblibre.com> Software and system maintainer 🦄 BibLibre, France
3/ Build JSON in Perl script/module, and use Koha::I18N's __() for translatable strings. Le 17/07/2020 à 09:51, Fridolin SOMERS a écrit :> Hi,
We faced a bug on a JSON template broken by PO translation of the column "borrowernumber" /koha-tmpl/intranet-tmpl/prog/en/modules/members/tables/members_results.tt
How could we avoid this ?
1/ Disable translation of JSON templates and JS caller must translate using _().
2/ Add a way to define string to translate in JSON templates, like _() in JS.
Best regards,
-- Julian Maurice BibLibre
participants (2)
-
Fridolin SOMERS -
Julian Maurice