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() )
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 );