[frogr] Use gettext based plural form handling
- From: Łukasz Jernaś <ljernas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [frogr] Use gettext based plural form handling
- Date: Fri, 25 Feb 2011 15:05:16 +0000 (UTC)
commit 4b155147f445a625807cee0c973e16a3eab45e82
Author: Å?ukasz JernaÅ? <deejay1 srem org>
Date: Fri Feb 25 14:44:49 2011 +0100
Use gettext based plural form handling
src/frogr-details-dialog.c | 13 +++----------
1 files changed, 3 insertions(+), 10 deletions(-)
---
diff --git a/src/frogr-details-dialog.c b/src/frogr-details-dialog.c
index ee6fc52..1f48d93 100644
--- a/src/frogr-details-dialog.c
+++ b/src/frogr-details-dialog.c
@@ -1075,16 +1075,9 @@ frogr_details_dialog_show (GtkWindow *parent, GSList *fpictures, GSList *tags)
GObject *new = NULL;
n_pictures = g_slist_length (fpictures);
- if (n_pictures > 1)
- {
- title = g_strdup_printf ("%s (%d Pictures)",
- _("Edit Picture Details"),
- n_pictures);
- }
- else
- {
- title = g_strdup (_("Edit Picture Details"));
- }
+ title = g_strdup_printf (ngettext ("Edit Picture Details",
+ "Edit Picture Details (%d Pictures)", n_pictures),
+ n_pictures);
new = g_object_new (FROGR_TYPE_DETAILS_DIALOG,
"modal", TRUE,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]