* fix translation of module descriptions that have a backslash (bug 4799).

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24517 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2008-04-27 09:27:50 +00:00
parent b802c68fe1
commit ff0e3cd8b2
3 changed files with 3 additions and 4 deletions

View File

@ -1,7 +1,7 @@
#\DeclareLyXModule[endnotes.sty]{Endnote}
#DescriptionBegin
#Adds an endnote command, in addition to footnotes. You will need to add
#\\theendnotes in ERT where you want the endnotes to appear.
#\theendnotes in ERT where you want the endnotes to appear.
#DescriptionEnd
Format 7

View File

@ -1,6 +1,6 @@
#\DeclareLyXModule[endnotes.sty]{Foot to End}
#DescriptionBegin
#Sets all footnotes as endnotes. You will need to add \\theendnotes
#Sets all footnotes as endnotes. You will need to add \theendnotes
#in ERT where you want the endnotes to appear.
#DescriptionEnd

View File

@ -96,8 +96,7 @@ def layouts_l10n(input_files, output, base):
if res != None:
readingDescription = False
desc = " ".join(descLines)
print >> out, '#: %s:%d\nmsgid "%s"\nmsgstr ""\n' % \
(relativePath(src, base), lineno + 1, desc)
writeString(out, src, base, lineno + 1, desc)
continue
descLines.append(line[1:].strip())
continue