]> git.lyx.org Git - features.git/commitdiff
Add language and encoding information
authorJosé Matox <jamatos@lyx.org>
Wed, 9 Aug 2006 22:22:59 +0000 (22:22 +0000)
committerJosé Matox <jamatos@lyx.org>
Wed, 9 Aug 2006 22:22:59 +0000 (22:22 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@14599 a592a061-630c-0410-9148-cb99ea01b6c8

lib/doc/doc_toc.py

index 8fa2eedc47ccce989098d8ec675b058a3982bbda..899e84bf240ff448a26e2f6d2a24007dd83de2dd 100755 (executable)
@@ -119,6 +119,8 @@ def main(argv):
     file = LyX.NewFile(output= pref + 'TOC.lyx')
     data = info[lang]
     file.set_header(language = data[0], language_quotes = data[1], inputencoding = data[2])
+    file.language = data[0]
+    file.encoding = data[2]
     body = [ LyX.Paragraph('Title', [data[3]])]
     body.extend(build_from_toc(toc_general))
     file.set_body(body)