QTfrontend/main.cpp
changeset 10488 c5735d0fcc50
parent 10486 5e2d26bcafd6
child 11046 47a8c19ecb60
equal deleted inserted replaced
10487:b69b91779f10 10488:c5735d0fcc50
   331 
   331 
   332         // load locale file into translator
   332         // load locale file into translator
   333         if (!Translator.load(QString("physfs://Locale/hedgewars_%1").arg(cc)))
   333         if (!Translator.load(QString("physfs://Locale/hedgewars_%1").arg(cc)))
   334             qWarning("Failed to install translation (%s)", qPrintable(cc));
   334             qWarning("Failed to install translation (%s)", qPrintable(cc));
   335         app.installTranslator(&Translator);
   335         app.installTranslator(&Translator);
       
   336         app.setLayoutDirection(QLocale(cc).textDirection());
   336     }
   337     }
   337 
   338 
   338 #ifdef _WIN32
   339 #ifdef _WIN32
   339     // Win32 registry setup (used for xfire detection etc. - don't set it if we're running in "portable" mode with a custom config dir)
   340     // Win32 registry setup (used for xfire detection etc. - don't set it if we're running in "portable" mode with a custom config dir)
   340     if(!custom_config)
   341     if(!custom_config)