minor fix: load translation
This commit is contained in:
parent
2f945dc6fb
commit
d2821ac7f2
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue