QTfrontend/ui/page/pagemain.cpp
changeset 13274 e381f5260b45
parent 11818 b421923c2577
child 13304 5ac2bdefa173
equal deleted inserted replaced
13273:8f579173b161 13274:e381f5260b45
   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))