Skip to content

Commit

Permalink
deal with " in translations... dedicated especially to our Portuguese…
Browse files Browse the repository at this point in the history
… friends. :-D
  • Loading branch information
iBaa committed Aug 10, 2014
1 parent 5cfa56c commit 6c00e3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Localize.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def pickLanguage(languages):
def replaceTEXT(textcontent, language):
translation = getTranslation(language)
for msgid in set(re.findall(r'\{\{TEXT\((.+?)\)\}\}', textcontent)):
msgstr = translation.ugettext(msgid)
msgstr = translation.ugettext(msgid).replace('\"', '\\\"')
textcontent = textcontent.replace('{{TEXT(%s)}}' % msgid, msgstr)
return textcontent

Expand Down

0 comments on commit 6c00e3b

Please sign in to comment.