diff options
author | Calum Lind <calumlind+deluge@gmail.com> | 2015-08-22 14:04:37 +0200 |
---|---|---|
committer | Calum Lind <calumlind+deluge@gmail.com> | 2015-08-22 15:26:56 +0200 |
commit | 24b71a400f741229f0623d2cd4f81068d3809716 (patch) | |
tree | 91a2380d50299c3a9265d0a3acecab217a9362fd /generate_pot.py | |
parent | Remove glade from package_data entry (diff) | |
download | deluge-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-x | generate_pot.py | 6 |
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 |