[#2837] [WebUI] Create gettext.js when building
This commit is contained in:
6
setup.py
6
setup.py
@ -134,6 +134,12 @@ class BuildWebUI(cmd.Command):
|
||||
print('Import error: %s' % import_error)
|
||||
sys.exit(1)
|
||||
|
||||
# Create the gettext.js file for translations.
|
||||
from gen_web_gettext import create_gettext_js
|
||||
deluge_all_path = os.path.join(js_basedir, self.JS_SRC_DIRS[0])
|
||||
print('Creating WebUI translation file: %s/gettext.js' % deluge_all_path)
|
||||
create_gettext_js(deluge_all_path)
|
||||
|
||||
|
||||
class CleanWebUI(cmd.Command):
|
||||
description = 'Clean the documentation build and rst files'
|
||||
|
Reference in New Issue
Block a user