diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-04-16 22:19:39 +0200 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-04-21 22:07:15 +0200 |
| commit | b87e2660d0776f3d1380532ff0d2f3a28ed9d764 (patch) | |
| tree | ebddcef5b9a22b4e4e7475e20abf484f8aabd671 /src/wx/screens_panel.cc | |
| parent | 748b182f27eedb006cb8493e12a389fa1c5883e7 (diff) | |
Extract all uses of DCP-o-matic name to allow branding.
Diffstat (limited to 'src/wx/screens_panel.cc')
| -rw-r--r-- | src/wx/screens_panel.cc | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/src/wx/screens_panel.cc b/src/wx/screens_panel.cc index 62f8688a9..52545e5f6 100644 --- a/src/wx/screens_panel.cc +++ b/src/wx/screens_panel.cc @@ -25,6 +25,7 @@ #include "screen_dialog.h" #include "screens_panel.h" #include "wx_util.h" +#include "wx_variant.h" #include "lib/cinema.h" #include "lib/config.h" #include "lib/screen.h" @@ -261,7 +262,14 @@ ScreensPanel::add_cinema_clicked () dcp::ScopeGuard sg = [this]() { _ignore_cinemas_changed = false; }; Config::instance()->add_cinema(cinema); } catch (FileError& e) { - error_dialog(GetParent(), _("Could not write cinema details to the cinemas.xml file. Check that the location of cinemas.xml is valid in DCP-o-matic's preferences."), std_to_wx(e.what())); + error_dialog( + GetParent(), + variant::wx::insert_dcpomatic( + _("Could not write cinema details to the cinemas.xml file. Check that the location of " + "cinemas.xml is valid in %s's preferences.") + ), + std_to_wx(e.what()) + ); return; } @@ -718,7 +726,14 @@ ScreensPanel::notify_cinemas_changed() try { Config::instance()->changed(Config::CINEMAS); } catch (FileError& e) { - error_dialog(GetParent(), _("Could not write cinema details to the cinemas.xml file. Check that the location of cinemas.xml is valid in DCP-o-matic's preferences."), std_to_wx(e.what())); + error_dialog( + GetParent(), + variant::wx::insert_dcpomatic( + _("Could not write cinema details to the cinemas.xml file. Check that the location of " + "cinemas.xml is valid in %s's preferences.") + ), + std_to_wx(e.what()) + ); return false; } |
