Skip to content

Commit

Permalink
Fix assuming wrong system langage on macOS, fixes mixxxdj#11195
Browse files Browse the repository at this point in the history
  • Loading branch information
daschuer committed Jan 20, 2023
1 parent 5a3e9b8 commit 037dd0a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/util/translations.h
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,13 @@ class Translations {
}
QLocale::setDefault(customLocale);
}
#if defined(Q_OS_MAC) && (QT_VERSION >= QT_VERSION_CHECK(6, 2, 0))
else {
// Workaround https://github.com/mixxxdj/mixxx/issues/11195 and
// QTBUG-90971 fixed in Qt 6.2
QLocale::setDefault(QLocale::system());
}
#endif

// Constructs a QLocale object initialized with the default locale. If
// no default locale was set using setDefault(), this locale will be
Expand Down

0 comments on commit 037dd0a

Please sign in to comment.