]> git.lyx.org Git - features.git/commitdiff
* fix translation of module descriptions that have a backslash (bug 4799).
authorJürgen Spitzmüller <spitz@lyx.org>
Sun, 27 Apr 2008 09:27:50 +0000 (09:27 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Sun, 27 Apr 2008 09:27:50 +0000 (09:27 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@24517 a592a061-630c-0410-9148-cb99ea01b6c8

lib/layouts/endnotes.module
lib/layouts/foottoend.module
po/lyx_pot.py

index ce06955f143ce3f3ccc429bf67ec867549ab3985..4811f353c929f74ce7b43b693ddf0505f2815fce 100644 (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
index dbbbc19151ffb9548a09752a7736f3dbaa1ed341..09b238c18796f49846683c76a9cadb6c12040219 100644 (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
 
index b27639886026478bd4402a5e78334bb8b6e02684..bb99e46eee0d31ef359222135a221204e2693423 100755 (executable)
@@ -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