diff options
author | Danilo Šegan <danilo@src.gnome.org> | 2004-03-24 08:18:02 +0800 |
---|---|---|
committer | Danilo Šegan <danilo@src.gnome.org> | 2004-03-24 08:18:02 +0800 |
commit | 7c70ddcc35a65e1078a7789832e5209a7a2e4a5b (patch) | |
tree | 75dd3c44ad9d0eeb512969116852bb765fba1bd5 /addressbook/gui/widgets/eab-vcard-control.c | |
parent | 6f309e984bbfd7b5376dd38637a55dd46d307c92 (diff) | |
download | gsoc2013-evolution-7c70ddcc35a65e1078a7789832e5209a7a2e4a5b.tar.gz gsoc2013-evolution-7c70ddcc35a65e1078a7789832e5209a7a2e4a5b.tar.zst gsoc2013-evolution-7c70ddcc35a65e1078a7789832e5209a7a2e4a5b.zip |
Use ngettext for handling plural forms throughout (fixes bug 53464).
svn path=/trunk/; revision=25168
Diffstat (limited to 'addressbook/gui/widgets/eab-vcard-control.c')
-rw-r--r-- | addressbook/gui/widgets/eab-vcard-control.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/addressbook/gui/widgets/eab-vcard-control.c b/addressbook/gui/widgets/eab-vcard-control.c index c161333f15..7289851113 100644 --- a/addressbook/gui/widgets/eab-vcard-control.c +++ b/addressbook/gui/widgets/eab-vcard-control.c @@ -136,11 +136,9 @@ pstream_load (BonoboPersistStream *ps, const Bonobo_Stream stream, if (list && list->next) { char *message; int length = g_list_length (list) - 1; - if (length > 1) { - message = g_strdup_printf (_("and %d other contacts."), length); - } else { - message = g_strdup_printf (_("and one other contact.")); - } + message = g_strdup_printf (ngettext("and one other contact.", + "and %d other contacts.", length), + length); gtk_label_set_text (GTK_LABEL (vcard_control->label), message); g_free (message); gtk_widget_show (vcard_control->label); |