From 44596429a70d6bc4d0ed553c9ffe84a05243880c Mon Sep 17 00:00:00 2001 From: "james.k.crook" Date: Wed, 10 Feb 2010 23:10:53 +0000 Subject: [PATCH] Corrected version of Ed's patch #18 to localise some strings. --- src/commands/Command.cpp | 2 ++ src/widgets/MultiDialog.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/commands/Command.cpp b/src/commands/Command.cpp index 2c44a702c..80dcd65b1 100644 --- a/src/commands/Command.cpp +++ b/src/commands/Command.cpp @@ -74,6 +74,8 @@ bool ApplyAndSendResponse::Apply(CommandExecutionContext context) { bool result = mCommand->Apply(context); wxString response = GetName(); + // These three strings are deliberately not localised. + // They are used in script responses and always happen in English. response += wxT(" finished: "); if (result) { diff --git a/src/widgets/MultiDialog.cpp b/src/widgets/MultiDialog.cpp index 65ff3cbea..d954a5ee2 100644 --- a/src/widgets/MultiDialog.cpp +++ b/src/widgets/MultiDialog.cpp @@ -86,7 +86,7 @@ MultiDialog::MultiDialog(wxString prompt, mBox->SetName(_("Please select an action")); mBox->SetSelection(0); - wxButton *ok = new wxButton(this, wxID_OK, wxT("OK")); + wxButton *ok = new wxButton(this, wxID_OK, _("OK")); vSizer->Add(mBox, 1, wxGROW|wxALIGN_CENTER|wxALL, 5); vSizer->Add(ok, 0, wxALIGN_CENTER|wxALL, 5);