set default locale, does not do much, but may help a little
authorkonrad <konrad@6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33>
Mon, 24 May 2010 12:50:10 +0000 (12:50 +0000)
committerkonrad <konrad@6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33>
Mon, 24 May 2010 12:50:10 +0000 (12:50 +0000)
git-svn-id: https://silmor.de/svn/softmagic/smoke/trunk@468 6e3c4bff-ac9f-4ac1-96c5-d2ea494d3e33

src/main.cpp

index 34e454e..409df9a 100644 (file)
@@ -164,6 +164,8 @@ int main(int argc,char**argv)
        ok=mstrans.load("smoke_"+lang,QApplication::applicationDirPath());
        qDebug("...loading smoke_%s ...%s",lang.toAscii().data(),ok?"ok":"failed");
        app.installTranslator(&mstrans);
+       if(lang!="--"&&lang!="")
+               QLocale::setDefault(lang);
        
        //try to find data dir
        initDataDir();