Fix build on macOS 10.8 (wxWidgets 3.0.5).
authorCarl Hetherington <cth@carlh.net>
Mon, 15 Apr 2024 18:12:39 +0000 (20:12 +0200)
committerCarl Hetherington <cth@carlh.net>
Mon, 15 Apr 2024 19:35:07 +0000 (21:35 +0200)
src/wx/wx_util.cc

index 4e6c03dcad4811265def2f78e1e6e15fb3e18655..58bb4d5ea0d4cb601c5fd249d4e95b43214ccdab 100644 (file)
@@ -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->CanonicalName);
+#endif
                }
        }