diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 1998-10-01 09:27:57 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 1998-10-01 09:27:57 +0000 |
commit | 691bd529e512097f427d230c947ff4cf0adb8a38 (patch) | |
tree | 3bdaff6c2d27ecf7d4f1ddc78d1eef87089d33ed /keymap.c | |
parent | dea307bbc2b8cf7639af5a148c6146e21644e6e4 (diff) |
Adding gettext support, based on the patch by Marco d'Itri.
Diffstat (limited to 'keymap.c')
-rw-r--r-- | keymap.c | 22 |
1 files changed, 11 insertions, 11 deletions
@@ -309,7 +309,7 @@ int km_dokey (int menu) if (n++ == 10) { mutt_flushinp (); - mutt_error ("Macro loop detected."); + mutt_error _("Macro loop detected."); return (-1); } @@ -504,9 +504,9 @@ void km_error_key (int menu) char buf[SHORT_STRING]; if (km_expand_key (buf, sizeof (buf), km_find_func (menu, OP_HELP))) - mutt_error ("Key is not bound. Press '%s' for help.", buf); + mutt_error (_("Key is not bound. Press '%s' for help."), buf); else - mutt_error ("Key is not bound. See the manual."); + mutt_error _("Key is not bound. See the manual."); } int mutt_parse_push (BUFFER *buf, BUFFER *s, unsigned long data, BUFFER *err) @@ -516,7 +516,7 @@ int mutt_parse_push (BUFFER *buf, BUFFER *s, unsigned long data, BUFFER *err) mutt_extract_token (buf, s, M_TOKEN_CONDENSE); if (MoreArgs (s)) { - strfcpy (err->data, "push: too many arguments", err->dsize); + strfcpy (err->data, _("push: too many arguments"), err->dsize); r = -1; } else @@ -537,7 +537,7 @@ char *parse_keymap (int *menu, BUFFER *s, BUFFER *err) { if ((*menu = mutt_check_menu (buf.data)) == -1) { - snprintf (err->data, err->dsize, "%s: no such menu", buf.data); + snprintf (err->data, err->dsize, _("%s: no such menu"), buf.data); } else { @@ -546,7 +546,7 @@ char *parse_keymap (int *menu, BUFFER *s, BUFFER *err) if (!*buf.data) { - strfcpy (err->data, "null key sequence", err->dsize); + strfcpy (err->data, _("null key sequence"), err->dsize); } else if (MoreArgs (s)) return (buf.data); @@ -554,7 +554,7 @@ char *parse_keymap (int *menu, BUFFER *s, BUFFER *err) } else { - strfcpy (err->data, "too few arguments", err->dsize); + strfcpy (err->data, _("too few arguments"), err->dsize); } FREE (&buf.data); return (NULL); @@ -624,7 +624,7 @@ int mutt_parse_bind (BUFFER *buf, BUFFER *s, unsigned long data, BUFFER *err) mutt_extract_token (buf, s, 0); if (MoreArgs (s)) { - strfcpy (err->data, "bind: too many arguments", err->dsize); + strfcpy (err->data, _("bind: too many arguments"), err->dsize); r = -1; } else if (strcasecmp ("noop", buf->data) == 0) @@ -639,7 +639,7 @@ int mutt_parse_bind (BUFFER *buf, BUFFER *s, unsigned long data, BUFFER *err) bindings = km_get_table (menu); if (bindings && try_bind (key, menu, buf->data, bindings) != 0) { - snprintf (err->data, err->dsize, "%s: no such function in map", buf->data); + snprintf (err->data, err->dsize, _("%s: no such function in map"), buf->data); r = -1; } } @@ -662,7 +662,7 @@ int mutt_parse_macro (BUFFER *buf, BUFFER *s, unsigned long data, BUFFER *err) /* make sure the macro sequence is not an empty string */ if (!*buf->data) { - strfcpy (err->data, "macro: empty key sequence", err->dsize); + strfcpy (err->data, _("macro: empty key sequence"), err->dsize); } else { @@ -673,7 +673,7 @@ int mutt_parse_macro (BUFFER *buf, BUFFER *s, unsigned long data, BUFFER *err) if (MoreArgs (s)) { - strfcpy (err->data, "macro: too many arguments", err->dsize); + strfcpy (err->data, _("macro: too many arguments"), err->dsize); } else { |