write_safe_address(rc, buf);
fputc('\n', rc);
if (mutt_file_fsync_close(&rc) != 0)
- mutt_message("Trouble adding alias: %s.", strerror(errno));
+ mutt_perror(_("Trouble adding alias"));
else
mutt_message(_("Alias added."));
}
LOFF_T fail = ((ftello(fpout) - new_offset) - new_length);
if (fail)
{
- mutt_error("The length calculation was wrong by %ld bytes", fail);
+ mutt_error(_("The length calculation was wrong by %ld bytes"), fail);
new_length += fail;
}
struct ListNode *np = STAILQ_FIRST(&MuttrcStack);
if (!mutt_file_to_absolute_path(rcfile, np ? NONULL(np->data) : ""))
{
- mutt_error("Error: impossible to build path of '%s'.", rcfile_path);
+ mutt_error(_("Error: impossible to build path of '%s'."), rcfile_path);
return -1;
}
}
else
{
- mutt_error("Error: Cyclic sourcing of configuration file '%s'.", rcfile);
+ mutt_error(_("Error: Cyclic sourcing of configuration file '%s'."), rcfile);
return -1;
}
}
int rc = mutt_parse_rc_line(buf->data, &token, err);
if (rc == -1)
{
- mutt_error("Error: %s", err->data);
+ mutt_error(_("Error: %s"), err->data);
FREE(&token.data);
return -1;
}
if (!*l)
{
- mutt_error("Error: Couldn't load the lua interpreter.");
+ mutt_error(_("Error: Couldn't load the lua interpreter."));
return false;
}
if (luaL_dofile(Lua, path))
{
- mutt_error("Couldn't source lua source: %s", lua_tostring(Lua, -1));
+ mutt_error(_("Couldn't source lua source: %s"), lua_tostring(Lua, -1));
lua_pop(Lua, 1);
return -1;
}