Skip to content
Snippets Groups Projects
Commit 4e4259ba authored by Enrico Tröger's avatar Enrico Tröger
Browse files

Use correct plural forms in strings to improve translations.

(Old svn revision: 4653)
parent 51788292
No related branches found
No related tags found
No related merge requests found
......@@ -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(
......
......@@ -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++;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment