summaryrefslogtreecommitdiffstats
path: root/generate_pot.py
diff options
context:
space:
mode:
authorCalum Lind <calumlind+deluge@gmail.com>2015-08-22 14:04:37 +0200
committerCalum Lind <calumlind+deluge@gmail.com>2015-08-22 15:26:56 +0200
commit24b71a400f741229f0623d2cd4f81068d3809716 (patch)
tree91a2380d50299c3a9265d0a3acecab217a9362fd /generate_pot.py
parentRemove glade from package_data entry (diff)
downloaddeluge-24b71a400f741229f0623d2cd4f81068d3809716.tar.xz
deluge-24b71a400f741229f0623d2cd4f81068d3809716.zip
[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.
Diffstat (limited to 'generate_pot.py')
-rwxr-xr-xgenerate_pot.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/generate_pot.py b/generate_pot.py
index c710ded2e..245ea60ab 100755
--- a/generate_pot.py
+++ b/generate_pot.py
@@ -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