]> granicus.if.org Git - neomutt/commitdiff
icommands.c: Add hints about '%s' for the translators
authorReis Radomil <reisradomil@fake-box.com>
Sun, 28 Apr 2019 14:25:18 +0000 (14:25 +0000)
committerRichard Russon <rich@flatcap.org>
Tue, 30 Apr 2019 16:38:27 +0000 (17:38 +0100)
Add comments which describe what the '%s' parameter in the translation
string is.

icommands.c

index afa81d0c80822fcef6d246546b9f444063d64370..27f60412bd74bff18f3abd1e8324dcacf216eb85 100644 (file)
@@ -260,6 +260,7 @@ static enum CommandResult icmd_bind(struct Buffer *buf, struct Buffer *s,
     const int menu_index = mutt_map_get_value(buf->data, Menus);
     if (menu_index == -1)
     {
+      // L10N: '%s' is the (misspelled) name of the menu, e.g. 'index' or 'pager'
       mutt_buffer_printf(err, _("%s: no such menu"), buf->data);
       mutt_buffer_free(&filebuf);
       return MUTT_CMD_ERROR;
@@ -281,6 +282,7 @@ static enum CommandResult icmd_bind(struct Buffer *buf, struct Buffer *s,
   fp_out = mutt_file_fopen(tempfile, "w");
   if (!fp_out)
   {
+    // L10N: '%s' is the file name of the temporary file
     mutt_buffer_printf(err, _("Could not create temporary file %s"), tempfile);
     mutt_buffer_free(&filebuf);
     return MUTT_CMD_ERROR;
@@ -293,6 +295,7 @@ static enum CommandResult icmd_bind(struct Buffer *buf, struct Buffer *s,
   struct Pager info = { 0 };
   if (mutt_pager((bind) ? "bind" : "macro", tempfile, MUTT_PAGER_NO_FLAGS, &info) == -1)
   {
+    // L10N: '%s' is the file name of the temporary file
     mutt_buffer_printf(err, _("Could not create temporary file %s"), tempfile);
     return MUTT_CMD_ERROR;
   }
@@ -312,6 +315,7 @@ static enum CommandResult icmd_set(struct Buffer *buf, struct Buffer *s,
   FILE *fp_out = mutt_file_fopen(tempfile, "w");
   if (!fp_out)
   {
+    // L10N: '%s' is the file name of the temporary file
     mutt_buffer_printf(err, _("Could not create temporary file %s"), tempfile);
     return MUTT_CMD_ERROR;
   }
@@ -335,6 +339,7 @@ static enum CommandResult icmd_set(struct Buffer *buf, struct Buffer *s,
   struct Pager info = { 0 };
   if (mutt_pager("set", tempfile, MUTT_PAGER_NO_FLAGS, &info) == -1)
   {
+    // L10N: '%s' is the file name of the temporary file
     mutt_buffer_printf(err, _("Could not create temporary file %s"), tempfile);
     return MUTT_CMD_ERROR;
   }
@@ -354,6 +359,7 @@ static enum CommandResult icmd_version(struct Buffer *buf, struct Buffer *s,
   FILE *fp_out = mutt_file_fopen(tempfile, "w");
   if (!fp_out)
   {
+    // L10N: '%s' is the file name of the temporary file
     mutt_buffer_printf(err, _("Could not create temporary file %s"), tempfile);
     return MUTT_CMD_ERROR;
   }
@@ -364,6 +370,7 @@ static enum CommandResult icmd_version(struct Buffer *buf, struct Buffer *s,
   struct Pager info = { 0 };
   if (mutt_pager("version", tempfile, MUTT_PAGER_NO_FLAGS, &info) == -1)
   {
+    // L10N: '%s' is the file name of the temporary file
     mutt_buffer_printf(err, _("Could not create temporary file %s"), tempfile);
     return MUTT_CMD_ERROR;
   }