equal
deleted
inserted
replaced
355 |
355 |
356 |
356 |
357 QTranslator Translator; |
357 QTranslator Translator; |
358 { |
358 { |
359 QSettings settings(cfgdir->absolutePath() + "/hedgewars.ini", QSettings::IniFormat); |
359 QSettings settings(cfgdir->absolutePath() + "/hedgewars.ini", QSettings::IniFormat); |
360 |
360 QString cc = settings.value("misc/locale", "").toString(); |
361 Translator.load(datadir->absolutePath() + "/Locale/hedgewars_" + settings.value("misc/locale", QLocale::system().name()).toString()); |
361 if(!cc.compare("")) |
|
362 cc = QLocale::system().name(); |
|
363 Translator.load(datadir->absolutePath() + "/Locale/hedgewars_" + cc); |
362 app.installTranslator(&Translator); |
364 app.installTranslator(&Translator); |
363 } |
365 } |
364 |
366 |
365 |
367 |
366 HWForm *Form = new HWForm(); |
368 HWForm *Form = new HWForm(); |