remove qm file from sources (it should be generated by qmake)

This commit is contained in:
Roy Qu 2022-01-28 18:18:34 +08:00
parent 935c2d2eb7
commit 458b87ea64
4 changed files with 2 additions and 2 deletions

View File

@ -4,6 +4,7 @@ greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
CONFIG += c++17 CONFIG += c++17
CONFIG += nokey CONFIG += nokey
CONFIG += lrelease embed_translations
isEmpty(APP_NAME) { isEmpty(APP_NAME) {
APP_NAME = RedPandaCPP APP_NAME = RedPandaCPP

Binary file not shown.

View File

@ -121,7 +121,7 @@ int main(int argc, char *argv[])
languageSetting.beginGroup(SETTING_ENVIRONMENT); languageSetting.beginGroup(SETTING_ENVIRONMENT);
QString language = languageSetting.value("language",QLocale::system().name()).toString(); QString language = languageSetting.value("language",QLocale::system().name()).toString();
if (trans.load("RedPandaIDE_"+language,":/translations")) { if (trans.load("RedPandaIDE_"+language,":/i18n/")) {
app.installTranslator(&trans); app.installTranslator(&trans);
} }
if (transQt.load("qt_"+language,":/translations")) { if (transQt.load("qt_"+language,":/translations")) {

View File

@ -1,6 +1,5 @@
<RCC> <RCC>
<qresource prefix="/translations"> <qresource prefix="/translations">
<file>RedPandaIDE_zh_CN.qm</file>
<file>qt_zh_CN.qm</file> <file>qt_zh_CN.qm</file>
</qresource> </qresource>
</RCC> </RCC>