projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab6114b
)
Fix build on macOS 10.8 (wxWidgets 3.0.5).
author
Carl Hetherington
<cth@carlh.net>
Mon, 15 Apr 2024 18:12:39 +0000
(20:12 +0200)
committer
Carl Hetherington
<cth@carlh.net>
Mon, 15 Apr 2024 19:35:07 +0000
(21:35 +0200)
src/wx/wx_util.cc
patch
|
blob
|
history
diff --git
a/src/wx/wx_util.cc
b/src/wx/wx_util.cc
index 4e6c03dcad4811265def2f78e1e6e15fb3e18655..58bb4d5ea0d4cb601c5fd249d4e95b43214ccdab 100644
(file)
--- 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
}
}