diff options
Diffstat (limited to 'helpcontent2/to-wiki/convall.py')
-rwxr-xr-x | helpcontent2/to-wiki/convall.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/helpcontent2/to-wiki/convall.py b/helpcontent2/to-wiki/convall.py index afc510e3dc..5e72666185 100755 --- a/helpcontent2/to-wiki/convall.py +++ b/helpcontent2/to-wiki/convall.py @@ -3,6 +3,7 @@ import os, sys titles = [[]] +localization = "" def loadallfiles(filename): global titles @@ -12,6 +13,8 @@ def loadallfiles(filename): titles.append(title) loadallfiles("alltitles.csv") +if len(sys.argv) > 1: + localization = sys.argv[1] for title in titles: command = "" @@ -20,7 +23,7 @@ for title in titles: if len(title) > 1: outfile = "wiki/"+title[1].strip() infile = title[0].strip() - command = "python to-wiki/wikiconv2.py "+infile+" "+title[1].strip()+" > "+outfile + command = "python to-wiki/wikiconv2.py "+infile+" "+title[1].strip()+" "+localization+" > "+outfile try: file = open(outfile,"r") |