]> granicus.if.org Git - neomutt/commitdiff
i18n messages
authorRichard Russon <rich@flatcap.org>
Thu, 19 Jul 2018 09:34:01 +0000 (10:34 +0100)
committerRichard Russon <rich@flatcap.org>
Thu, 19 Jul 2018 09:56:47 +0000 (10:56 +0100)
alias.c
copy.c
init.c
mutt_lua.c

diff --git a/alias.c b/alias.c
index d1d62a88dff33fb604be5d799ff24e506000e002..61b7e44ec2cc03010a03546bb1472b87770a7dd5 100644 (file)
--- 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 5bfb462bef958e40f67475230d2f27cdc446b369..060c569d3eeefaee9ececc06282c56c7b0d23492 100644 (file)
--- 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 40cbbe3ad137a4b29f2c656b9348a9d41de2a53a..8b57f9f548031b3786af28640b8181146508fbce 100644 (file)
--- 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;
     }
index bdcff4343a2fdd3a949fafa94ddeae0864f667b6..a4fcac386ba206e10730e507091a892651b8b18a 100644 (file)
@@ -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;
   }