X-Git-Url: https://git.carlh.net/gitweb/?a=blobdiff_plain;f=src%2Fwx%2Fdisk_warning_dialog.cc;h=531b7f4f9d6d01856a00fb5790b10b9507b60cfa;hb=cb6948e0b23fba98d30052c4e4ca939bd3a6b8a7;hp=46483f4a5dbfd018ab06e910dc5e235929c372ea;hpb=6b0a17aa9e87e914666e696b251555b934cfb811;p=dcpomatic.git diff --git a/src/wx/disk_warning_dialog.cc b/src/wx/disk_warning_dialog.cc index 46483f4a5..531b7f4f9 100644 --- a/src/wx/disk_warning_dialog.cc +++ b/src/wx/disk_warning_dialog.cc @@ -23,15 +23,15 @@ #include "wx_util.h" DiskWarningDialog::DiskWarningDialog () - : wxDialog (0, wxID_ANY, _("Important notice")) + : wxDialog(nullptr, wxID_ANY, _("Important notice")) { - wxBoxSizer* sizer = new wxBoxSizer (wxVERTICAL); - wxStaticText* text = new StaticText (this, wxEmptyString, wxDefaultPosition, wxSize(400, 300)); + auto sizer = new wxBoxSizer (wxVERTICAL); + auto text = new StaticText (this, wxEmptyString, wxDefaultPosition, wxSize(400, 300)); sizer->Add (text, 1, wxEXPAND | wxALL, DCPOMATIC_DIALOG_BORDER); _yes = new wxTextCtrl (this, wxID_ANY); sizer->Add (_yes, 0, wxALL, DCPOMATIC_DIALOG_BORDER); - wxSizer* buttons = CreateSeparatedButtonSizer (wxOK | wxCANCEL); + auto buttons = CreateSeparatedButtonSizer (wxOK | wxCANCEL); if (buttons) { sizer->Add(buttons, wxSizerFlags().Expand().DoubleBorder()); } @@ -40,16 +40,19 @@ DiskWarningDialog::DiskWarningDialog () sizer->Layout (); sizer->SetSizeHints (this); - text->SetLabelMarkup ( - _("The DCP-o-matic Disk Writer is\n\nALPHA-GRADE TEST SOFTWARE\n\n" - "and can\n\nDESTROY DATA!\n\n" - "Please do not continue unless Carl has asked you to test the software. " - "If you are sure you want to continue please type\n\nI am sure\n\ninto the box below, then click OK.") - ); + /// TRANSLATORS: the user will be asked to type this phrase into a text entry to confirm that they have read + /// the warning about using the disk writer. + auto const confirmation = _("I am sure"); + + text->SetLabelMarkup(wxString::Format( + _("The DCP-o-matic Disk Writer is\n\nBETA-GRADE TEST SOFTWARE\n\n" + "and may\n\nDESTROY DATA!\n\n" + "If you are sure you want to continue please type\n\n%s\n\ninto the box below, then click OK."), + confirmation)); } bool DiskWarningDialog::confirmed () const { - return _yes->GetValue() == "I am sure"; + return _yes->GetValue() == _("I am sure"); }