vector<std::string> result;
find_files_matching_pattern (result, directory_path, "*.midnam");
- info << "Loading " << result.size() << " MIDI patches from " << directory_path
+ info << string_compose(
+ P_("Loading %1 MIDI patch from %2", "Loading %1 MIDI patches from %2", result.size()),
+ result.size(), directory_path)
<< endmsg;
for (vector<std::string>::const_iterator i = result.begin(); i != result.end(); ++i) {
vector<std::string> result;
find_files_matching_pattern (result, directory_path, "*.midnam");
- info << "Unloading " << result.size() << " MIDI patches from "
- << directory_path << endmsg;
+ info << string_compose(
+ P_("Unloading %1 MIDI patch from %2", "Unloading %1 MIDI patches from %2", result.size()),
+ result.size(), directory_path)
+ << endmsg;
for (vector<std::string>::const_iterator i = result.begin(); i != result.end(); ++i) {
remove_midi_name_document (*i);
document = boost::shared_ptr<MIDINameDocument>(new MIDINameDocument(file_path));
}
catch (...) {
- error << "Error parsing MIDI patch file " << file_path << endmsg;
+ error << string_compose(_("Error parsing MIDI patch file %1"), file_path)
+ << endmsg;
return false;
}
for (MIDINameDocument::MasterDeviceNamesList::const_iterator device =
boost::shared_ptr<MIDINameDocument> document = i->second;
+ info << string_compose(_("Removing MIDI patch file %1"), file_path) << endmsg;
+
_documents.erase(i++);
for (MIDINameDocument::MasterDeviceNamesList::const_iterator device =