From de11d52ad45dca674c2d75284ee854f4284a15be Mon Sep 17 00:00:00 2001 From: az-flectra Date: Fri, 6 Jul 2018 11:00:29 +0530 Subject: [PATCH] Added Upstream Patch for transifex --- addons/transifex/models/ir_translation.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/addons/transifex/models/ir_translation.py b/addons/transifex/models/ir_translation.py index 1252e5ef..95f49127 100644 --- a/addons/transifex/models/ir_translation.py +++ b/addons/transifex/models/ir_translation.py @@ -78,11 +78,14 @@ class IrTranslation(models.Model): translation.transifex_url = False continue - # e.g. 'https://www.transifex.com/flectra/flectra-10/translate/#fr/sale/42?q=Sale+Order' + # e.g. 'https://www.transifex.com/flectra/flectra-10/translate/#fr/sale/42?q=text'Sale+Order' translation.transifex_url = "%(url)s/%(project)s/translate/#%(lang)s/%(module)s/42?q=%(src)s" % { 'url': base_url, 'project': project, 'lang': lang_code, 'module': translation.module, - 'src': werkzeug.url_quote_plus(translation.source[:50]), + 'src': werkzeug.url_quote_plus( + "text:'" + + translation.source[:50].replace("'", "\'") + + "'"), }