use default constructor for QLocale, not ::system; refs #66

master
Marc Wäckerlin 13 years ago
parent e54cd2207b
commit c6de182cd7
  1. 2
      swisssurfer/src/editbookmarks.ui
  2. 4
      swisssurfer/src/main.cxx

@ -71,7 +71,7 @@
<bool>true</bool>
</property>
<property name="selectionMode">
<enum>QAbstractItemView::ContiguousSelection</enum>
<enum>QAbstractItemView::ExtendedSelection</enum>
</property>
</widget>
</item>

@ -254,10 +254,10 @@ int main(int argv, char** argc) try {
app.setApplicationVersion(VERSION);
QTranslator qtTranslator;
if (env.contains("LANGUAGE")) QLocale::setDefault(env["LANGUAGE"]);
qtTranslator.load(":/language/qt_" + QLocale::system().name());
qtTranslator.load(":/language/qt_" + QLocale().name());
app.installTranslator(&qtTranslator);
QTranslator appTranslator;
appTranslator.load(":/language/swisssurfer_"+ QLocale::system().name());
appTranslator.load(":/language/swisssurfer_"+ QLocale().name());
app.installTranslator(&appTranslator);
//............................................................................
if (env["PROXY_TYPE"]=="http")

Loading…
Cancel
Save