[Koha-translate] Javascript escape char
Fridolyn SOMERS
fridolyn.somers at biblibre.com
Wed Oct 17 13:24:16 CEST 2012
Thinking of it, the best solution is to use ' instead of a quote :
translate "Today" into "Aujourd'hui".
It is good for both HTML and Javascript.
What about it ?
Le 17/10/2012 13:07, Fridolyn SOMERS a écrit :
> Hie,
>
> It appears translating into fr-FR brakes Javascript in calendar.inc.
> Because (line 31) :
> currentText: _('Today'),
> is translated
> currentText: _('Aujourd'hui'),
> Additionnal quote brakes the Javascript.
>
> What should we do : translate with escape char ("Aujourd\\'hui" in
> PO) or should translation script handle it ?
> If same text is used in both Javascript and HTML, escape char can not
> be used.
>
> Best regards
>
> --
> Fridolyn SOMERS
> Biblibre - Pôle Support
> fridolyn.somers at biblibre.com <mailto:fridolyn.somers at biblibre.com>
--
Fridolyn SOMERS
Biblibre - Pôle Support
fridolyn.somers at biblibre.com <mailto:fridolyn.somers at biblibre.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/koha-translate/attachments/20121017/79260f5b/attachment.htm>
More information about the Koha-translate
mailing list