diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/wx/wx_util.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/wx/wx_util.cc b/src/wx/wx_util.cc index 78fa3f544..1e385c63c 100644 --- a/src/wx/wx_util.cc +++ b/src/wx/wx_util.cc @@ -47,6 +47,9 @@ LIBDCP_DISABLE_WARNINGS #include <wx/sizer.h> #include <wx/spinctrl.h> #include <wx/splash.h> +#if wxCHECK_VERSION(3, 1, 6) +#include <wx/uilocale.h> +#endif LIBDCP_ENABLE_WARNINGS #include <boost/thread.hpp> @@ -425,6 +428,10 @@ dcpomatic_setup_i18n() { wxLog::EnableLogging(); +#if wxCHECK_VERSION(3, 1, 6) + wxUILocale::UseDefault(); +#endif + auto get_locale_value = [](CFLocaleKey key) { CFLocaleRef cflocale = CFLocaleCopyCurrent(); auto value = (CFStringRef) CFLocaleGetValue(cflocale, key); |
