equal
deleted
inserted
replaced
164 |
164 |
165 // get locale |
165 // get locale |
166 QSettings settings(dataMgr.settingsFileName(), |
166 QSettings settings(dataMgr.settingsFileName(), |
167 QSettings::IniFormat); |
167 QSettings::IniFormat); |
168 |
168 |
169 QString loc = settings.value("misc/locale", "").toString(); |
169 QString loc = QLocale().name(); |
170 if (loc.isEmpty()) |
|
171 loc = QLocale::system().name(); |
|
172 |
170 |
173 QString tipFile = QString("physfs://Locale/tips_" + loc + ".xml"); |
171 QString tipFile = QString("physfs://Locale/tips_" + loc + ".xml"); |
174 |
172 |
175 // if file is non-existant try with language only |
173 // if file is non-existant try with language only |
176 if (!QFile::exists(tipFile)) |
174 if (!QFile::exists(tipFile)) |