+! Merge r194 from 0.8.0 branch to fix qt locale loading.

This commit is contained in:
Konstantin Isakov 2009-05-24 15:54:39 +00:00
parent 8535604e21
commit b7b527f09c

View file

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