[gnome-maps] trivial: Fix format string
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps] trivial: Fix format string
- Date: Tue, 21 Feb 2017 21:31:30 +0000 (UTC)
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]