[Koha-translate] Javascript escape char
Fischer, Katrin
Katrin.Fischer at bsz-bw.de
Wed Oct 17 13:11:31 CEST 2012
Hi Fridolyn,
as an easy fix you could change the javascript to
currentText: _(“Today”),
But I think it would be a lot nicer if we could teach the translation scripts to use escape characters in the right places. In German we normally would use double quotes and not single quotes for quoting things in text, but at the moment I am always worried to break Javascript using them.
Katrin
From: koha-translate-bounces at lists.koha-community.org [mailto:koha-translate-bounces at lists.koha-community.org] On Behalf Of Fridolyn SOMERS
Sent: Wednesday, October 17, 2012 1:08 PM
To: koha-translate at lists.koha-community.org
Subject: [Koha-translate] Javascript escape char
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/koha-translate/attachments/20121017/7ac5605e/attachment.htm>
More information about the Koha-translate
mailing list