minor fix: load translation
This commit is contained in:
parent
2f945dc6fb
commit
d2821ac7f2
|
@ -91,8 +91,8 @@ int main(int argc, char *argv[])
|
||||||
QSettings languageSetting(settingFilename,QSettings::IniFormat);
|
QSettings languageSetting(settingFilename,QSettings::IniFormat);
|
||||||
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();
|
||||||
trans.load("RedPandaIDE_"+language,":/translations");
|
if (trans.load("RedPandaIDE_"+language,":/translations"))
|
||||||
app.installTranslator(&trans);
|
app.installTranslator(&trans);
|
||||||
}
|
}
|
||||||
|
|
||||||
qRegisterMetaType<PCompileIssue>("PCompileIssue");
|
qRegisterMetaType<PCompileIssue>("PCompileIssue");
|
||||||
|
|
Loading…
Reference in New Issue