Merge lp:~kelemeng/ubuntuone-client-gnome/bug786617 into lp:ubuntuone-client-gnome

Proposed by Gabor Kelemen
Status: Merged
Approved by: dobey
Approved revision: 3
Merged at revision: 3
Proposed branch: lp:~kelemeng/ubuntuone-client-gnome/bug786617
Merge into: lp:ubuntuone-client-gnome
Diff against target: 23 lines (+3/-3)
1 file modified
nautilus/u1-contacts-picker.c (+3/-3)
To merge this branch: bzr merge lp:~kelemeng/ubuntuone-client-gnome/bug786617
Reviewer Review Type Date Requested Status
dobey (community) Approve
Review via email: mp+72183@code.launchpad.net

Commit message

Use g_dngettext instead of ngettext

To post a comment you must log in.
Revision history for this message
dobey (dobey) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'nautilus/u1-contacts-picker.c'
2--- nautilus/u1-contacts-picker.c 2011-07-20 20:44:39 +0000
3+++ nautilus/u1-contacts-picker.c 2011-08-19 13:38:23 +0000
4@@ -111,9 +111,9 @@
5 U1ContactsPicker *picker = U1_CONTACTS_PICKER (user_data);
6
7 if (strlen (gtk_entry_get_text (GTK_ENTRY (picker->priv->search_entry))) > 0)
8- label = g_strdup_printf (ngettext ("Found %d match", "Found %d matches", total), total);
9+ label = g_strdup_printf (g_dngettext (GETTEXT_PACKAGE, "Found %d match", "Found %d matches", total), total);
10 else
11- label = g_strdup_printf (ngettext ("%d contact", "%d contacts", total), total);
12+ label = g_strdup_printf (g_dngettext (GETTEXT_PACKAGE, "%d contact", "%d contacts", total), total);
13 gtk_label_set_text (GTK_LABEL (picker->priv->total_label), label);
14
15 g_free (label);
16@@ -188,7 +188,7 @@
17 G_CALLBACK (add_contact_cb), picker);
18 gtk_table_attach (GTK_TABLE (table), picker->priv->add_contact_button, 1, 2, 0, 1, GTK_FILL, GTK_FILL, 3, 3);
19
20- picker->priv->total_label = gtk_label_new (ngettext ("0 contact", "0 contacts", 0));
21+ picker->priv->total_label = gtk_label_new (g_dngettext (GETTEXT_PACKAGE, "0 contact", "0 contacts", 0));
22 gtk_widget_show (picker->priv->total_label);
23 gtk_table_attach (GTK_TABLE (table), picker->priv->total_label, 2, 3, 0, 1, GTK_FILL, GTK_FILL, 3, 3);
24

Subscribers

People subscribed via source and target branches