Requesto for string freeze break in gnome-utils



Hi everyone!

The patch below, needed in order to fix bug #332383, uses ngettext on
two strings inside gnome-dictionary.

Since it should make the life of translators easier I'd like to apply it
to the gnome-2-14 branch of gnome-utils (it's already in HEAD).

+++

Also, I'd like to know if someone might give an answer to my previous
request for string freeze break, regarding the "file with same name of
directory"[2] issue, that I sent last week[3].

Ciao,
 Emmanuele.

[1] http://bugzilla.gnome.org/show_bug.cgi?id=332383
[2] http://bugzilla.gnome.org/show_bug.cgi?id=331031
[3] http://mail.gnome.org/archives/gnome-i18n/2006-February/msg00226.html

-- 
Emmanuele Bassi - <ebassi gmail com>
Log: http://log.emmanuelebassi.net
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/gnome-utils/gnome-dictionary/ChangeLog,v
retrieving revision 1.45.2.3
diff -u -u -p -r1.45.2.3 ChangeLog
--- ChangeLog	23 Feb 2006 15:12:33 -0000	1.45.2.3
+++ ChangeLog	24 Feb 2006 01:12:19 -0000
@@ -1,3 +1,11 @@
+2006-02-24  Emmanuele Bassi  <ebassi cvs gnome org>
+
+	Backport from HEAD.
+
+	* src/gdict-window.c (gdict_window_lookup_end_cb): use ngettext to
+	use the correct localized plural form (patch by Gabor Kelemen,
+	closes bug #332383).
+
 2006-02-23  Emmanuele Bassi  <ebassi cvs gnome org>
 
 	* src/gdict-applet.c (show_error_dialog): didn't commit the previous
Index: src/gdict-window.c
===================================================================
RCS file: /cvs/gnome/gnome-utils/gnome-dictionary/src/gdict-window.c,v
retrieving revision 1.16
diff -u -u -p -r1.16 gdict-window.c
--- src/gdict-window.c	5 Feb 2006 14:53:31 -0000	1.16
+++ src/gdict-window.c	24 Feb 2006 01:12:19 -0000
@@ -197,10 +197,10 @@ gdict_window_lookup_end_cb (GdictContext
 
   if (count == -1)
     message = g_strdup (_("No definitions found"));
-  else if (count == 1)
-    message = g_strdup (_("A definition found"));
-  else
-    message = g_strdup_printf (_("%d definitions found"), count);
+  else 
+    message = g_strdup (ngettext("A definition found",
+				 "%d definitions found",
+				 count));
 
   if (window->status)
     gtk_statusbar_push (GTK_STATUSBAR (window->status), 0, message);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]