summaryrefslogtreecommitdiff
path: root/src/wx/screens_panel.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/wx/screens_panel.cc')
-rw-r--r--src/wx/screens_panel.cc19
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;
}