openlp-core team mailing list archive
-
openlp-core team
-
Mailing list archive
-
Message #03670
[Merge] lp:~raoul-snyman/openlp/windows-fixes into lp:openlp
Raoul Snyman has proposed merging lp:~raoul-snyman/openlp/windows-fixes into lp:openlp.
Requested reviews:
OpenLP Core (openlp-core)
Added in downloading and updating of translation files.
--
https://code.launchpad.net/~raoul-snyman/openlp/windows-fixes/+merge/36039
Your team OpenLP Core is requested to review the proposed merge of lp:~raoul-snyman/openlp/windows-fixes into lp:openlp.
=== modified file 'scripts/windows-builder.py'
--- scripts/windows-builder.py 2010-09-16 20:40:12 +0000
+++ scripts/windows-builder.py 2010-09-20 17:44:41 +0000
@@ -179,7 +179,16 @@
copy(os.path.join(iss_path, u'OpenLP.ico'), os.path.join(dist_path, u'OpenLP.ico'))
copy(os.path.join(iss_path, u'LICENSE.txt'), os.path.join(dist_path, u'LICENSE.txt'))
+def update_translations():
+ print u'Updating translations...'
+ os.chdir(script_path)
+ translation_utils = Popen(u'python translation_utils.py -dpu')
+ code = translation_utils.wait()
+ if code != 0:
+ print u'Error running translation_utils.py'
+
def compile_translations():
+ print u'Compiling translations...'
files = os.listdir(i18n_path)
if not os.path.exists(os.path.join(dist_path, u'i18n')):
os.makedirs(os.path.join(dist_path, u'i18n'))
@@ -221,6 +230,7 @@
copy_enchant()
copy_plugins()
copy_windows_files()
+ update_translations()
compile_translations()
run_innosetup()
print "Done."
Follow ups