diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-04-15 20:12:39 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-04-15 21:35:07 +0200 |
| commit | f0d2bd11e16d44c346449854ff67b3f3ad807673 (patch) | |
| tree | 370f971399e8cda1c0bee89c3bafde3f011f71fb /src | |
| parent | ab6114b4375ce044a6e781a478add79524690278 (diff) | |
Fix build on macOS 10.8 (wxWidgets 3.0.5).
Diffstat (limited to 'src')
| -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..58bb4d5ea 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->CanonicalName); +#endif } } |
