[gnome-shell] Fix display of remaining time
- From: Owen Taylor <otaylor src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] Fix display of remaining time
- Date: Wed, 1 Dec 2010 23:50:35 +0000 (UTC)
commit 7b73df78c64162f925c71e043ae75e8b7cce2bd0
Author: Matt Novenstern <fisxoj gmail com>
Date: Wed Dec 1 18:12:03 2010 -0500
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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/status/power.js b/js/ui/status/power.js
index 42face4..4d66302 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();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]