QTfrontend/ui/page/pagetraining.cpp
changeset 8918 512753ea4b1b
parent 8098 4efee370e2de
child 9080 9b42757d7e71
equal deleted inserted replaced
8917:263f2a8475bc 8918:512753ea4b1b
   116     initPage();
   116     initPage();
   117 
   117 
   118     DataManager & dataMgr = DataManager::instance();
   118     DataManager & dataMgr = DataManager::instance();
   119 
   119 
   120     // get locale
   120     // get locale
   121     QSettings settings("physfs://hedgewars.ini",
   121     QSettings settings(dataMgr.settingsFileName(),
   122                        QSettings::IniFormat);
   122                        QSettings::IniFormat);
   123 
   123 
   124     QString loc = settings.value("misc/locale", "").toString();
   124     QString loc = settings.value("misc/locale", "").toString();
   125     if (loc.isEmpty())
   125     if (loc.isEmpty())
   126         loc = QLocale::system().name();
   126         loc = QLocale::system().name();