[gnome-builder] po: use ngettext



commit 4645bd4f376331cf3abf962a803c060038638056
Author: Christian Hergert <chergert redhat com>
Date:   Tue Oct 13 14:58:49 2015 -0700

    po: use ngettext

 src/search/gb-search-display-group.c |    2 +-
 tools/ide-search.c                   |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/search/gb-search-display-group.c b/src/search/gb-search-display-group.c
index 8b88e22..d96a30e 100644
--- a/src/search/gb-search-display-group.c
+++ b/src/search/gb-search-display-group.c
@@ -179,7 +179,7 @@ gb_search_display_group_set_count (GbSearchDisplayGroup *self,
   g_return_if_fail (GB_IS_SEARCH_DISPLAY_GROUP (self));
 
   count_str = g_strdup_printf ("%"G_GUINT64_FORMAT, count);
-  markup = g_strdup_printf (_("%s more"), count_str);
+  markup = g_strdup_printf (ngettext ("%s more", "%s more", count), count_str);
   gtk_label_set_label (self->more_label, markup);
   g_free (markup);
   g_free (count_str);
diff --git a/tools/ide-search.c b/tools/ide-search.c
index 676e2bd..b4255bf 100644
--- a/tools/ide-search.c
+++ b/tools/ide-search.c
@@ -65,7 +65,7 @@ on_completed_cb (IdeSearchContext *search_context,
 {
   gchar *gCount_str;
   gCount_str = g_strdup_printf ("%"G_GSIZE_FORMAT, gCount);
-  g_print (_("%s results\n"), gCount_str);
+  g_print (ngettext ("%s results\n", "%s results\n", gCount), gCount_str);
   g_free (gCount_str);
   g_object_unref (context);
   quit (gExitCode);


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