mirror of
https://github.com/cookiengineer/audacity
synced 2026-03-11 00:45:53 +01:00
Translate "Message" as default title of message box...
... This required a sweeping change of all calls to wxMessageBox! But it seems safe to me, despite the great number of touched files.
This commit is contained in:
@@ -28,7 +28,6 @@ KeyConfigPrefs and MousePrefs use.
|
||||
#include <wx/intl.h>
|
||||
#include <wx/filedlg.h>
|
||||
#include <wx/button.h>
|
||||
#include <wx/msgdlg.h>
|
||||
|
||||
#include "../Prefs.h"
|
||||
#include "../Project.h"
|
||||
@@ -42,6 +41,7 @@ KeyConfigPrefs and MousePrefs use.
|
||||
#include "../FileNames.h"
|
||||
|
||||
#include "../widgets/KeyView.h"
|
||||
#include "../widgets/ErrorDialog.h"
|
||||
|
||||
//
|
||||
// KeyConfigPrefs
|
||||
@@ -348,7 +348,7 @@ void KeyConfigPrefs::OnImport(wxCommandEvent & WXUNUSED(event))
|
||||
|
||||
XMLFileReader reader;
|
||||
if (!reader.Parse(mManager, file)) {
|
||||
wxMessageBox(reader.GetErrorStr(),
|
||||
AudacityMessageBox(reader.GetErrorStr(),
|
||||
_("Error Importing Keyboard Shortcuts"),
|
||||
wxOK | wxCENTRE, this);
|
||||
}
|
||||
@@ -585,7 +585,7 @@ void KeyConfigPrefs::SetKeyForSelected(const wxString & key)
|
||||
|
||||
if (!mView->CanSetKey(mCommandSelected))
|
||||
{
|
||||
wxMessageBox(_("You may not assign a key to this entry"),
|
||||
AudacityMessageBox(_("You may not assign a key to this entry"),
|
||||
_("Error"), wxICON_ERROR | wxCENTRE, this);
|
||||
return;
|
||||
}
|
||||
@@ -599,7 +599,7 @@ void KeyConfigPrefs::SetKeyForSelected(const wxString & key)
|
||||
void KeyConfigPrefs::OnSet(wxCommandEvent & WXUNUSED(event))
|
||||
{
|
||||
if (mCommandSelected == wxNOT_FOUND) {
|
||||
wxMessageBox(_("You must select a binding before assigning a shortcut"),
|
||||
AudacityMessageBox(_("You must select a binding before assigning a shortcut"),
|
||||
_("Error"), wxICON_WARNING | wxCENTRE, this);
|
||||
return;
|
||||
}
|
||||
@@ -619,7 +619,7 @@ void KeyConfigPrefs::OnSet(wxCommandEvent & WXUNUSED(event))
|
||||
mManager->GetPrefixedLabelFromName(oldname);
|
||||
wxString newlabel = mManager->GetCategoryFromName(newname) + wxT(" - ") +
|
||||
mManager->GetPrefixedLabelFromName(newname);
|
||||
if (wxMessageBox(
|
||||
if (AudacityMessageBox(
|
||||
wxString::Format(
|
||||
_("The keyboard shortcut '%s' is already assigned to:\n\n\t'%s'\n\nClick OK to assign the shortcut to\n\n\t'%s'\n\ninstead. Otherwise, click Cancel."),
|
||||
key.c_str(),
|
||||
|
||||
Reference in New Issue
Block a user