mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 04:24:09 +00:00
+! Merge r194 from 0.8.0 branch to fix qt locale loading.
This commit is contained in:
parent
8535604e21
commit
b7b527f09c
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue