From 7b73df78c64162f925c71e043ae75e8b7cce2bd0 Mon Sep 17 00:00:00 2001 From: Matt Novenstern Date: Wed, 1 Dec 2010 18:12:03 -0500 Subject: [PATCH] Fix display of remaining time When there is less than an hour remaining, there was a format() call missing which made the power status menu display "%d minutes remaining". https://bugzilla.gnome.org/show_bug.cgi?id=635728 --- js/ui/status/power.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/status/power.js b/js/ui/status/power.js index 42face4f3..4d66302f2 100644 --- a/js/ui/status/power.js +++ b/js/ui/status/power.js @@ -122,7 +122,7 @@ Indicator.prototype = { timestring = template.format (hours, Gettext.ngettext("hour", "hours", hours), minutes, Gettext.ngettext("minute", "minutes", minutes)); } } else - timestring = Gettext.ngettext("%d minute remaining", "%d minutes remaining", minutes); + timestring = Gettext.ngettext("%d minute remaining", "%d minutes remaining", minutes).format(minutes); this._batteryItem.label.text = timestring; this._primaryPercentage.text = Math.round(percentage) + '%'; this._batteryItem.actor.show();