diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-01-15 19:57:15 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-01-15 19:57:15 +0100 |
| commit | cb6948e0b23fba98d30052c4e4ca939bd3a6b8a7 (patch) | |
| tree | 8234a5288adc594c25e06d958999ddd8490df83a /src/wx/disk_warning_dialog.cc | |
| parent | 4e98996a5fc0b4594f832abe8f2e122f6532c0b1 (diff) | |
Handle translation correctly for the initial "beta-grade" warning in the disk writer (#2415).
Diffstat (limited to 'src/wx/disk_warning_dialog.cc')
| -rw-r--r-- | src/wx/disk_warning_dialog.cc | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/wx/disk_warning_dialog.cc b/src/wx/disk_warning_dialog.cc index 8a69c87f7..531b7f4f9 100644 --- a/src/wx/disk_warning_dialog.cc +++ b/src/wx/disk_warning_dialog.cc @@ -40,15 +40,19 @@ DiskWarningDialog::DiskWarningDialog () sizer->Layout (); sizer->SetSizeHints (this); - text->SetLabelMarkup ( + /// 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 <b>DCP-o-matic Disk Writer</b> is\n\n<span weight=\"bold\" size=\"20480\" foreground=\"red\">BETA-GRADE TEST SOFTWARE</span>\n\n" "and may\n\n<span weight=\"bold\" size=\"20480\" foreground=\"red\">DESTROY DATA!</span>\n\n" - "If you are sure you want to continue please type\n\n<tt>I am sure</tt>\n\ninto the box below, then click OK.") - ); + "If you are sure you want to continue please type\n\n<tt>%s</tt>\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"); } |
