mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 04:24:09 +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() )
|
if ( localeName.isEmpty() )
|
||||||
localeName = QLocale::system().name();
|
localeName = QLocale::system().name();
|
||||||
|
|
||||||
if ( !qtTranslator.load( "qt_" + localeName,
|
if ( !qtTranslator.load( "qt_" + localeName, Config::getLocDir() ) )
|
||||||
QLibraryInfo::location( QLibraryInfo::TranslationsPath ) ) )
|
qtTranslator.load( "qt_" + localeName,
|
||||||
qtTranslator.load( "qt_" + localeName, Config::getProgramDataDir() + "/locale/" );
|
QLibraryInfo::location( QLibraryInfo::TranslationsPath ) );
|
||||||
|
|
||||||
app.installTranslator( &qtTranslator );
|
app.installTranslator( &qtTranslator );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue