← 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/59972

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/59972
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-04 17:01:26 +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,15 @@
             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...'
     os.chdir(manual_path)