Bug 22482 - Some characters are not escaped in translated file.
Summary: Some characters are not escaped in translated file.
Status: CLOSED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: Templates (show other bugs)
Version: 18.11
Hardware: Other Linux
: P5 - low minor
Assignee: Owen Leonard
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-08 10:55 UTC by Bastien Gonckel
Modified: 2020-06-04 20:33 UTC (History)
0 users

See Also:
GIT URL:
Initiative type: ---
Sponsorship status: ---
Comma delimited list of Sponsors:
Crowdfunding goal: 0
Crowdfunding committed: 0
Crowdfunding contact:
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bastien Gonckel 2019-03-08 10:55:31 UTC
It seems that the file fr-FR-staff-prog.po contain character that are not escaped on line 17596.

In the template memberentrygen.tt, line 1195 the string MSG_MESSAGING_DFEAULTS (I assume it was supposed to be MSG_MESSAGING_DEFAULTS) contain double quote, but these double quote are escaped in the .po file. With this unescapped character, the javascript fail, and I can't use the save button for saving user. Work fine in english.
Comment 1 Katrin Fischer 2019-08-18 10:51:30 UTC
Hi Bastien, 

this needs to be fixed in the translation (on translate.koha-community.org) for the French translation. You should always avoid adding quotes or using different quotes to the ones in the text you translate - this can break JavaScript as is the case here.

I don't speak French, so I have copied the translation from 19.05 that didn't use quotes for the other versions:

Modifier les préférences de notifications par défaut pour cette catégorie d'adhérent ?

I hope this fixes your issue.