mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
* po/lyx_pot.py (qt4_l10n):
- escape backslashes in ui strings. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24599 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
832bbc4329
commit
63f67b0116
@ -161,7 +161,8 @@ 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('&', '&').replace('<', '<').replace('>', '>').replace('"', r'\"')
|
||||
string = string.replace('&', '&').replace('<', '<').replace('>', '>')
|
||||
string = string.replace('\\', '\\\\').replace('"', r'\"')
|
||||
print >> output, '#: %s:%d\nmsgid "%s"\nmsgstr ""\n' % \
|
||||
(relativePath(src, base), lineno+1, string)
|
||||
input.close()
|
||||
|
Loading…
Reference in New Issue
Block a user