Skip to content

Commit

Permalink
Fix assuming wrong system language on macOS, fixes mixxxdj#11195
Browse files Browse the repository at this point in the history
  • Loading branch information
daschuer committed Jan 25, 2023
1 parent 5a3e9b8 commit 521b515
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(__APPLE__) && (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(QLocale::system().name()));
}
#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 521b515

Please sign in to comment.