lyx_pot.py cannot deal with raw newlines in ui files. So, use the

html entity "
" and then transform it to "\n".


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@37026 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Enrico Forestieri 2010-12-28 23:29:51 +00:00
parent 1054800bf5
commit 432e32cd3a
2 changed files with 2 additions and 2 deletions

View File

@ -224,6 +224,7 @@ def qt4_l10n(input_files, output, base):
(string,) = pat.match(line).groups()
string = string.replace('&amp;', '&').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()

View File

@ -242,8 +242,7 @@
<item row="5" column="0" colspan="2">
<widget class="QCheckBox" name="singleInstanceCB">
<property name="toolTip">
<string>Whether to open documents in an already running instance of LyX.
(Set the LyXServer pipe path and restart LyX to enable this feature)</string>
<string>Whether to open documents in an already running instance of LyX.&#x0a;(Set the LyXServer pipe path and restart LyX to enable this feature)</string>
</property>
<property name="text">
<string>S&amp;ingle instance</string>