[gnome-power-manager] Fix up a translation using ngettext rather than assuming the plural. Fixes #612950



commit 1db01e961d4835edd81e8707d282adc17f8f9632
Author: Richard Hughes <richard hughsie com>
Date:   Tue Mar 16 13:28:51 2010 +0000

    Fix up a translation using ngettext rather than assuming the plural. Fixes #612950

 src/gpm-statistics.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/gpm-statistics.c b/src/gpm-statistics.c
index 0494f40..f92ea16 100644
--- a/src/gpm-statistics.c
+++ b/src/gpm-statistics.c
@@ -285,21 +285,21 @@ gpm_stats_time_to_text (gint seconds)
 	}
 	if (value < 60) {
 		/* TRANSLATORS: this is a time value, usually to show on a graph */
-		return g_strdup_printf (_("%.0f seconds"), value);
+		return g_strdup_printf (ngettext ("%.0f second", "%.0f seconds", value), value);
 	}
 	value /= 60.0;
 	if (value < 60) {
 		/* TRANSLATORS: this is a time value, usually to show on a graph */
-		return g_strdup_printf (_("%.1f minutes"), value);
+		return g_strdup_printf (ngettext ("%.1f minute", "%.1f minutes", value), value);
 	}
 	value /= 60.0;
 	if (value < 60) {
 		/* TRANSLATORS: this is a time value, usually to show on a graph */
-		return g_strdup_printf (_("%.1f hours"), value);
+		return g_strdup_printf (ngettext ("%.1f hour", "%.1f hours", value), value);
 	}
 	value /= 24.0;
 	/* TRANSLATORS: this is a time value, usually to show on a graph */
-	return g_strdup_printf (_("%.1f days"), value);
+	return g_strdup_printf (ngettext ("%.1f day", "%.1f days", value), value);
 }
 
 /**



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