[gnome-contacts] Fixed plurals.
- From: Erick PÃrez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] Fixed plurals.
- Date: Sun, 17 Feb 2013 21:59:56 +0000 (UTC)
commit 33f403186b12daf82a805668d42bc94ed6c327c2
Author: Erick PÃrez Castellanos <erick red gmail com>
Date: Sun Feb 17 16:33:55 2013 -0500
Fixed plurals.
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=694032
src/contacts-app.vala | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/src/contacts-app.vala b/src/contacts-app.vala
index 642f2be..c04c689 100644
--- a/src/contacts-app.vala
+++ b/src/contacts-app.vala
@@ -495,7 +495,12 @@ public class Contacts.App : Gtk.Application {
g.set_column_spacing (8);
notification.add (g);
- string msg = _("%d contact%s linked").printf (contact_list.size, contact_list.size > 1 ? "s" : "");
+ string msg;
+ if (contact_list.size > 2)
+ msg = _("%d contacts linked").printf (contact_list.size);
+ else
+ msg = _("Contacts linked");
+
var b = new Button.from_stock (Stock.UNDO);
g.add (new Label (msg));
g.add (b);
@@ -523,7 +528,11 @@ public class Contacts.App : Gtk.Application {
g.set_column_spacing (8);
notification.add (g);
- string msg = _("%d contact%s deleted").printf (contact_list.size, contact_list.size > 1 ? "s" : "");
+ string msg;
+ if (contact_list.size > 1)
+ msg = _("%d contacts deleted").printf (contact_list.size);
+ else
+ msg = _("Contact deleted");
var b = new Button.from_stock (Stock.UNDO);
g.add (new Label (msg));
g.add (b);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]