From 6c8fab8078891345521d96c83e28251ace5f35ec Mon Sep 17 00:00:00 2001 From: Abs62 Date: Mon, 22 Apr 2013 18:49:53 +0400 Subject: [PATCH] Try to load QT translation files from GD "locale" folder at first --- main.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.cc b/main.cc index dac4629f..7384e084 100644 --- a/main.cc +++ b/main.cc @@ -140,9 +140,9 @@ int main( int argc, char ** argv ) if ( localeName.isEmpty() ) localeName = QLocale::system().name(); - if ( !qtTranslator.load( "qt_" + localeName, - QLibraryInfo::location( QLibraryInfo::TranslationsPath ) ) ) - qtTranslator.load( "qt_" + localeName, Config::getProgramDataDir() + "/locale/" ); + if ( !qtTranslator.load( "qt_" + localeName, Config::getLocDir() ) ) + qtTranslator.load( "qt_" + localeName, + QLibraryInfo::location( QLibraryInfo::TranslationsPath ) ); app.installTranslator( &qtTranslator );