From b87e2660d0776f3d1380532ff0d2f3a28ed9d764 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Tue, 16 Apr 2024 22:19:39 +0200 Subject: Extract all uses of DCP-o-matic name to allow branding. --- src/tools/dcpomatic_server.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/tools/dcpomatic_server.cc') diff --git a/src/tools/dcpomatic_server.cc b/src/tools/dcpomatic_server.cc index 622704d21..5aad282fd 100644 --- a/src/tools/dcpomatic_server.cc +++ b/src/tools/dcpomatic_server.cc @@ -22,6 +22,7 @@ #include "wx/static_text.h" #include "wx/wx_signal_manager.h" #include "wx/wx_util.h" +#include "wx/wx_variant.h" #include "lib/config.h" #ifdef DCPOMATIC_GROK #include "lib/grok/context.h" @@ -154,7 +155,7 @@ class StatusDialog : public wxDialog public: StatusDialog () : wxDialog ( - nullptr, wxID_ANY, _("DCP-o-matic Encode Server"), + nullptr, wxID_ANY, variant::wx::dcpomatic_encode_server(), wxDefaultPosition, wxDefaultSize, #ifdef DCPOMATIC_OSX wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER | wxSTAY_ON_TOP @@ -362,7 +363,7 @@ private: error_dialog (nullptr, std_to_wx(e.what())); wxTheApp->ExitMainLoop (); } catch (...) { - error_dialog (nullptr, _("An unknown error has occurred with the DCP-o-matic server.")); + error_dialog(nullptr, variant::wx::insert_dcpomatic_encode_server(_("An unknown error has occurred with the %s."))); wxTheApp->ExitMainLoop (); } } -- cgit v1.2.3