diff options
author | Jan Holesovsky <kendy@suse.cz> | 2011-01-19 14:15:13 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2011-01-19 14:15:13 +0100 |
commit | 28ed56a4b3265ead11fcc27d50734688e744c8f7 (patch) | |
tree | 0eca72ba483beb458399374a29a1bb7d4b32cba7 /helpcontent2/help-to-wiki.py | |
parent | d30dcb911d5eccfdb71d4d97965045cc0b043072 (diff) |
wikihelp: Generate more languages at once, so far en + cs.
Diffstat (limited to 'helpcontent2/help-to-wiki.py')
-rwxr-xr-x | helpcontent2/help-to-wiki.py | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/helpcontent2/help-to-wiki.py b/helpcontent2/help-to-wiki.py index ee4e628694..be86f626ef 100755 --- a/helpcontent2/help-to-wiki.py +++ b/helpcontent2/help-to-wiki.py @@ -77,6 +77,21 @@ create_wiki_dirs() print "Generating the titles..." os.system( "python to-wiki/getalltitles.py source/text > alltitles.csv" ) -wikiconv2.convert(generate_redirects, args) +try: + sdf_path = args[0] +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 ['', 'cs']: + wikiconv2.convert(generate_redirects, lang, '%s/%s/localize.sdf'% (sdf_path, lang)) # vim:set shiftwidth=4 softtabstop=4 expandtab: |