string to_type = ly_symbol2string (get_music ()->get_property ("change-to-type"));
string to_id = ly_scm2string (get_music ()->get_property ("change-to-id"));
- string warn1 = _f (cannot change `%s' to `%s'", to_type, to_id)
+ string warn1 = _f ("cannot change `%s' to `%s'", to_type, to_id)
+ ": " + reason;
/*
if (current && current->id_string () == to_id)
{
string msg;
- msg += _f (cannot change, already in translator: %s", to_id);
+ msg += _f ("cannot change, already in translator: %s", to_id);
}
if (current)
ret = daddy_context_->create_unique_context (name, id, operations);
else
{
- warning (_f (cannot find or create new `%s'",
+ warning (_f ("cannot find or create new `%s'",
ly_symbol2string (name).c_str ()));
ret = 0;
}
ret = daddy_context_->find_create_context (n, id, operations);
else
{
- warning (_f (cannot find or create `%s' called `%s'",
+ warning (_f ("cannot find or create `%s' called `%s'",
ly_symbol2string (n).c_str (), id));
ret = 0;
}
Context_def *t = unsmob_context_def (st);
if (!t)
{
- warning (_f (cannot find or create: `%s'", name.c_str ()));
+ warning (_f ("cannot find or create: `%s'", name.c_str ()));
t = unsmob_context_def (this->definition_);
}
Source_file *file = sources->get_file (&name);
if (!file)
{
- string msg = _f (cannot find file: `%s'", name);
+ string msg = _f ("cannot find file: `%s'", name);
msg += "\n";
msg += _f ("(search path: `%s')",
sources->path_->to_string ().c_str ());
{
if (must_exist)
{
- string e = _f (cannot find file: `%s'", fn);
+ string e = _f ("cannot find file: `%s'", fn);
e += " ";
e += _f ("(load path: `%s')", global_path.to_string ());
error (e);
if (type != SCM_EOL && !ly_is_procedure (type))
{
- warning (_f (cannot find property type-check for `%s' (%s).",
+ warning (_f ("cannot find property type-check for `%s' (%s).",
ly_symbol2string (sym).c_str (),
ly_symbol2string (type_symbol).c_str ())
+ " " + _ ("perhaps a typing error?"));
if (init.length () && global_path.find (init).empty ())
{
- warning (_f (cannot find init file: `%s'", init));
+ warning (_f ("cannot find init file: `%s'", init));
warning (_f ("(search path: `%s')",
global_path.to_string ().c_str ()));
exit (2);
bool error = false;
if ((file_name != "-") && file_name.empty ())
{
- warning (_f (cannot find file: `%s'", file));
+ warning (_f ("cannot find file: `%s'", file));
error = true;
}
else
if (errno == 0)
error (_f ("no such user: %s", components[USER_NAME]));
else
- error (_f (cannot get user id from user name: %s: %s",
+ error (_f ("cannot get user id from user name: %s: %s",
components[USER_NAME],
strerror (errno)));
exit (3);
if (errno == 0)
error (_f ("no such group: %s", components[GROUP_NAME]));
else
- error (_f (cannot get group id from group name: %s: %s",
+ error (_f ("cannot get group id from group name: %s: %s",
components[GROUP_NAME],
strerror (errno)));
exit (3);
if (chroot (components[JAIL].c_str ()))
{
- error (_f (cannot chroot to: %s: %s", components[JAIL],
+ error (_f ("cannot chroot to: %s: %s", components[JAIL],
strerror (errno)));
exit (3);
}
if (setgid (gid))
{
- error (_f (cannot change group id to: %d: %s", gid, strerror (errno)));
+ error (_f ("cannot change group id to: %d: %s", gid, strerror (errno)));
exit (3);
}
if (setuid (uid))
{
- error (_f (cannot change user id to: %d: %s", uid, strerror (errno)));
+ error (_f ("cannot change user id to: %d: %s", uid, strerror (errno)));
exit (3);
}
if (chdir (components[DIR].c_str ()))
{
- error (_f (cannot change working directory to: %s: %s", components[DIR],
+ error (_f ("cannot change working directory to: %s: %s", components[DIR],
strerror (errno)));
exit (3);
}
file_name_string_ = file_name;
out_file_ = fopen (file_name.c_str (), "wb");
if (!out_file_)
- error (_f (cannot open for write: %s: %s", file_name, strerror (errno)));
+ error (_f ("cannot open for write: %s: %s", file_name, strerror (errno)));
}
Midi_stream::~Midi_stream ()
{
FT_Byte *buffer = (FT_Byte *) malloc (*length);
if (buffer == NULL)
- error (_f (cannot allocate %lu bytes", *length));
+ error (_f ("cannot allocate %lu bytes", *length));
error_code = FT_Load_Sfnt_Table (face, tag, 0, buffer, length);
if (error_code)
- error (_f (cannot load font table: %s", tag_str));
+ error (_f ("cannot load font table: %s", tag_str));
return buffer;
}
if (!mixed)
{
if (!p->start_ev_)
- p->event_drul_[STOP]->origin ()->warning (_f (cannot find start of piano pedal: `%s'", p->type_->base_name_.c_str ()));
+ p->event_drul_[STOP]->origin ()->warning (_f ("cannot find start of piano pedal: `%s'", p->type_->base_name_.c_str ()));
else
s = scm_cadr (strings);
p->start_ev_ = p->event_drul_[START];
if (!mixed)
{
if (!p->start_ev_)
- p->event_drul_[STOP]->origin ()->warning (_f (cannot find start of piano pedal: `%s'", p->type_->base_name_.c_str ()));
+ p->event_drul_[STOP]->origin ()->warning (_f ("cannot find start of piano pedal: `%s'", p->type_->base_name_.c_str ()));
else
s = scm_caddr (strings);
p->start_ev_ = 0;
{
if (!p->bracket_ && p->event_drul_[STOP])
{
- string msg = _f (cannot find start of piano pedal bracket: `%s'", p->type_->base_name_.c_str ());
+ string msg = _f ("cannot find start of piano pedal bracket: `%s'", p->type_->base_name_.c_str ());
p->event_drul_[STOP]->origin ()->warning (msg);
p->event_drul_[STOP] = 0;
}
if (p->event_drul_[STOP])
{
if (!p->start_event_)
- p->event_drul_[STOP]->origin ()->warning (_f (cannot find start of piano pedal: `%s'", pedal_type));
+ p->event_drul_[STOP]->origin ()->warning (_f ("cannot find start of piano pedal: `%s'", pedal_type));
else
{
Audio_piano_pedal *a = new Audio_piano_pedal;
char const *cname = filename.c_str ();
FILE *f = fopen (cname, "r");
if (!f)
- error (_f (cannot open file %s", cname));
+ error (_f ("cannot open file %s", cname));
while (!feof (f))
{
FILE *f = fopen (filename.c_str (), "rb");
if (!f)
{
- warning (_f (cannot open file: `%s'", filename.c_str ()));
+ warning (_f ("cannot open file: `%s'", filename.c_str ()));
vector<char> cxx_arr;
return cxx_arr;
{
Translator *type = get_translator (scm_car (s));
if (!type)
- warning (_f (cannot find: `%s'", ly_symbol2string (scm_car (s)).c_str ()));
+ warning (_f ("cannot find: `%s'", ly_symbol2string (scm_car (s)).c_str ()));
else
{
Translator *tr = type->clone ();