mirror of
https://github.com/cookiengineer/audacity
synced 2025-12-15 17:11:20 +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:
@@ -30,7 +30,6 @@
|
||||
#include <wx/radiobut.h>
|
||||
#include <wx/button.h>
|
||||
#include <wx/imaglist.h>
|
||||
#include <wx/msgdlg.h>
|
||||
#include <wx/settings.h>
|
||||
|
||||
#include "AudacityException.h"
|
||||
@@ -52,6 +51,7 @@
|
||||
#include "FileDialog.h"
|
||||
#include "FileNames.h"
|
||||
#include "import/Import.h"
|
||||
#include "widgets/ErrorDialog.h"
|
||||
|
||||
#define ChainsListID 7001
|
||||
#define CommandsListID 7002
|
||||
@@ -150,7 +150,7 @@ void BatchProcessDialog::OnApplyToProject(wxCommandEvent & WXUNUSED(event))
|
||||
wxLIST_NEXT_ALL,
|
||||
wxLIST_STATE_SELECTED);
|
||||
if (item == -1) {
|
||||
wxMessageBox(_("No chain selected"));
|
||||
AudacityMessageBox(_("No chain selected"));
|
||||
return;
|
||||
}
|
||||
wxString name = mChains->GetItemText(item);
|
||||
@@ -224,7 +224,7 @@ void BatchProcessDialog::OnApplyToFiles(wxCommandEvent & WXUNUSED(event))
|
||||
wxLIST_NEXT_ALL,
|
||||
wxLIST_STATE_SELECTED);
|
||||
if (item == -1) {
|
||||
wxMessageBox(_("No chain selected"));
|
||||
AudacityMessageBox(_("No chain selected"));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -234,7 +234,7 @@ void BatchProcessDialog::OnApplyToFiles(wxCommandEvent & WXUNUSED(event))
|
||||
|
||||
AudacityProject *project = GetActiveProject();
|
||||
if (!project->GetIsEmpty()) {
|
||||
wxMessageBox(_("Please save and close the current project first."));
|
||||
AudacityMessageBox(_("Please save and close the current project first."));
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -645,7 +645,7 @@ bool EditChainsDialog::ChangeOK()
|
||||
title.Printf(_("%s changed"), mActiveChain.c_str());
|
||||
msg = _("Do you want to save the changes?");
|
||||
|
||||
id = wxMessageBox(msg, title, wxYES_NO | wxCANCEL);
|
||||
id = AudacityMessageBox(msg, title, wxYES_NO | wxCANCEL);
|
||||
if (id == wxCANCEL) {
|
||||
return false;
|
||||
}
|
||||
@@ -792,7 +792,7 @@ void EditChainsDialog::OnAdd(wxCommandEvent & WXUNUSED(event))
|
||||
name = d.GetValue().Strip(wxString::both);
|
||||
|
||||
if (name.Length() == 0) {
|
||||
wxMessageBox(_("Name must not be blank"),
|
||||
AudacityMessageBox(_("Name must not be blank"),
|
||||
GetTitle(),
|
||||
wxOK | wxICON_ERROR,
|
||||
this);
|
||||
@@ -802,7 +802,7 @@ void EditChainsDialog::OnAdd(wxCommandEvent & WXUNUSED(event))
|
||||
if (name.Contains(wxFILE_SEP_PATH) ||
|
||||
name.Contains(wxFILE_SEP_PATH_UNIX)) {
|
||||
/*i18n-hint: The %c will be replaced with 'forbidden characters', like '/' and '\'.*/
|
||||
wxMessageBox(wxString::Format(_("Names may not contain '%c' and '%c'"),
|
||||
AudacityMessageBox(wxString::Format(_("Names may not contain '%c' and '%c'"),
|
||||
wxFILE_SEP_PATH, wxFILE_SEP_PATH_UNIX),
|
||||
GetTitle(),
|
||||
wxOK | wxICON_ERROR,
|
||||
|
||||
Reference in New Issue
Block a user