diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-04-15 20:12:39 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-04-15 20:12:39 +0200 |
| commit | 737777d56466ebb52db018f13c4261216c037e5a (patch) | |
| tree | e9be496789b3c947642f49051526487c8b084d36 | |
| parent | ab6114b4375ce044a6e781a478add79524690278 (diff) | |
Fix build on macOS 10.8 (wxWidgets 3.0.5).
| -rw-r--r-- | src/wx/wx_util.cc | 4 |
1 files changed, 4 insertions, 0 deletions
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 } } |
