diff --git a/scripts/windows-builder.py b/scripts/windows-builder.py index ef5528cd7..0271f80b8 100644 --- a/scripts/windows-builder.py +++ b/scripts/windows-builder.py @@ -243,6 +243,14 @@ def compile_translations(): 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...'