[gnome-shell] power: Display single digit minutes correctly



commit 0bbb2786f8abd53cd4bbb4c523b1d53c89765901
Author: Sebastian Keller <sebastian-keller gmx de>
Date:   Sun Aug 11 19:54:22 2013 +0200

    power: Display single digit minutes correctly
    
    https://bugzilla.gnome.org/show_bug.cgi?id=705803

 js/ui/status/power.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/js/ui/status/power.js b/js/ui/status/power.js
index 07834b9..3e76816 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 <hours>:<minutes> Remaining (<percentage>)
-            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 <hours>:<minutes> Until Full (<percentage>)
-            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


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