增添华高维护工具qt的qm翻译文件

This commit is contained in:
yangjiaxuan 2023-02-27 15:07:42 +08:00
parent 855c02056d
commit d4c53822b6
5 changed files with 8086 additions and 2 deletions

View File

@ -1,6 +1,7 @@
<RCC> <RCC>
<qresource prefix="/translation"> <qresource prefix="/translation">
<file>FWUpgrade_zh_CN.qm</file> <file>FWUpgrade_zh_CN.qm</file>
<file>qt_zh_CN.qm</file>
</qresource> </qresource>
<qresource prefix="/images"> <qresource prefix="/images">
<file>image_rsc/logo/auge_logo.ico</file> <file>image_rsc/logo/auge_logo.ico</file>

View File

@ -12,8 +12,12 @@ int main(int argc, char *argv[])
{ {
QApplication a(argc, argv); QApplication a(argc, argv);
QTranslator translator_app;
if (translator_app.load(":translation/FWUpgrade_zh_CN.qm"))
a.installTranslator(&translator_app);
QTranslator translator_qt; QTranslator translator_qt;
if (translator_qt.load(":translation/FWUpgrade_zh_CN.qm")) if (translator_qt.load(":translation/qt_zh_CN.qm"))
a.installTranslator(&translator_qt); a.installTranslator(&translator_qt);
MainWindow w; MainWindow w;

BIN
app/fwupgrade/qt_zh_CN.qm Normal file

Binary file not shown.

8077
app/fwupgrade/qt_zh_CN.ts Normal file

File diff suppressed because it is too large Load Diff

View File

@ -257,6 +257,8 @@ RESOURCES += \
TRANSLATIONS += \ TRANSLATIONS += \
../../../app/fwupgrade/FWUpgrade_zh_CN.ts \ ../../../app/fwupgrade/FWUpgrade_zh_CN.ts \
../../../app/fwupgrade/qt_zh_CN.ts
DISTFILES += \ DISTFILES += \
../../../app/fwupgrade/FWUpgrade_zh_CN.qm \ ../../../app/fwupgrade/FWUpgrade_zh_CN.qm \
../../../app/fwupgrade/qt_zh_CN.qm