Try to load QT translation files from GD "locale" folder at first

This commit is contained in:
Abs62 2013-04-22 18:49:53 +04:00
parent eb50478755
commit 6c8fab8078

View file

@ -140,9 +140,9 @@ int main( int argc, char ** argv )
if ( localeName.isEmpty() ) if ( localeName.isEmpty() )
localeName = QLocale::system().name(); localeName = QLocale::system().name();
if ( !qtTranslator.load( "qt_" + localeName, if ( !qtTranslator.load( "qt_" + localeName, Config::getLocDir() ) )
QLibraryInfo::location( QLibraryInfo::TranslationsPath ) ) ) qtTranslator.load( "qt_" + localeName,
qtTranslator.load( "qt_" + localeName, Config::getProgramDataDir() + "/locale/" ); QLibraryInfo::location( QLibraryInfo::TranslationsPath ) );
app.installTranslator( &qtTranslator ); app.installTranslator( &qtTranslator );