]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Revert "Changed relativeTime"
authorVivek Athalye <vnathalye@users.noreply.github.com>
Tue, 22 Sep 2015 16:37:12 +0000 (22:07 +0530)
committerIskren Chernev <iskren.chernev@gmail.com>
Mon, 9 Nov 2015 05:14:31 +0000 (21:14 -0800)
This reverts commit 57e81fcf2c4daf3e28670486e6464ba3c3287dce.

locale/mr.js

index 2ee2c5e682325f72267e926c8626cbdf9fe41c4b..960d2f5478bd1b659ccf259d8f126a44fbb1a78e 100644 (file)
@@ -1,7 +1,6 @@
 //! moment.js locale configuration
 //! locale : Marathi (mr)
 //! author : Harshad Kale : https://github.com/kalehv
-//! author : Vivek Athalye : https://github.com/vnathalye
 
 (function (global, factory) {
    typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
         '०': '0'
     };
 
-    function mr_relativeTime(number, withoutSuffix, string, isFuture)
-    {
-        var output = "";
-        if (withoutSuffix) {
-            switch(string) {
-                case "s": output = 'काही सेकंद'; break;
-                case "m": output = 'एक मिनिट'; break;
-                case "mm": output = '%d मिनिटे'; break;
-                case "h": output = 'एक तास'; break;
-                case "hh": output = '%d तास'; break;
-                case "d": output = 'एक दिवस'; break;
-                case "dd": output = '%d दिवस'; break;
-                case "M": output = 'एक महिना'; break;
-                case "MM": output = '%d महिने'; break;
-                case "y": output = 'एक वर्ष'; break;
-                case "yy": output = '%d वर्षे'; break;
-            }
-        }
-        else {
-            switch (string) {
-                case "s": output = 'काही सेकंदां'; break;
-                case "m": output = 'एका मिनिटा'; break;
-                case "mm": output = '%d मिनिटां'; break;
-                case "h": output = 'एका तासा'; break;
-                case "hh": output = '%d तासां'; break;
-                case "d": output = 'एका दिवसा'; break;
-                case "dd": output = '%d दिवसां'; break;
-                case "M": output = 'एका महिन्या'; break;
-                case "MM": output = '%d महिन्यां'; break;
-                case "y": output = 'एका वर्षा'; break;
-                case "yy": output = '%d वर्षां'; break;
-            }
-        }
-        return output.replace(/%d/i, number);
-    }
-
     var mr = moment.defineLocale('mr', {
         months : 'जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर'.split('_'),
         monthsShort: 'जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.'.split('_'),
             lastWeek: '[मागील] dddd, LT',
             sameElse : 'L'
         },
-        relativeTime: {
-            future: '%sमध्ये',
-            past: '%sपूर्वी',
-            s: mr_relativeTime,
-            m: mr_relativeTime,
-            mm: mr_relativeTime,
-            h: mr_relativeTime,
-            hh: mr_relativeTime,
-            d: mr_relativeTime,
-            dd: mr_relativeTime,
-            M: mr_relativeTime,
-            MM: mr_relativeTime,
-            y: mr_relativeTime,
-            yy: mr_relativeTime
+        relativeTime : {
+            future : '%s नंतर',
+            past : '%s पूर्वी',
+            s : 'सेकंद',
+            m: 'एक मिनिट',
+            mm: '%d मिनिटे',
+            h : 'एक तास',
+            hh : '%d तास',
+            d : 'एक दिवस',
+            dd : '%d दिवस',
+            M : 'एक महिना',
+            MM : '%d महिने',
+            y : 'एक वर्ष',
+            yy : '%d वर्षे'
         },
         preparse: function (string) {
             return string.replace(/[१२३४५६७८९०]/g, function (match) {