openlp-core team mailing list archive
-
openlp-core team
-
Mailing list archive
-
Message #08587
[Merge] lp:~smpettit/openlp/Packaging into lp:openlp
Stevan Pettit has proposed merging lp:~smpettit/openlp/Packaging into lp:openlp.
Requested reviews:
OpenLP Core (openlp-core)
For more details, see:
https://code.launchpad.net/~smpettit/openlp/Packaging/+merge/59815
Include qt_xx.qm files into the distribution directory ..\i18n . Multilingual support for "buttons"
--
https://code.launchpad.net/~smpettit/openlp/Packaging/+merge/59815
Your team OpenLP Core is requested to review the proposed merge of lp:~smpettit/openlp/Packaging into lp:openlp.
=== modified file 'scripts/windows-builder.py'
--- scripts/windows-builder.py 2011-04-23 10:06:47 +0000
+++ scripts/windows-builder.py 2011-05-03 18:52:27 +0000
@@ -218,7 +218,7 @@
copy(os.path.join(winres_path, u'OpenLP.ico'),
os.path.join(dist_path, u'OpenLP.ico'))
copy(os.path.join(winres_path, u'LICENSE.txt'),
- os.path.join(dist_path, u'LICENSE.txt'))
+ os.path.join(dist_path, u'LICENSE.txt'))
def update_translations():
print u'Updating translations...'
@@ -243,7 +243,14 @@
code = lconvert.wait()
if code != 0:
raise Exception('Error running lconvert on %s' % source_path)
-
+ print u'Copying qm files...'
+ source = os.path.join(site_packages,u'PyQt4',u'translations')
+ for root, dirs, files in os.walk(source):
+ for filename in files:
+ if filename.startswith(u'qt_') and filename.endswith(u'.qm') and len(filename) == 8:
+ copy(os.path.join(root, filename),
+ os.path.join(dist_path,u'i18n', filename))
+
def run_sphinx():
print u'Running Sphinx...'
os.chdir(manual_path)
Follow ups