From 3321fc55fcf59f8f2da668a0845e2a547681d630 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=A1clav=20Slav=C3=ADk?= Date: Fri, 19 Jan 2001 00:18:43 +0000 Subject: [PATCH] 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 --- misc/languages/genlang.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/misc/languages/genlang.py b/misc/languages/genlang.py index 2a09dae04b..91b4483020 100755 --- a/misc/languages/genlang.py +++ b/misc/languages/genlang.py @@ -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) -- 2.45.2