QTfrontend/ui/page/pagetraining.cpp
branchwebgl
changeset 8330 aaefa587e277
parent 8098 4efee370e2de
child 8918 512753ea4b1b
equal deleted inserted replaced
8116:d24257910f8d 8330:aaefa587e277
   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(cfgdir->absolutePath() + "/hedgewars.ini",
   121     QSettings settings("physfs://hedgewars.ini",
   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();