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/tools/dcpomatic_playlist.cc | |
| parent | 748b182f27eedb006cb8493e12a389fa1c5883e7 (diff) | |
Extract all uses of DCP-o-matic name to allow branding.
Diffstat (limited to 'src/tools/dcpomatic_playlist.cc')
| -rw-r--r-- | src/tools/dcpomatic_playlist.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/tools/dcpomatic_playlist.cc b/src/tools/dcpomatic_playlist.cc index b16a2be68..56cf07413 100644 --- a/src/tools/dcpomatic_playlist.cc +++ b/src/tools/dcpomatic_playlist.cc @@ -25,6 +25,7 @@ #include "wx/playlist_editor_config_dialog.h" #include "wx/wx_signal_manager.h" #include "wx/wx_util.h" +#include "wx/wx_variant.h" #include "lib/config.h" #include "lib/constants.h" #include "lib/cross.h" @@ -576,7 +577,7 @@ private: help->Append(wxID_PREFERENCES, _("&Preferences...\tCtrl-,")); } help->Append(wxID_EXIT, _("&Exit")); - help->Append(wxID_ABOUT, _("About DCP-o-matic")); + help->Append(wxID_ABOUT, variant::wx::insert_dcpomatic_playlist_editor(_("About %s"))); m->Append(help, _("&Help")); #else @@ -637,7 +638,7 @@ private: try { wxInitAllImageHandlers (); - SetAppName (_("DCP-o-matic Playlist Editor")); + SetAppName(variant::wx::dcpomatic_playlist_editor()); if (!wxApp::OnInit()) { return false; @@ -671,7 +672,7 @@ private: */ Config::drop (); - _frame = new DOMFrame (_("DCP-o-matic Playlist Editor")); + _frame = new DOMFrame(variant::wx::dcpomatic_playlist_editor()); SetTopWindow (_frame); _frame->Maximize (); _frame->Show (); @@ -683,7 +684,7 @@ private: } catch (exception& e) { - error_dialog (0, _("DCP-o-matic could not start"), std_to_wx(e.what())); + error_dialog(nullptr, variant::wx::insert_dcpomatic_playlist_editor(_("%s could not start %s")), std_to_wx(e.what())); return true; } |
