summaryrefslogtreecommitdiff
path: root/helpcontent2/help-to-wiki.py
diff options
context:
space:
mode:
Diffstat (limited to 'helpcontent2/help-to-wiki.py')
-rwxr-xr-xhelpcontent2/help-to-wiki.py31
1 files changed, 19 insertions, 12 deletions
diff --git a/helpcontent2/help-to-wiki.py b/helpcontent2/help-to-wiki.py
index 717bcd5849..ca3b774d93 100755
--- a/helpcontent2/help-to-wiki.py
+++ b/helpcontent2/help-to-wiki.py
@@ -12,8 +12,9 @@ def usage():
print '''
help-to-wiki.py - converts .xhp files into a wiki
--h, --help - this help
--r, --redirects - generate also redirect pages
+-h, --help - this help
+-n, --no-translations - generate only English pages
+-r, --redirects - generate also redirect pages
Most probably, you want to generate the redirects only once when you initially
populate the wiki, and then only update the ones that broke.\n'''
@@ -50,9 +51,20 @@ def create_wiki_dirs():
except:
pass
+# Langs to handle
+# [16:26:45] <kendy> sophi, timar: Obviously, I am testing with Czech ;-)
+# [16:27:05] <timar> kendy: HUngarian :)
+# [16:27:25] <kendy> timar: :-)
+# [16:27:26] <timar> kendy: Slovenian for Martin
+# [16:28:00] <timar> kendy: and German, Italian, French, Spanish (with large user base)
+# [16:28:13] <sophi> kendy: catalan
+# [16:28:38] <sophi> kendy: also japanese and russian
+# [16:29:48] <sophi> kendy: ans I would say vi too, so you have all kind of script/language and good communities behind ;)
+langs = ['', 'ca', 'cs', 'de', 'es', 'fr', 'hu', 'it', 'ja', 'pt', 'pt-BR', 'ru', 'sl', 'vi']
+
# Argument handling
try:
- opts, args = getopt.getopt(sys.argv[1:], 'hr', ['help', 'redirects'])
+ opts, args = getopt.getopt(sys.argv[1:], 'hnr', ['help', 'no-translations', 'redirects'])
except getopt.GetoptError:
usage()
sys.exit(1)
@@ -62,6 +74,8 @@ for opt, arg in opts:
if opt in ('-h', '--help'):
usage()
sys.exit()
+ elif opt in ('-n', '--no-translations'):
+ langs = ['']
elif opt in ('-r', '--redirects'):
generate_redirects = True
@@ -83,15 +97,8 @@ except:
sdf_path = '../../l10n/l10n/source'
sys.stderr.write('Path to the .sdf files not provided, using "%s"\n'% sdf_path)
-# [16:26:45] <kendy> sophi, timar: Obviously, I am testing with Czech ;-)
-# [16:27:05] <timar> kendy: HUngarian :)
-# [16:27:25] <kendy> timar: :-)
-# [16:27:26] <timar> kendy: Slovenian for Martin
-# [16:28:00] <timar> kendy: and German, Italian, French, Spanish (with large user base)
-# [16:28:13] <sophi> kendy: catalan
-# [16:28:38] <sophi> kendy: also japanese and russian
-# [16:29:48] <sophi> kendy: ans I would say vi too, so you have all kind of script/language and good communities behind ;)
-for lang in ['', 'ca', 'cs', 'de', 'es', 'fr', 'hu', 'it', 'ja', 'pt', 'pt-BR', 'ru', 'sl', 'vi']:
+# do the work
+for lang in langs:
wikiconv2.convert(generate_redirects, lang, '%s/%s/localize.sdf'% (sdf_path, lang))
# vim:set shiftwidth=4 softtabstop=4 expandtab:
LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/setup_native/source/win32/customactions
AgeCommit message (Expand)Author
2024-04-30WaE: C6011 Dereferencing NULL pointer warnings from unchecked mallocCaolán McNamara
2024-04-26MSI: Fix use of illegal character in table Binarykubak
2024-03-21Drop C/C++ DEBUG macroStephan Bergmann
2023-11-09loplugin:unnecessarygetstr (clang-cl)Stephan Bergmann
2022-09-07tdf#147021 Use std::size() instead of SAL_N_ELEMENTS() macroTomoyuki Kubota
2022-05-18tdf#149106 Remove RenamePrgFolder and RemovePrgFolder custom msi actionsSamuel Mehrbrodt
2022-05-11Add error handling to RenamePrgFolder and RemovePrgFolderSamuel Mehrbrodt
2022-04-10loplugin:emptyStephan Bergmann
2021-10-29Fix misuses of NULL across Windows-only codeStephan Bergmann
2021-04-02add back sal/macros.h for SAL_N_ELEMENTSTomoyuki Kubota
2021-01-06Fix MSVC 2019 16.8.3 --with-latest-c++ two-phase name lookup issuesStephan Bergmann
2020-11-19tdf#123936 Formatting files in module setup_native with clang-formatPhilipp Hofer
2020-08-04Improved loplugin:staticanonymous -> redundantstatic redux, clang-clStephan Bergmann
2020-07-12Related: tdf#82184: consider installer language for UI list to installMike Kaganski
2020-07-12tdf#134748: handle Kazakh language in langid_to_stringMike Kaganski
2020-02-03Set INSTALLLOCATION in one single placeMike Kaganski
2020-02-03tdf#130329: detect previous version's install locationMike Kaganski
2020-01-10Improve logging of feature statesMike Kaganski
2020-01-09-Werror,-Wwritable-strings (clang-cl)Stephan Bergmann
2020-01-09Register spsupp*.dll during installationMike Kaganski
2019-11-26loplugin:consttobool (clang-cl)Stephan Bergmann
2019-11-19loplugin:fakebool (clang-cl)Stephan Bergmann
2019-10-11simplify "a = a +" to "a +="Noel Grandin
2019-07-10fix HRESULT_FROM_WIN32 can not be placed inside switch for SDK8.1nd101
2019-04-22tdf#124794: Wait for WU service stopped before launching wusa.exeMike Kaganski
2019-04-05Replace legacy dynamically-loaded functions with statically linked onesMike Kaganski
2019-03-31tdf#120703 PVS: Silence V575 warningsMike Kaganski
2019-03-22tdf#123832: Try to prevent/control hung wusa.exe while installing UCRTMike Kaganski
2019-02-26loplugin:indentation (clang-cl)Stephan Bergmann
2019-01-30loplugin:redundantinline (clang-cl)Stephan Bergmann
2018-12-24tdf#122302: Set status message when installing KB2999226Mike Kaganski
2018-12-16tdf#121987 follow-up: never fail MSU install; warn instead.Mike Kaganski
2018-12-09tdf#121987: Don't fail installation if failed to enable WU serviceMike Kaganski
2018-10-27tdf#120703 PVS: V530 The return value of function is required to be utilizedMike Kaganski
2018-09-28tdf#120099 Reintroduce .def filesStephan Bergmann
2018-09-24loplugin:external (clang-cl)Stephan Bergmann
2018-09-18Get rid of Windows .def files in setup_native, use __declspec(dllexport)Stephan Bergmann