From b5c25fe3b27906380b3bf57a4009c3f62caa4c69 Mon Sep 17 00:00:00 2001 From: Enrico Forestieri Date: Wed, 29 Dec 2010 02:00:27 +0000 Subject: [PATCH] When collecting strings from ui-files, transform the html entity '"' to '"' for the sake of gettext tools, which are html-agnostic. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37029 a592a061-630c-0410-9148-cb99ea01b6c8 --- po/lyx_pot.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/po/lyx_pot.py b/po/lyx_pot.py index a9fd035879..88d35a9921 100755 --- a/po/lyx_pot.py +++ b/po/lyx_pot.py @@ -222,7 +222,8 @@ def qt4_l10n(input_files, output, base): # get lines that match ... if pat.match(line): (string,) = pat.match(line).groups() - string = string.replace('&', '&').replace('<', '<').replace('>', '>') + string = string.replace('&', '&').replace('"', '"') + string = string.replace('<', '<').replace('>', '>') string = string.replace('\\', '\\\\').replace('"', r'\"') string = string.replace(' ', r'\n') print >> output, '#: %s:%d\nmsgid "%s"\nmsgstr ""\n' % \ -- 2.39.2