1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-06-16 08:09:32 +02:00

Bug 119 - Linux: Export Multiple: "*" and "?" in label or track name wrongly rejected

This commit is contained in:
Leland Lucius 2021-01-30 04:13:56 -06:00
parent ae3c89453f
commit 754838844d
2 changed files with 8 additions and 2 deletions

View File

@ -103,8 +103,14 @@ void Internat::Init()
// or to directories
auto forbid = wxFileName::GetForbiddenChars(format);
for(auto cc: forbid)
for (auto cc: forbid) {
#if defined(__WXGTK__)
if (cc == wxT('*') || cc == wxT('?')) {
continue;
}
#endif
exclude.push_back(wxString{ cc });
}
// The path separators may not be forbidden, so add them
//auto separators = wxFileName::GetPathSeparators(format);

View File

@ -1143,7 +1143,7 @@ wxString ExportMultipleDialog::MakeFileName(const wxString &input)
if( excluded.length() > 1 ){
msg = XO(
// i18n-hint: The second %s gives some letters that can't be used.
"Label or track \"%s\" is not a legal file name. You cannot use\nthese characters:\n\n%s\n\nSuggested replacement:")
"Label or track \"%s\" is not a legal file name.\nYou cannot use any of these characters:\n\n%s\n\nSuggested replacement:")
.Format( input, excluded );
} else {
msg = XO(