Don't show an error when cancelling subtitle analysis.
[dcpomatic.git] / src / wx / drive_wipe_warning_dialog.cc
index 2eb0b9d8ceb0db6ad13a2c9545158b8f153383d9..f011fdbf148a462a7c52c97d187c17dc3bb5bd61 100644 (file)
 
 */
 
+
 #include "drive_wipe_warning_dialog.h"
 #include "static_text.h"
 #include "wx_util.h"
 
+
 DriveWipeWarningDialog::DriveWipeWarningDialog (wxWindow* parent, wxString drive)
        : wxDialog (parent, wxID_ANY, _("Important notice"))
 {
        wxBoxSizer* sizer = new wxBoxSizer (wxVERTICAL);
-       wxStaticText* text = new StaticText (this, wxEmptyString, wxDefaultPosition, wxSize(400, 300));
+       wxStaticText* text = new StaticText (this, wxEmptyString, wxDefaultPosition, wxSize(600, 400));
        sizer->Add (text, 1, wxEXPAND | wxALL, DCPOMATIC_DIALOG_BORDER);
        _yes = new wxTextCtrl (this, wxID_ANY);
        sizer->Add (_yes, 0, wxALL, DCPOMATIC_DIALOG_BORDER);
@@ -40,11 +42,15 @@ DriveWipeWarningDialog::DriveWipeWarningDialog (wxWindow* parent, wxString drive
        sizer->Layout ();
        sizer->SetSizeHints (this);
 
+       /// TRANSLATORS: the user will be asked to type this phrase into a text entry to confirm that they have read
+       /// the warning about a disk being wiped
+       auto const confirmation = _("yes");
+
        text->SetLabelMarkup (
                wxString::Format(
-                       _("If you continue with this operation <span weight=\"bold\" size=\"larger\">ALL DATA</span> "
-                         "on the drive %s will be <span weight=\"bold\" size=\"larger\">PERMANENTLY DESTROYED</span>.\n\n"
-                         "If you are sure you want to continue please type \"yes\" into the box below, then click OK."), drive
+                       _("If you continue with this operation\n\n<span weight=\"bold\" size=\"20480\" foreground=\"red\">ALL DATA</span>\n\n"
+                         "on the drive\n\n<b>%s</b>\n\nwill be\n\n<span weight=\"bold\" size=\"20480\" foreground=\"red\">PERMANENTLY DESTROYED.</span>\n\n"
+                         "If you are sure you want to continue please type\n\n<tt>%s</tt>\n\ninto the box below, then click OK."), drive, confirmation
                        )
                );
 }
@@ -52,5 +58,5 @@ DriveWipeWarningDialog::DriveWipeWarningDialog (wxWindow* parent, wxString drive
 bool
 DriveWipeWarningDialog::confirmed () const
 {
-       return _yes->GetValue() == "yes";
+       return _yes->GetValue() == _("yes");
 }