[tracker] tracker-needle: Fix "Page" vs "Pages" in document lists



commit cf1275824a152cd6319cdaaad35fe3585c06322a
Author: Martyn Russell <martyn lanedo com>
Date:   Mon Sep 30 10:16:51 2013 +0100

    tracker-needle: Fix "Page" vs "Pages" in document lists
    
    Fixes (in part):
    https://bugzilla.gnome.org/show_bug.cgi?id=707499

 src/tracker-needle/tracker-view.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/tracker-needle/tracker-view.vala b/src/tracker-needle/tracker-view.vala
index c6682de..f399395 100644
--- a/src/tracker-needle/tracker-view.vala
+++ b/src/tracker-needle/tracker-view.vala
@@ -432,7 +432,7 @@ public class Tracker.View : ScrolledWindow {
                        detail = tracker_time_format_from_seconds (detail);
                        break;
                case Tracker.Query.Type.DOCUMENTS:
-                       detail = detail + " " + _("Pages");
+                       detail = ngettext ("%d Page", "%d Pages", detail.to_int()).printf (detail.to_int());
                        break;
                case Tracker.Query.Type.IMAGES:
                        detail = GLib.format_size_for_display (int.parse (detail));


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