summaryrefslogtreecommitdiffstats
path: root/locale
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-05-13 19:53:37 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-05-13 19:53:37 +0200
commit04a8860b22f5ac5bd6bd89be999c6fdba789daab (patch)
tree0150c6ec0e7963d64a2f72f28d633e6d09320bb9 /locale
parentsome fixes, closed #306 (diff)
downloadpyload-04a8860b22f5ac5bd6bd89be999c6fdba789daab.tar.xz
rhino js engine
Diffstat (limited to 'locale')
-rw-r--r--locale/generate_locale.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/locale/generate_locale.py b/locale/generate_locale.py
index f9cfd5033..cc2a064a6 100644
--- a/locale/generate_locale.py
+++ b/locale/generate_locale.py
@@ -11,7 +11,7 @@ options = ["--from-code=utf-8", "--copyright-holder=pyLoad Team", "--package-nam
###### Core
-EXCLUDE = ["BeautifulSoup.py", "module/gui", "web/locale", "web/ajax", "web/cnl", "web/pyload", "setup.py"]
+EXCLUDE = ["BeautifulSoup.py", "module/gui", "module/cli", "web/locale", "web/ajax", "web/cnl", "web/pyload", "setup.py"]
print "Generate core.pot"
f = open("includes.txt", "wb")
@@ -75,6 +75,13 @@ f = open("includes.txt", "wb")
f.write("./pyLoadCli.py\n")
f.close()
+for path, dir, filenames in walk("./module/cli"):
+ if [True for x in EXCLUDE if x in path]: continue
+ for file in filenames:
+ if file.endswith(".py") and file not in EXCLUDE:
+ f.write(join(path, file) + "\n")
+
+
call(["xgettext", "--files-from=includes.txt", "--default-domain=cli"] + options)
f = open("cli.po", "rb")