minor fix: load translation

This commit is contained in:
royqh1979@gmail.com 2021-11-17 09:41:44 +08:00
parent 2f945dc6fb
commit d2821ac7f2
1 changed files with 2 additions and 2 deletions

View File

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