[gnome-contacts] l18n: properly handled plurals forms
- From: Erick Pérez Castellanos <erickpc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-contacts] l18n: properly handled plurals forms
- Date: Mon, 19 Aug 2013 17:59:12 +0000 (UTC)
commit 815e27bbe72175b96ba3df20fe399a12f296304f
Author: Erick Pérez Castellanos <erick red gmail com>
Date: Mon Aug 19 13:47:47 2013 -0400
l18n: properly handled plurals forms
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=706325
src/contacts-app.vala | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/contacts-app.vala b/src/contacts-app.vala
index 252cd61..3c9c952 100644
--- a/src/contacts-app.vala
+++ b/src/contacts-app.vala
@@ -253,10 +253,12 @@ public class Contacts.App : Gtk.Application {
window.add_right_child (contacts_pane);
list_pane.contacts_marked.connect ((nr_contacts) => {
- if (nr_contacts == 0)
+ if (nr_contacts == 0) {
window.left_title = _("Select");
- else
- window.left_title = _("%d Selected").printf (nr_contacts);
+ } else {
+ window.left_title = ngettext ("%d Selected",
+ "%d Selected", nr_contacts).printf (nr_contacts);
+ }
});
window.add_button.clicked.connect (app.new_contact);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]