Skip to content

Commit

Permalink
Use enums to create the new default locale
Browse files Browse the repository at this point in the history
Co-authored-by: Swiftb0y <[email protected]>
  • Loading branch information
daschuer and Swiftb0y authored Jan 26, 2023
1 parent 521b515 commit 5dceb8f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/util/translations.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ class Translations {
else {
// Workaround https://github.com/mixxxdj/mixxx/issues/11195 and
// QTBUG-90971 fixed in Qt 6.2
QLocale::setDefault(QLocale(QLocale::system().name()));
const auto sysLocale = QLocale::system();
QLocale::setDefault(QLocale(sysLocale.language(), sysLocale.country()));
}
#endif

Expand Down

0 comments on commit 5dceb8f

Please sign in to comment.