mirror of
https://github.com/cookiengineer/audacity
synced 2026-04-02 12:35:11 +02:00
Substitute, don't concatenate, when composing localized strings...
... Avoid English syntax bias.
This commit is contained in:
@@ -662,14 +662,15 @@ bool Importer::Import(const wxString &fName,
|
||||
else
|
||||
{
|
||||
// We DO have a plugin for this file, but import failed.
|
||||
wxString pluglist = wxEmptyString;
|
||||
wxString pluglist;
|
||||
|
||||
for (const auto &plugin : compatiblePlugins)
|
||||
{
|
||||
if (pluglist == wxEmptyString)
|
||||
if (pluglist.empty())
|
||||
pluglist = plugin->GetPluginFormatDescription();
|
||||
else
|
||||
pluglist = pluglist + wxT(", ") + plugin->GetPluginFormatDescription();
|
||||
pluglist = wxString::Format( _("%s, %s"),
|
||||
pluglist, plugin->GetPluginFormatDescription() );
|
||||
}
|
||||
|
||||
errorMessage.Printf(_("Audacity recognized the type of the file '%s'.\nImporters supposedly supporting such files are:\n%s,\nbut none of them understood this file format."),fName, pluglist);
|
||||
|
||||
Reference in New Issue
Block a user