mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 15:24:05 +00:00
Merge pull request #1645 from xiaoyifang/opt/rtl-layout
opt: layout according to the language
This commit is contained in:
commit
6cb7be70ec
|
@ -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