From: Reis Radomil Date: Sun, 28 Apr 2019 14:25:18 +0000 (+0000) Subject: icommands.c: Add hints about '%s' for the translators X-Git-Tag: 2019-10-25~230^2~2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=159386b56d39701678938fc4dcffac8ea56b37aa;p=neomutt icommands.c: Add hints about '%s' for the translators Add comments which describe what the '%s' parameter in the translation string is. --- diff --git a/icommands.c b/icommands.c index afa81d0c8..27f60412b 100644 --- a/icommands.c +++ b/icommands.c @@ -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; }