]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Changed delimiter between hours and minutes from colon to dot in Czech language
authorJakub Onderka <jakub.onderka@gmail.com>
Sat, 18 Jan 2014 11:57:41 +0000 (12:57 +0100)
committerJakub Onderka <jakub.onderka@gmail.com>
Sat, 18 Jan 2014 11:57:41 +0000 (12:57 +0100)
lang/cs.js
test/lang/cs.js

index 204537f58acf6d298f558946a09d1461507c3c68..86e78a092f5c0e361f6645f9c5de64251a24514a 100644 (file)
@@ -86,7 +86,7 @@
         weekdaysShort : "ne_po_út_st_čt_pá_so".split("_"),
         weekdaysMin : "ne_po_út_st_čt_pá_so".split("_"),
         longDateFormat : {
-            LT: "H:mm",
+            LT: "H.mm",
             L : "DD.MM.YYYY",
             LL : "D. MMMM YYYY",
             LLL : "D. MMMM YYYY LT",
index 2e8ad33de8373bbba359ab5a14124077a275bf34..9ef2ed8c64316205c10a5c33ad7e8e7cc2e0223b 100644 (file)
@@ -55,12 +55,12 @@ exports["lang:cs"] = {
                 ['DDDo [den v roce]',            '45. den v roce'],
                 ['L',                            '14.02.2010'],
                 ['LL',                           '14. únor 2010'],
-                ['LLL',                          '14. únor 2010 15:25'],
-                ['LLLL',                         'neděle 14. únor 2010 15:25'],
+                ['LLL',                          '14. únor 2010 15.25'],
+                ['LLLL',                         'neděle 14. únor 2010 15.25'],
                 ['l',                            '14.2.2010'],
                 ['ll',                           '14. úno 2010'],
-                ['lll',                          '14. úno 2010 15:25'],
-                ['llll',                         'ne 14. úno 2010 15:25']
+                ['lll',                          '14. úno 2010 15.25'],
+                ['llll',                         'ne 14. úno 2010 15.25']
             ],
             b = moment(new Date(2010, 1, 14, 15, 25, 50, 125)),
             i;
@@ -223,12 +223,12 @@ exports["lang:cs"] = {
 
         var a = moment().hours(2).minutes(0).seconds(0);
 
-        test.equal(moment(a).calendar(),                     "dnes v 2:00",     "today at the same time");
-        test.equal(moment(a).add({ m: 25 }).calendar(),      "dnes v 2:25",     "Now plus 25 min");
-        test.equal(moment(a).add({ h: 1 }).calendar(),       "dnes v 3:00",     "Now plus 1 hour");
-        test.equal(moment(a).add({ d: 1 }).calendar(),       "zítra v 2:00",  "tomorrow at the same time");
-        test.equal(moment(a).subtract({ h: 1 }).calendar(),  "dnes v 1:00",     "Now minus 1 hour");
-        test.equal(moment(a).subtract({ d: 1 }).calendar(),  "včera v 2:00",     "yesterday at the same time");
+        test.equal(moment(a).calendar(),                     "dnes v 2.00",     "today at the same time");
+        test.equal(moment(a).add({ m: 25 }).calendar(),      "dnes v 2.25",     "Now plus 25 min");
+        test.equal(moment(a).add({ h: 1 }).calendar(),       "dnes v 3.00",     "Now plus 1 hour");
+        test.equal(moment(a).add({ d: 1 }).calendar(),       "zítra v 2.00",  "tomorrow at the same time");
+        test.equal(moment(a).subtract({ h: 1 }).calendar(),  "dnes v 1.00",     "Now minus 1 hour");
+        test.equal(moment(a).subtract({ d: 1 }).calendar(),  "včera v 2.00",     "yesterday at the same time");
         test.done();
     },