]> git.saurik.com Git - wxWidgets.git/commitdiff
updated the script to generate pieces of TeX documentation as well
authorVáclav Slavík <vslavik@fastmail.fm>
Fri, 19 Jan 2001 00:18:43 +0000 (00:18 +0000)
committerVáclav Slavík <vslavik@fastmail.fm>
Fri, 19 Jan 2001 00:18:43 +0000 (00:18 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9128 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

misc/languages/genlang.py

index 2a09dae04b51e6726bf22002e6d5f076d6a87d2f..91b4483020de0638722aeeb61e139f7b11974a51 100755 (executable)
@@ -40,6 +40,25 @@ enum wxLanguage
    f.close()
 
 
+def GenDocs(table):
+   f = open('_wxlang.tex', 'wt')
+   f.write("""
+%% This enum is generated by misc/languages/genlang.py
+%% When making changes, please put them into misc/languages/langtabl.txt
+\\begin{itemize}\\itemsep=0pt
+\\item wxLANGUAGE_DEFAULT -- user's default language as obtained from the operating system 
+\\item wxLANGUAGE_UNKNOWN -- returned by \\helpref{GetSystemLanguage}{wxlocalegetsystemlanguage}
+if it fails to detect the default language 
+\\item wxLANGUAGE_USER_DEFINED -- user defined languages' integer identifiers should start from
+this
+""");
+   for i in table:
+       f.write('\\item %s\n' % (i[0].replace('_','\\_')))
+   f.write("""\\end{itemize}
+""")
+   f.close()
+
+
 
 
 def GenTable(table):
@@ -90,3 +109,4 @@ void wxLocale::InitLanguagesDB()
 table = ReadTable()
 GenEnum(table)
 GenTable(table)
+GenDocs(table)