[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:
@@ -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("'", "\\'") +
|
||||
"'"),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user