[Koha-devel] JSON templates and translation

Julian Maurice julian.maurice at biblibre.com
Fri Jul 17 10:26:42 CEST 2020


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


More information about the Koha-devel mailing list