[tracker/tracker-0.12] tracker-control: Missing plural handling for "Found %d miners {running|installed}"
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.12] tracker-control: Missing plural handling for "Found %d miners {running|installed}"
- Date: Thu, 22 Sep 2011 16:06:37 +0000 (UTC)
commit d6af3d9c99ed0c38811d040c9917a44bebd235cf
Author: Martyn Russell <martyn lanedo com>
Date: Wed Sep 21 10:47:40 2011 +0100
tracker-control: Missing plural handling for "Found %d miners {running|installed}"
Fixes GB#659470.
src/tracker-control/tracker-control-miners.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/src/tracker-control/tracker-control-miners.c b/src/tracker-control/tracker-control-miners.c
index 9e5ae24..f010ffd 100644
--- a/src/tracker-control/tracker-control-miners.c
+++ b/src/tracker-control/tracker-control-miners.c
@@ -275,8 +275,11 @@ miner_list (gboolean available,
miners_available = tracker_miner_manager_get_available (manager);
- str = g_strdup_printf (_("Found %d miners installed"),
+ str = g_strdup_printf (ngettext ("Found %d miner installed",
+ "Found %d miners installed",
+ g_slist_length (miners_available)),
g_slist_length (miners_available));
+
g_print ("%s%s\n", str, g_slist_length (miners_available) > 0 ? ":" : "");
g_free (str);
@@ -295,8 +298,11 @@ miner_list (gboolean available,
miners_running = tracker_miner_manager_get_running (manager);
- str = g_strdup_printf (_("Found %d miners running"),
+ str = g_strdup_printf (ngettext ("Found %d miner running",
+ "Found %d miners running",
+ g_slist_length (miners_running)),
g_slist_length (miners_running));
+
g_print ("%s%s\n", str, g_slist_length (miners_running) > 0 ? ":" : "");
g_free (str);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]