[gnome-maps] trivial: Fix format string



commit ef5e2906a98732fbadc729b4c166a48d1068a240
Author: Marcus Lundblad <ml update uu se>
Date:   Tue Feb 21 22:28:20 2017 +0100

    trivial: Fix format string
    
    Fix erronious time format string in TransitPlan.

 src/transitPlan.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/transitPlan.js b/src/transitPlan.js
index 5abb62f..9d1848d 100644
--- a/src/transitPlan.js
+++ b/src/transitPlan.js
@@ -289,7 +289,7 @@ const Itinerary = new Lang.Class({
                  * where the duration contains an hour and minute part, it's
                  * pluralized on the hours part
                  */
-                return ngettext("%d:%0d hour", "%d:%02d hours", hours).format(hours, mins);
+                return ngettext("%d:%02d hour", "%d:%02d hours", hours).format(hours, mins);
             }
         }
     },


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