1
0
ミラー元 https://github.com/arsenetar/dupeguru.git 前回の同期 2025-07-03 05:53:20 +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.
このコミットが含まれているのは:
Virgil Dupras 2013-03-24 11:06:08 -04:00
コミット fb26d7d077
5個のファイルの変更10行の追加4行の削除

ファイルの表示

@ -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>

バイナリ
qt/lang/qt_de.qm

バイナリファイルは表示されません。

バイナリ
qt/lang/qt_fr.qm

バイナリファイルは表示されません。

バイナリ
qt/lang/qt_zh_CN.qm

バイナリファイルは表示されません。