updated the script to generate pieces of TeX documentation as well
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@9128 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
ec5d715214
commit
3321fc55fc
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user