QTfrontend/main.cpp
changeset 2913 865ae941d59e
parent 2901 6d2636144e1f
child 2948 3f21a9dc93d0
equal deleted inserted replaced
2912:76d43f7458ad 2913:865ae941d59e
   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();