summaryrefslogtreecommitdiff
path: root/src/wx
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2023-01-15 20:26:20 +0100
committerCarl Hetherington <cth@carlh.net>2023-01-15 20:26:20 +0100
commitd361b99f8dc8b9b1bcde40e0056e3fc796e5583c (patch)
treeba2522b1a15ac3e662384dcd4d55754f69f0291f /src/wx
parente2eb94df38159c32c2d943a241510900f2ad1964 (diff)
Tell user what just happened if they get either of the disk writer confirmations wrong (#2417).
Diffstat (limited to 'src/wx')
-rw-r--r--src/wx/drive_wipe_warning_dialog.cc8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/wx/drive_wipe_warning_dialog.cc b/src/wx/drive_wipe_warning_dialog.cc
index 094a1dded..f011fdbf1 100644
--- a/src/wx/drive_wipe_warning_dialog.cc
+++ b/src/wx/drive_wipe_warning_dialog.cc
@@ -42,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\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>yes</tt>\n\ninto the box below, then click OK."), drive
+ "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
)
);
}
@@ -54,5 +58,5 @@ DriveWipeWarningDialog::DriveWipeWarningDialog (wxWindow* parent, wxString drive
bool
DriveWipeWarningDialog::confirmed () const
{
- return _yes->GetValue() == "yes";
+ return _yes->GetValue() == _("yes");
}