diff --git a/lib/aspell.c b/lib/aspell.c index f65e373025e0523bfa9af2c7a401d10e5f5ede4e..72176adf68758173c1d1fe5a51df7bdbb2c3a1b7 100644 --- a/lib/aspell.c +++ b/lib/aspell.c @@ -69,8 +69,12 @@ static gboolean iofunc_read(GIOChannel *ioc, GIOCondition cond, gpointer data) { if (msg[0] == '&') { /* & cmd 17 7: ... */ + gint count; tmp = strchr(msg + 2, ' ') + 1; - dict_gui_status_add(dd, _("%d suggestion(s) found."), atoi(tmp)); + count = atoi(tmp); + dict_gui_status_add(dd, ngettext("%d suggestion found.", + "%d suggestions found.", + count), count); tmp = g_strdup_printf(_("Suggestions for \"%s\":"), dd->searched_word); gtk_text_buffer_insert_with_tags( diff --git a/lib/dictd.c b/lib/dictd.c index 8d9e87b69a7efd5e3f75291cc745eb9aaecef7bc..5dca730e9fb3010f97b6efef1914131f3fbb997d 100644 --- a/lib/dictd.c +++ b/lib/dictd.c @@ -106,7 +106,6 @@ static gboolean process_server_response(DictData *dd) gint max_lines, i; gint defs_found = 0; gchar *answer, *tmp, **lines, *stripped; - GtkTextIter iter; if (dd->query_status == NO_CONNECTION) { @@ -160,7 +159,9 @@ static gboolean process_server_response(DictData *dd) return FALSE; } defs_found = atoi(answer + 4); - dict_gui_status_add(dd, _("%d definition(s) found."), defs_found); + dict_gui_status_add(dd, ngettext("%d definition found.", + "%d definitions found.", + defs_found), defs_found); /* go to next line */ while (*answer != '\n') answer++;