From b142b5f546ddd216cd089455e79bfb15e22f9a7e Mon Sep 17 00:00:00 2001 From: "P. Christeas" Date: Tue, 9 Jun 2009 01:19:23 +0300 Subject: [PATCH] When exporting translations, quote the backslash bzr revid: p_christ@hol.gr-20090608221923-he37i0dztj3shpvm --- bin/tools/translate.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/tools/translate.py b/bin/tools/translate.py index fb720c389a7..93451115edc 100644 --- a/bin/tools/translate.py +++ b/bin/tools/translate.py @@ -273,7 +273,8 @@ class TinyPoFile(object): def write(self, modules, tnrs, source, trad): def quote(s): return '"%s"' % s.replace('"','\\"') \ - .replace('\n', '\\n"\n"') + .replace('\n', '\\n"\n"') \ + .replace(' \\ ',' \\\\ ') plurial = len(modules) > 1 and 's' or '' self.buffer.write("#. module%s: %s\n" % (plurial, ', '.join(modules)))