1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-07-31 16:09:28 +02:00

Prepare error strings for bug 2057.

This commit is contained in:
James Crook 2019-04-18 18:12:33 +01:00
parent fe22b2ae22
commit 7838aa0a90

View File

@ -345,7 +345,7 @@ public:
bool CheckFileName(wxFileName &filename, int format) override;
private:
void ReportTooBigError(wxWindow * pParent);
ArrayOf<char> AdjustString(const wxString & wxStr, int sf_format);
bool AddStrings(AudacityProject *project, SNDFILE *sf, const Tags *tags, int sf_format);
bool AddID3Chunk(wxString fName, const Tags *tags, int sf_format);
@ -397,6 +397,24 @@ ExportPCM::ExportPCM()
SetMaxChannels(255, format);
}
// Bug 2057
// This function is not yet called anywhere.
// It is provided to get the translation strings.
// We can hook it in properly whilst translation happens.
void ExportPCM::ReportTooBigError(wxWindow * pParent)
{
ShowErrorDialog(pParent, _("Error Exporting"),
_("You have attempted to Export a WAV file which would be greater than 4GB.\n"
"Audacity cannot do this, the Export was abandoned."),
wxT("Error_wav_too_big"));
ShowErrorDialog(pParent, _("Error Exporting"),
_("Your exported WAV file has been truncated as Audacity cannot export WAV\n"
"files bigger than 4GB."),
wxT("Error_wav_truncated"));
}
/**
*
* @param subformat Control whether we are doing a "preset" export to a popular