mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-09 01:48:40 +00:00
[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:
parent
7cc14baae3
commit
24b71a400f
3 changed files with 333 additions and 961 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue