]> git.lyx.org Git - lyx.git/blobdiff - lib/doc/doc_toc.py
German docs: updates and fixes by Hartmut
[lyx.git] / lib / doc / doc_toc.py
index 61e5fb8d4f9e7ccecdea39266934dc1eb79a37bb..5ecca5ed0851e5f074de3df56bec7cabf235ba51 100755 (executable)
@@ -22,7 +22,7 @@
 # It does so by going through the files and printing out all of the
 # chapter, section, and sub(sub)section headings out. (It numbers the
 # sections sequentially; hopefully noone's using Section* in the docs.)
-# It is calledusing this syntax:
+# It is called using this syntax:
 # depend.py doc_toc.py SetOfDocuments
 # where SetOfDocuments is a set of documents
 
@@ -41,14 +41,16 @@ import LyX
 import depend
 
 # Specific language information
-# info["isoname"] = (language, language_quotes, enconding, TOC_translated)
-info = { 'cs' : ('czech', 'german', 'latin2', "Obsah dokumentace LyXu"),
-         'da' : ('danish', 'german', 'latin1', "Indholdsfortegnelse over LyX's dokumentation"),
-         'de' : ('german', 'german', 'latin1', "Inhaltsverzeichnis LyX Dokumentation"),
-         'fr' : ('french', 'french', 'latin1', "Plan de la documentation"),
-         'ru' : ('russian', 'english', 'koi8-r', "LyX Documentation Table of Contents"),
-         'sl' : ('slovene', 'german', 'latin2', "Kazalo dokumentacije LyXa"),
-         'en' : ('english', 'english', 'latin1', "LyX Documentation Table of Contents")}
+# info["isoname"] = (language, language_quotes, TOC_translated)
+info = { 'cs' : ('czech', 'german', u"Obsah dokumentace LyXu"),
+         'da' : ('danish', 'german', u"Indholdsfortegnelse over LyX's dokumentation"),
+         'de' : ('german', 'german', u"Inhaltsverzeichnis LyX Dokumentation"),
+         'es' : ('spanish', 'spanish', u"Índice general LyX documentation"),
+         'fr' : ('french', 'french', u"Plan de la documentation LyX"),
+        'ja' : ('japanese', 'japanese', u"LyX取扱説明書目次"),
+         'ru' : ('russian', 'english', u"LyX Documentation Table of Contents"),
+         'sl' : ('slovene', 'german', u"Kazalo dokumentacije LyXa"),
+         'en' : ('english', 'english', u"LyX Documentation Table of Contents")}
 
 def usage(pname):
     print """Usage: %s lang output
@@ -120,7 +122,7 @@ def build_toc(output, documents, lang=None):
     file.set_header(language = data[0], language_quotes = data[1], inputencoding = "auto")
     file.language = data[0]
     file.encoding = "utf-8"
-    body = [ LyX.Paragraph('Title', [data[3]])]
+    body = [ LyX.Paragraph('Title', [data[2]])]
     body.extend(build_from_toc(toc_general))
     file.set_body(body)
     file.write()
@@ -128,7 +130,7 @@ def build_toc(output, documents, lang=None):
     
 def main(argv):
     if len(argv) != 3:
-        usage()
+        usage(argv[0])
         sys.exit(1)
 
     lang = argv[1]