diff --git a/RedPandaIDE/RedPandaIDE.pro b/RedPandaIDE/RedPandaIDE.pro index 8bf3d6e7..293ec7bc 100644 --- a/RedPandaIDE/RedPandaIDE.pro +++ b/RedPandaIDE/RedPandaIDE.pro @@ -4,6 +4,7 @@ greaterThan(QT_MAJOR_VERSION, 4): QT += widgets CONFIG += c++17 CONFIG += nokey +CONFIG += lrelease embed_translations isEmpty(APP_NAME) { APP_NAME = RedPandaCPP diff --git a/RedPandaIDE/RedPandaIDE_zh_CN.qm b/RedPandaIDE/RedPandaIDE_zh_CN.qm deleted file mode 100644 index e8803827..00000000 Binary files a/RedPandaIDE/RedPandaIDE_zh_CN.qm and /dev/null differ diff --git a/RedPandaIDE/main.cpp b/RedPandaIDE/main.cpp index 4203a2e4..4097dc21 100644 --- a/RedPandaIDE/main.cpp +++ b/RedPandaIDE/main.cpp @@ -121,7 +121,7 @@ int main(int argc, char *argv[]) languageSetting.beginGroup(SETTING_ENVIRONMENT); QString language = languageSetting.value("language",QLocale::system().name()).toString(); - if (trans.load("RedPandaIDE_"+language,":/translations")) { + if (trans.load("RedPandaIDE_"+language,":/i18n/")) { app.installTranslator(&trans); } if (transQt.load("qt_"+language,":/translations")) { diff --git a/RedPandaIDE/translations.qrc b/RedPandaIDE/translations.qrc index 6d8b6359..5957ae16 100644 --- a/RedPandaIDE/translations.qrc +++ b/RedPandaIDE/translations.qrc @@ -1,6 +1,5 @@ - RedPandaIDE_zh_CN.qm qt_zh_CN.qm