← Back to team overview

openlp-core team mailing list archive

[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/60063

Modified windows-builder.py to include qt_xx.qm files in ..\dist\OpenLP\i18n to support multilingual buttons.
-- 
https://code.launchpad.net/~smpettit/openlp/Packaging/+merge/60063
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-05 13:31:27 +0000
@@ -243,6 +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')
+    files = os.listdir(source)
+    for filename in files:
+        if filename.startswith(u'qt_') and filename.endswith(u'.qm') and \
+            len(filename) == 8:
+            copy(os.path.join(source, filename),
+                os.path.join(dist_path, u'i18n', filename))
 
 def run_sphinx():
     print u'Running Sphinx...'


Follow ups