[GnomeMeeting-devel-list] patch for plurals
- From: Josep Puigdemont <josep imatge-sintetica com>
- To: GnomeMeeting mailing list <gnomemeeting-devel-list gnome org>
- Subject: [GnomeMeeting-devel-list] patch for plurals
- Date: Mon, 22 Nov 2004 01:11:30 +0100
Hi!
There's a little mistake in the use of ngettext in files
addressbook_window.cpp and endpoint.cpp. I attach two patches to those
files, this will break string freeze, I'm sorry, I didn't notice this
before.
Since I don't have cvs, I used "diff -u" against a previous version
(that one saved by emacs). The change is so little that maybe you just
don't need the patch, just get rid of the macro _() inside the gettext
call, that's all.
Regards!
/Josep
--- addressbook_window.cpp.~1.64.~ 2004-11-20 18:05:23.000000000 +0100
+++ addressbook_window.cpp 2004-11-22 00:28:03.000000000 +0100
@@ -1777,11 +1777,16 @@
addressbook->name);
/* Translators, pay attention to the singular/plural distinction */
else if (nbr == (int) g_slist_length (contacts))
- msg = g_strdup_printf (ngettext (_("Found %d user in %s"),
- _("Found %d users in %s"), nbr),
+ msg = g_strdup_printf (ngettext ("Found %d user in %s",
+ "Found %d users in %s", nbr),
nbr, addressbook->name);
else
- msg = g_strdup_printf (ngettext (_("Found %d user in %s for a total of %d users"), _("Found %d users in %s for a total of %d users"), nbr), g_slist_length (contacts), addressbook->name, nbr);
+ msg = g_strdup_printf (ngettext ("Found %d user in %s for a "
+ "total of %d users",
+ "Found %d users in %s for a "
+ "total of %d users", nbr),
+ g_slist_length (contacts),
+ addressbook->name, nbr);
gdk_threads_enter ();
gm_aw_update_addressbook (addressbook_window,
--- endpoint.cpp.~1.431.~ 2004-11-14 19:06:23.000000000 +0100
+++ endpoint.cpp 2004-11-22 00:55:21.000000000 +0100
@@ -1362,8 +1362,8 @@
/* Translators, pay attention to the singular/plural distinction */
gm_main_window_push_info_message (main_window,
- ngettext (_("Missed %d call"),
- _("Missed %d calls"),
+ ngettext ("Missed %d call",
+ "Missed %d calls",
missed_calls),
missed_calls);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]