From ff0e3cd8b23542694ac5bcd9627968548a39d1fe Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=BCrgen=20Spitzm=C3=BCller?= Date: Sun, 27 Apr 2008 09:27:50 +0000 Subject: [PATCH] * 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 --- lib/layouts/endnotes.module | 2 +- lib/layouts/foottoend.module | 2 +- po/lyx_pot.py | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/layouts/endnotes.module b/lib/layouts/endnotes.module index ce06955f14..4811f353c9 100644 --- a/lib/layouts/endnotes.module +++ b/lib/layouts/endnotes.module @@ -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 diff --git a/lib/layouts/foottoend.module b/lib/layouts/foottoend.module index dbbbc19151..09b238c187 100644 --- a/lib/layouts/foottoend.module +++ b/lib/layouts/foottoend.module @@ -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 diff --git a/po/lyx_pot.py b/po/lyx_pot.py index b276398860..bb99e46eee 100755 --- a/po/lyx_pot.py +++ b/po/lyx_pot.py @@ -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 -- 2.39.2