mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 19:24:08 +00:00
Try to load QT translation files from GD "locale" folder at first
This commit is contained in:
parent
eb50478755
commit
6c8fab8078
6
main.cc
6
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 );
|
||||
|
||||
|
|
Loading…
Reference in a new issue