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 /query.c | |
parent | dea307bbc2b8cf7639af5a148c6146e21644e6e4 (diff) |
Adding gettext support, based on the patch by Marco d'Itri.
Diffstat (limited to 'query.c')
-rw-r--r-- | query.c | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -88,7 +88,7 @@ static QUERY *run_query (char *s, int quiet) return 0; } if (!quiet) - mutt_message ("Waiting for response..."); + mutt_message _("Waiting for response..."); fgets (msg, sizeof (msg) - 1, fp); while (fgets(buf, sizeof (buf) - 1, fp)) { @@ -189,7 +189,7 @@ int mutt_query_complete (char *buf, size_t buflen) if (!QueryCmd) { - mutt_error ("Query command not defined."); + mutt_error _("Query command not defined."); return 0; } @@ -214,7 +214,7 @@ void mutt_query_menu (char *buf, size_t buflen) { if (!QueryCmd) { - mutt_error ("Query command not defined."); + mutt_error _("Query command not defined."); return; } @@ -239,7 +239,8 @@ static void query_menu (char *buf, size_t buflen, QUERY *results, int retbuf) int i, done = 0; int op; char helpstr[SHORT_STRING]; - char title[STRING] = "Query"; + char title[STRING]; + snprintf (title, sizeof (title), _("Query")); /* FIXME */ menu = mutt_new_menu (); menu->make_entry = query_entry; @@ -252,7 +253,7 @@ static void query_menu (char *buf, size_t buflen, QUERY *results, int retbuf) if (results == NULL) { /* Prompt for Query */ - if (mutt_get_field ("Query: ", buf, buflen, 0) == 0 && buf[0]) + if (mutt_get_field (_("Query: "), buf, buflen, 0) == 0 && buf[0]) { results = run_query (buf, 0); } @@ -263,7 +264,7 @@ static void query_menu (char *buf, size_t buflen, QUERY *results, int retbuf) /* tell whoever called me to redraw the screen when I return */ set_option (OPTNEEDREDRAW); - snprintf (title, sizeof (title), "Query '%s'", buf); + snprintf (title, sizeof (title), _("Query '%s'"), buf); /* count the number of results */ for (queryp = results; queryp; queryp = queryp->next) @@ -280,7 +281,7 @@ static void query_menu (char *buf, size_t buflen, QUERY *results, int retbuf) { case OP_QUERY_APPEND: case OP_QUERY: - if (mutt_get_field ("Query: ", buf, buflen, 0) == 0 && buf[0]) + if (mutt_get_field (_("Query: "), buf, buflen, 0) == 0 && buf[0]) { QUERY *newresults = NULL; @@ -289,7 +290,7 @@ static void query_menu (char *buf, size_t buflen, QUERY *results, int retbuf) menu->redraw = REDRAW_FULL; if (newresults) { - snprintf (title, sizeof (title), "Query '%s'", buf); + snprintf (title, sizeof (title), _("Query '%s'"), buf); if (op == OP_QUERY) { |