From 737777d56466ebb52db018f13c4261216c037e5a Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 15 Apr 2024 20:12:39 +0200 Subject: Fix build on macOS 10.8 (wxWidgets 3.0.5). --- src/wx/wx_util.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/wx/wx_util.cc b/src/wx/wx_util.cc index 4e6c03dca..d31820faa 100644 --- a/src/wx/wx_util.cc +++ b/src/wx/wx_util.cc @@ -444,7 +444,11 @@ dcpomatic_setup_i18n() */ auto const info = wxLocale::FindLanguageInfo(std_to_wx(language_code)); if (info) { +#if wxCHECK_VERSION(3, 1, 6) translations->SetLanguage(info->GetCanonicalWithRegion()); +#else + translations->SetLanguage(info->CanonicalRef.empty() ? info->CanonicalName : info->CanonicalRef); +#endif } } -- cgit v1.2.3