Skip to content

Commit

Permalink
Switch application direction depending on the language
Browse files Browse the repository at this point in the history
When switching to persian language, XCA
switches to Right-To-Left layout.
  • Loading branch information
chris2511 committed Apr 23, 2024
1 parent 2060d75 commit bb32e30
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions widgets/XcaApplication.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ void XcaApplication::setupLanguage(const QLocale &lang)
}
xcaTr->load(lang, "xca", getI18nDir());
QLocale::setDefault(lang);
setLayoutDirection(lang.textDirection());
installTranslator(qtTr);
installTranslator(xcaTr);
if (mainw)
Expand Down

0 comments on commit bb32e30

Please sign in to comment.