mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-16 16:10:06 +02:00
Bug 119 - Linux: Export Multiple: "*" and "?" in label or track name wrongly rejected
This commit is contained in:
parent
ae3c89453f
commit
754838844d
@ -103,8 +103,14 @@ void Internat::Init()
|
|||||||
// or to directories
|
// or to directories
|
||||||
auto forbid = wxFileName::GetForbiddenChars(format);
|
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 });
|
exclude.push_back(wxString{ cc });
|
||||||
|
}
|
||||||
|
|
||||||
// The path separators may not be forbidden, so add them
|
// The path separators may not be forbidden, so add them
|
||||||
//auto separators = wxFileName::GetPathSeparators(format);
|
//auto separators = wxFileName::GetPathSeparators(format);
|
||||||
|
@ -1143,7 +1143,7 @@ wxString ExportMultipleDialog::MakeFileName(const wxString &input)
|
|||||||
if( excluded.length() > 1 ){
|
if( excluded.length() > 1 ){
|
||||||
msg = XO(
|
msg = XO(
|
||||||
// i18n-hint: The second %s gives some letters that can't be used.
|
// 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 );
|
.Format( input, excluded );
|
||||||
} else {
|
} else {
|
||||||
msg = XO(
|
msg = XO(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user