equal
deleted
inserted
replaced
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(); |