[FIX] transifex: actually escape strings containing a '

The report's template is wrong
should becomes

text:'The report\'s template is wrong'

but previous code had no effect
This commit is contained in:
Martin Trigaux
2018-09-03 15:03:09 +02:00
parent bc913d9d2b
commit 98665aca1c
+1 -1
View File
@@ -86,6 +86,6 @@ class IrTranslation(models.Model):
'module': translation.module,
'src': werkzeug.url_quote_plus(
"text:'" +
translation.source[:50].replace("'", "\'") +
translation.source[:50].replace("'", "\\'") +
"'"),
}