Commit a690717a authored by Pierre Kim's avatar Pierre Kim

Detect current language

parent 7c90039f
......@@ -43,7 +43,6 @@ int main(int argc, char* argv[]) {
QTranslator translatorQt;
QString lng = Settings::instance().getLanguage();
if (!lng.isEmpty()) {
translator.load(":/languages/" + lng + ".qm");
translatorQt.load(":/languages/qt_" + lng + ".qm");
......@@ -59,9 +58,13 @@ int main(int argc, char* argv[]) {
}
}
else {
translator.load(":/languages/" + QLocale::system().name());
translatorQt.load(":/languages/qt_" + QLocale::system().name());
else
{
if (QLocale::system().name() == "ko_KR")
{
translator.load(":/languages/kr.qm");
translatorQt.load(":/languages/qt_kr.qm");
}
QLocale::setDefault(QLocale::system().name());
}
app.installTranslator(&translator);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment