mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-26 23:33:49 +01:00
FileNames::SelectFile takes TranslatableString for message
This commit is contained in:
@@ -229,7 +229,7 @@ void OnExportLabels(const CommandContext &context)
|
||||
fName = (*trackRange.rbegin())->GetName();
|
||||
|
||||
fName = FileNames::SelectFile(FileNames::Operation::Export,
|
||||
_("Export Labels As:"),
|
||||
XO("Export Labels As:"),
|
||||
wxEmptyString,
|
||||
fName,
|
||||
wxT("txt"),
|
||||
@@ -315,7 +315,7 @@ void OnExportMIDI(const CommandContext &context)
|
||||
wxString fName;
|
||||
|
||||
fName = FileNames::SelectFile(FileNames::Operation::Export,
|
||||
_("Export MIDI As:"),
|
||||
XO("Export MIDI As:"),
|
||||
wxEmptyString,
|
||||
fName,
|
||||
wxT(".mid|.gro"),
|
||||
@@ -419,7 +419,7 @@ void OnImportLabels(const CommandContext &context)
|
||||
|
||||
wxString fileName =
|
||||
FileNames::SelectFile(FileNames::Operation::Open,
|
||||
_("Select a text file containing labels"),
|
||||
XO("Select a text file containing labels"),
|
||||
wxEmptyString, // Path
|
||||
wxT(""), // Name
|
||||
wxT(".txt"), // Extension
|
||||
@@ -463,7 +463,7 @@ void OnImportMIDI(const CommandContext &context)
|
||||
auto &window = GetProjectFrame( project );
|
||||
|
||||
wxString fileName = FileNames::SelectFile(FileNames::Operation::Open,
|
||||
_("Select a MIDI file"),
|
||||
XO("Select a MIDI file"),
|
||||
wxEmptyString, // Path
|
||||
wxT(""), // Name
|
||||
wxT(""), // Extension
|
||||
@@ -484,7 +484,7 @@ void OnImportRaw(const CommandContext &context)
|
||||
|
||||
wxString fileName =
|
||||
FileNames::SelectFile(FileNames::Operation::Open,
|
||||
_("Select any uncompressed audio file"),
|
||||
XO("Select any uncompressed audio file"),
|
||||
wxEmptyString, // Path
|
||||
wxT(""), // Name
|
||||
wxT(""), // Extension
|
||||
|
||||
@@ -57,7 +57,7 @@ void ShowDiagnostics(
|
||||
|
||||
if (dlg.ShowModal() == wxID_OK)
|
||||
{
|
||||
const auto fileDialogTitle = XO("Save %s").Format( description ).Translation();
|
||||
const auto fileDialogTitle = XO("Save %s").Format( description );
|
||||
wxString fName = FileNames::SelectFile(FileNames::Operation::Export,
|
||||
fileDialogTitle,
|
||||
wxEmptyString,
|
||||
@@ -72,7 +72,7 @@ void ShowDiagnostics(
|
||||
{
|
||||
AudacityMessageBox(
|
||||
XO("Unable to save %s").Format( description ).Translation(),
|
||||
fileDialogTitle);
|
||||
fileDialogTitle.Translation());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user