[Goodies-commits] r4653 - xfce4-dict/trunk/lib
Enrico Troeger
enrico at xfce.org
Tue Apr 22 21:11:01 CEST 2008
Author: enrico
Date: 2008-04-22 19:11:01 +0000 (Tue, 22 Apr 2008)
New Revision: 4653
Modified:
xfce4-dict/trunk/lib/aspell.c
xfce4-dict/trunk/lib/dictd.c
Log:
Use correct plural forms in strings to improve translations.
Modified: xfce4-dict/trunk/lib/aspell.c
===================================================================
--- xfce4-dict/trunk/lib/aspell.c 2008-04-22 19:10:58 UTC (rev 4652)
+++ xfce4-dict/trunk/lib/aspell.c 2008-04-22 19:11:01 UTC (rev 4653)
@@ -69,8 +69,12 @@
{
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(
Modified: xfce4-dict/trunk/lib/dictd.c
===================================================================
--- xfce4-dict/trunk/lib/dictd.c 2008-04-22 19:10:58 UTC (rev 4652)
+++ xfce4-dict/trunk/lib/dictd.c 2008-04-22 19:11:01 UTC (rev 4653)
@@ -106,7 +106,6 @@
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 @@
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++;
More information about the Goodies-commits
mailing list