[gnome-builder/gnome-builder-3-18] po: use ngettext for year vs years



commit da2e85fc577d430b9ceb7670f40c44227edd0db6
Author: Christian Hergert <chergert redhat com>
Date:   Tue Oct 13 14:48:27 2015 -0700

    po: use ngettext for year vs years

 src/util/gb-glib.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/util/gb-glib.c b/src/util/gb-glib.c
index 02f247d..dfb96f2 100644
--- a/src/util/gb-glib.c
+++ b/src/util/gb-glib.c
@@ -66,5 +66,5 @@ gb_date_time_format_for_display (GDateTime *self)
 
   years = MAX (2, diff / (60 * 60 * 24 * 365));
 
-  return g_strdup_printf (_("About %u years ago"), years);
+  return g_strdup_printf (ngettext ("About %u year ago", "About %u years ago", years), years);
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]