[gnome-maps] utils: Fix typos in prettyTime()



commit 42dfe8657e3c640bd04cc310b36ebad241be39a8
Author: Marcus Lundblad <ml update uu se>
Date:   Thu Apr 23 22:58:39 2020 +0200

    utils: Fix typos in prettyTime()

 src/utils.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/utils.js b/src/utils.js
index 5d82bdea..9feace07 100644
--- a/src/utils.js
+++ b/src/utils.js
@@ -326,12 +326,12 @@ function prettyTime(time) {
          */
         return ngettext("%s h %s min", "%s h %s mins",
                         minutes).format(hoursStr, minutesStr);
-    } else if (minues > 0) {
+    } else if (minutes > 0) {
         /* Translators: this is a duration with minutes part
          * using abbreviation for minutes, corresponding to 'min' in English
          * with appropriate plural variations
          */
-        return nggettext("%s min", "%s mins", minutes).format(minutesStr);
+        return ngettext("%s min", "%s mins", minutes).format(minutesStr);
     } else {
         /* Translators: this is a duration of less than one minute
          * with seconds using an abbreviation for seconds, corresponding to


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