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
_______________________________________________
Koha-devel mailing list
Koha-devel@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to