summaryrefslogtreecommitdiff
path: root/src/wx/try_unmount_dialog.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-04-16 22:19:39 +0200
committerCarl Hetherington <cth@carlh.net>2024-04-21 22:07:15 +0200
commitb87e2660d0776f3d1380532ff0d2f3a28ed9d764 (patch)
treeebddcef5b9a22b4e4e7475e20abf484f8aabd671 /src/wx/try_unmount_dialog.cc
parent748b182f27eedb006cb8493e12a389fa1c5883e7 (diff)
Extract all uses of DCP-o-matic name to allow branding.
Diffstat (limited to 'src/wx/try_unmount_dialog.cc')
-rw-r--r--src/wx/try_unmount_dialog.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/wx/try_unmount_dialog.cc b/src/wx/try_unmount_dialog.cc
index ddfaec5c0..37d6e75fa 100644
--- a/src/wx/try_unmount_dialog.cc
+++ b/src/wx/try_unmount_dialog.cc
@@ -22,6 +22,7 @@
#include "static_text.h"
#include "try_unmount_dialog.h"
#include "wx_util.h"
+#include "wx_variant.h"
#include <dcp/warnings.h>
LIBDCP_DISABLE_WARNINGS
#include <wx/wx.h>
@@ -32,14 +33,17 @@ static int constexpr width = 300;
TryUnmountDialog::TryUnmountDialog (wxWindow* parent, wxString description)
- : wxDialog (parent, wxID_ANY, _("DCP-o-matic Disk Writer"))
+ : wxDialog(parent, wxID_ANY, variant::wx::dcpomatic_disk_writer())
{
auto sizer = new wxBoxSizer (wxVERTICAL);
auto text = new StaticText (this, wxEmptyString, wxDefaultPosition, wxSize(width, -1));
sizer->Add (text, 1, wxEXPAND | wxALL, DCPOMATIC_DIALOG_BORDER);
text->SetLabelMarkup (
- wxString::Format(_("The drive <b>%s</b> is mounted.\n\nIt must be unmounted before DCP-o-matic can write to it.\n\nShould DCP-o-matic try to unmount it now?"), description)
+ wxString::Format(
+ _("The drive <b>%s</b> is mounted.\n\nIt must be unmounted before %s can write to it.\n\nShould DCP-o-matic try to unmount it now?"),
+ description, variant::wx::dcpomatic()
+ )
);
text->Wrap(width);