]> git.lyx.org Git - lyx.git/blobdiff - po/lyx_pot.py
* sk.po
[lyx.git] / po / lyx_pot.py
index 3bed049ce04b5c8cb9dea3e1189b95b647981174..88d35a9921c381ea694dd9d2364bc9623e60fede 100755 (executable)
@@ -222,8 +222,10 @@ def qt4_l10n(input_files, output, base):
             # get lines that match <string>...</string>
             if pat.match(line):
                 (string,) = pat.match(line).groups()
-                string = string.replace('&amp;', '&').replace('&lt;', '<').replace('&gt;', '>')
+                string = string.replace('&amp;', '&').replace('&quot;', '"')
+                string = string.replace('&lt;', '<').replace('&gt;', '>')
                 string = string.replace('\\', '\\\\').replace('"', r'\"')
+                string = string.replace('&#x0a;', r'\n')
                 print >> output, '#: %s:%d\nmsgid "%s"\nmsgstr ""\n' % \
                     (relativePath(src, base), lineno+1, string)
         input.close()