diff options
| author | Carl Hetherington <cth@carlh.net> | 2022-11-28 22:10:44 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2022-11-29 00:15:02 +0100 |
| commit | 716f05c1301bc5cd811df687875cafaf0d37ffd2 (patch) | |
| tree | b9a21346e85bbce22175e2af1cd69153085c1613 /src/wx/wx_util.cc | |
| parent | 62b44b2f0690fdd8150d12f8f49cb196ac0e8097 (diff) | |
Extract RegionSubtagWidget.
Diffstat (limited to 'src/wx/wx_util.cc')
| -rw-r--r-- | src/wx/wx_util.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/wx/wx_util.cc b/src/wx/wx_util.cc index ee6663101..933d303d1 100644 --- a/src/wx/wx_util.cc +++ b/src/wx/wx_util.cc @@ -27,6 +27,7 @@ #include "file_picker_ctrl.h" #include "language_tag_widget.h" #include "password_entry.h" +#include "region_subtag_widget.h" #include "static_text.h" #include "wx_util.h" #include "lib/config.h" @@ -403,6 +404,15 @@ checked_set(LanguageTagWidget* widget, optional<dcp::LanguageTag> value) void +checked_set(RegionSubtagWidget* widget, optional<dcp::LanguageTag::RegionSubtag> value) +{ + if (widget->get() != value) { + widget->set(value); + } +} + + +void dcpomatic_setup_i18n () { int language = wxLANGUAGE_DEFAULT; |
