first commit

This commit is contained in:
2025-07-29 13:16:30 +08:00
commit dca51db4eb
145 changed files with 721268 additions and 0 deletions

10
Util/util_language.py Normal file
View File

@ -0,0 +1,10 @@
from PyQt5.QtCore import QTranslator, QLocale, QLibraryInfo
def show_translated_message_box(app):
# 加载翻译文件
translator = QTranslator()
locale = QLocale.system().name() # 获取系统语言
qt_translations_path = QLibraryInfo.path(QLibraryInfo.TranslationsPath)
translator.load(f"qtbase_{locale}", qt_translations_path)
app.installTranslator(translator)