From 0bbb2786f8abd53cd4bbb4c523b1d53c89765901 Mon Sep 17 00:00:00 2001 From: Sebastian Keller Date: Sun, 11 Aug 2013 19:54:22 +0200 Subject: [PATCH] power: Display single digit minutes correctly https://bugzilla.gnome.org/show_bug.cgi?id=705803 --- js/ui/status/power.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/ui/status/power.js b/js/ui/status/power.js index 07834b9f8..3e7681671 100644 --- a/js/ui/status/power.js +++ b/js/ui/status/power.js @@ -72,12 +72,12 @@ const Indicator = new Lang.Class({ if (state == UPower.DeviceState.DISCHARGING) { // Translators: this is : Remaining () - return _("%d\u2236%d Remaining (%d%%)".format(hours, minutes, percentage)); + return _("%d\u2236%02d Remaining (%d%%)".format(hours, minutes, percentage)); } if (state == UPower.DeviceState.CHARGING) { // Translators: this is : Until Full () - return _("%d\u2236%d Until Full (%d%%)".format(hours, minutes, percentage)); + return _("%d\u2236%02d Until Full (%d%%)".format(hours, minutes, percentage)); } // state is one of PENDING_CHARGING, PENDING_DISCHARGING