mirror of
https://github.com/arsenetar/dupeguru.git
synced 2025-03-09 21:24:36 +00:00
When under Linux, load qt_*.qm files from the system Qt.
We previously bundled up these files in the .deb, but this was unnecessary.
This commit is contained in:
parent
f2cbb513d3
commit
fb26d7d077
11
build.py
11
build.py
@ -23,7 +23,7 @@ from hscommon.build import (add_to_pythonpath, print_and_do, copy_packages, file
|
||||
build_cocoalib_xibless, fix_qt_resource_file, build_cocoa_ext, copy_embeddable_python_dylib,
|
||||
collect_stdlib_dependencies)
|
||||
from hscommon import loc
|
||||
from hscommon.plat import ISOSX
|
||||
from hscommon.plat import ISOSX, ISLINUX
|
||||
from hscommon.util import ensure_folder, delete_files_with_pattern
|
||||
|
||||
def parse_args():
|
||||
@ -185,6 +185,15 @@ def build_localizations(ui, edition):
|
||||
if op.exists(locale_dest):
|
||||
shutil.rmtree(locale_dest)
|
||||
shutil.copytree('locale', locale_dest, ignore=shutil.ignore_patterns('*.po', '*.pot'))
|
||||
if ui == 'qt' and not ISLINUX:
|
||||
print("Copying qt_*.qm files into the 'locale' folder")
|
||||
from PyQt4.QtCore import QLibraryInfo
|
||||
trfolder = QLibraryInfo.location(QLibraryInfo.TranslationsPath)
|
||||
for lang in loc.get_langs('locale'):
|
||||
qmname = 'qt_%s.qm' % lang
|
||||
src = op.join(trfolder, qmname)
|
||||
if op.exists(src):
|
||||
copy(src, op.join('build', 'locale', qmname))
|
||||
|
||||
def build_updatepot():
|
||||
if ISOSX:
|
||||
|
@ -1,8 +1,5 @@
|
||||
<!DOCTYPE RCC><RCC version="1.0">
|
||||
<qresource>
|
||||
<file alias="qt_fr.qm">../lang/qt_fr.qm</file>
|
||||
<file alias="qt_de.qm">../lang/qt_de.qm</file>
|
||||
<file alias="qt_zh_CN.qm">../lang/qt_zh_CN.qm</file>
|
||||
<file alias="logo_pe">../../images/dgpe_logo_32.png</file>
|
||||
<file alias="logo_pe_big">../../images/dgpe_logo_128.png</file>
|
||||
<file alias="logo_me">../../images/dgme_logo_32.png</file>
|
||||
|
BIN
qt/lang/qt_de.qm
BIN
qt/lang/qt_de.qm
Binary file not shown.
BIN
qt/lang/qt_fr.qm
BIN
qt/lang/qt_fr.qm
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user