[WebUI] Improve the gen_web_gettext script

* Create a 'minified' gettext.js by removing comments from file and simplifying js code.
 * Added creating the file to generate_pot.py, so it is not forgotten about.
This commit is contained in:
Calum Lind 2015-08-22 13:04:37 +01:00
commit 24b71a400f
3 changed files with 333 additions and 961 deletions

View file

@ -16,6 +16,7 @@ import re
from datetime import datetime
from subprocess import call
from gen_web_gettext import create_gettext_js
from version import get_version
# Paths to exclude
@ -103,4 +104,7 @@ for filepath in to_translate:
if filepath.endswith(".h"):
os.remove(filepath)
print "Created %s" % POT_FILEPATH
# Update web js gettext
create_gettext_js(WEBUI_JS_DIR)
print "Created %s and updated gettext.js" % POT_FILEPATH