mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-30 13:24:05 +00:00
opt: layout according to the language
This commit is contained in:
parent
297795a654
commit
0721a58c01
|
@ -556,6 +556,8 @@ int main( int argc, char ** argv )
|
|||
|
||||
QLocale locale( localeName );
|
||||
QLocale::setDefault( locale );
|
||||
QApplication::setLayoutDirection( locale.textDirection() );
|
||||
|
||||
if ( !qtTranslator.load( "qt_extra_" + localeName, Config::getLocDir() ) ) {
|
||||
qtTranslator.load( "qt_extra_" + localeName, QLibraryInfo::location( QLibraryInfo::TranslationsPath ) );
|
||||
app.installTranslator( &qtTranslator );
|
||||
|
|
Loading…
Reference in a new issue