mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-13 14:13:32 +02:00
TranslatableString for titles, names, labels of wxDialogWrappers...
... Found one missed translation in CommandTargets.cpp
This commit is contained in:
@@ -532,7 +532,7 @@ bool Importer::Import(const FilePath &fName,
|
||||
// File has more than one stream - display stream selector
|
||||
if (inFile->GetStreamCount() > 1)
|
||||
{
|
||||
ImportStreamDialog ImportDlg(inFile.get(), NULL, -1, _("Select stream(s) to import"));
|
||||
ImportStreamDialog ImportDlg(inFile.get(), NULL, -1, XO("Select stream(s) to import"));
|
||||
|
||||
if (ImportDlg.ShowModal() == wxID_CANCEL)
|
||||
{
|
||||
@@ -741,11 +741,11 @@ BEGIN_EVENT_TABLE( ImportStreamDialog, wxDialogWrapper )
|
||||
EVT_BUTTON( wxID_CANCEL, ImportStreamDialog::OnCancel )
|
||||
END_EVENT_TABLE()
|
||||
|
||||
ImportStreamDialog::ImportStreamDialog( ImportFileHandle *_mFile, wxWindow *parent, wxWindowID id, const wxString &title,
|
||||
ImportStreamDialog::ImportStreamDialog( ImportFileHandle *_mFile, wxWindow *parent, wxWindowID id, const TranslatableString &title,
|
||||
const wxPoint &position, const wxSize& size, long style ):
|
||||
wxDialogWrapper( parent, id, title, position, size, style | wxRESIZE_BORDER )
|
||||
{
|
||||
SetName(GetTitle());
|
||||
SetName();
|
||||
|
||||
mFile = _mFile;
|
||||
scount = mFile->GetStreamCount();
|
||||
|
@@ -174,7 +174,7 @@ class ImportStreamDialog final : public wxDialogWrapper
|
||||
public:
|
||||
// constructors and destructors
|
||||
ImportStreamDialog( ImportFileHandle *_mFile,
|
||||
wxWindow *parent, wxWindowID id, const wxString &title,
|
||||
wxWindow *parent, wxWindowID id, const TranslatableString &title,
|
||||
const wxPoint& pos = wxDefaultPosition,
|
||||
const wxSize& size = wxDefaultSize,
|
||||
long style = wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER );
|
||||
|
@@ -301,7 +301,7 @@ END_EVENT_TABLE()
|
||||
ImportRawDialog::ImportRawDialog(wxWindow * parent,
|
||||
int encoding, unsigned channels,
|
||||
int offset, double rate)
|
||||
: wxDialogWrapper(parent, wxID_ANY, _("Import Raw Data"),
|
||||
: wxDialogWrapper(parent, wxID_ANY, XO("Import Raw Data"),
|
||||
wxDefaultPosition, wxDefaultSize,
|
||||
wxDEFAULT_DIALOG_STYLE | wxRESIZE_BORDER),
|
||||
mEncoding(encoding),
|
||||
@@ -311,7 +311,7 @@ ImportRawDialog::ImportRawDialog(wxWindow * parent,
|
||||
{
|
||||
wxASSERT(channels >= 1);
|
||||
|
||||
SetName(GetTitle());
|
||||
SetName();
|
||||
|
||||
ShuttleGui S(this, eIsCreating);
|
||||
wxArrayStringEx encodings;
|
||||
|
Reference in New Issue
Block a user