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):
table = ReadTable()
GenEnum(table)
GenTable(table)
+GenDocs(table)