🚑 update 更新抓取和扔料

This commit is contained in:
FrankCV2048
2025-01-14 23:02:14 +08:00
parent 3e065af6a0
commit ecfd9551e1
9 changed files with 1772 additions and 15181 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)