mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
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
This commit is contained in:
parent
6f0a9d94fe
commit
b5c25fe3b2
@ -222,7 +222,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('>', '>')
|
||||
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' % \
|
||||
|
Loading…
Reference in New Issue
Block a user