From: Richard Russon Date: Thu, 19 Jul 2018 09:34:01 +0000 (+0100) Subject: i18n messages X-Git-Tag: 2019-10-25~749^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=754a69fe9704f5774d25785d6737ebac50e36273;p=neomutt i18n messages --- diff --git a/alias.c b/alias.c index d1d62a88d..61b7e44ec 100644 --- a/alias.c +++ b/alias.c @@ -499,7 +499,7 @@ retry_name: 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.")); } diff --git a/copy.c b/copy.c index 5bfb462be..060c569d3 100644 --- a/copy.c +++ b/copy.c @@ -639,7 +639,7 @@ int mutt_copy_message_fp(FILE *fpout, FILE *fpin, struct Header *hdr, int flags, 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; } diff --git a/init.c b/init.c index 40cbbe3ad..8b57f9f54 100644 --- a/init.c +++ b/init.c @@ -1233,7 +1233,7 @@ static int source_rc(const char *rcfile_path, struct Buffer *err) 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; } @@ -1250,7 +1250,7 @@ static int source_rc(const char *rcfile_path, struct Buffer *err) } else { - mutt_error("Error: Cyclic sourcing of configuration file '%s'.", rcfile); + mutt_error(_("Error: Cyclic sourcing of configuration file '%s'."), rcfile); return -1; } } @@ -1783,7 +1783,7 @@ static int parse_ifdef(struct Buffer *buf, struct Buffer *s, unsigned long data, 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; } diff --git a/mutt_lua.c b/mutt_lua.c index bdcff4343..a4fcac386 100644 --- a/mutt_lua.c +++ b/mutt_lua.c @@ -373,7 +373,7 @@ static bool lua_init(lua_State **l) if (!*l) { - mutt_error("Error: Couldn't load the lua interpreter."); + mutt_error(_("Error: Couldn't load the lua interpreter.")); return false; } @@ -449,7 +449,7 @@ int mutt_lua_source_file(struct Buffer *tmp, struct Buffer *s, 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; }