]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Changed 'vteřina' to 'sekunda' in Czech translation
authorJakub Onderka <jakub.onderka@gmail.com>
Sat, 18 Jan 2014 11:49:35 +0000 (12:49 +0100)
committerJakub Onderka <jakub.onderka@gmail.com>
Sat, 18 Jan 2014 11:49:35 +0000 (12:49 +0100)
lang/cs.js
test/lang/cs.js

index c1396cfbf689ac6cf31ceb8a807d7c6b2e3990f3..204537f58acf6d298f558946a09d1461507c3c68 100644 (file)
@@ -22,7 +22,7 @@
         var result = number + " ";
         switch (key) {
         case 's':  // a few seconds / in a few seconds / a few seconds ago
-            return (withoutSuffix || isFuture) ? 'pár vteřin' : 'pár vteřinami';
+            return (withoutSuffix || isFuture) ? 'pár sekund' : 'pár sekundami';
         case 'm':  // a minute / in a minute / a minute ago
             return withoutSuffix ? 'minuta' : (isFuture ? 'minutu' : 'minutou');
         case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
index 07d2c2b1afe9c26e7ac002a5f4f6d57c4382d1a5..2e8ad33de8373bbba359ab5a14124077a275bf34 100644 (file)
@@ -130,7 +130,7 @@ exports["lang:cs"] = {
     "from" : function (test) {
         test.expect(30);
         var start = moment([2007, 1, 28]);
-        test.equal(start.from(moment([2007, 1, 28]).add({s: 44}), true),  "pár vteřin",  "44 seconds = a few seconds");
+        test.equal(start.from(moment([2007, 1, 28]).add({s: 44}), true),  "pár sekund",  "44 seconds = a few seconds");
         test.equal(start.from(moment([2007, 1, 28]).add({s: 45}), true),  "minuta",        "45 seconds = a minute");
         test.equal(start.from(moment([2007, 1, 28]).add({s: 89}), true),  "minuta",        "89 seconds = a minute");
         test.equal(start.from(moment([2007, 1, 28]).add({s: 90}), true),  "2 minuty",      "90 seconds = 2 minutes");
@@ -165,20 +165,20 @@ exports["lang:cs"] = {
 
     "suffix" : function (test) {
         test.expect(2);
-        test.equal(moment(30000).from(0), "za pár vteřin",  "prefix");
-        test.equal(moment(0).from(30000), "před pár vteřinami", "suffix");
+        test.equal(moment(30000).from(0), "za pár sekund",  "prefix");
+        test.equal(moment(0).from(30000), "před pár sekundami", "suffix");
         test.done();
     },
 
     "now from now" : function (test) {
         test.expect(1);
-        test.equal(moment().fromNow(), "před pár vteřinami",  "now from now should display as in the past");
+        test.equal(moment().fromNow(), "před pár sekundami",  "now from now should display as in the past");
         test.done();
     },
 
     "fromNow (future)" : function (test) {
         test.expect(16);
-        test.equal(moment().add({s: 30}).fromNow(), "za pár vteřin", "in a few seconds");
+        test.equal(moment().add({s: 30}).fromNow(), "za pár sekund", "in a few seconds");
         test.equal(moment().add({m: 1}).fromNow(), "za minutu", "in a minute");
         test.equal(moment().add({m: 3}).fromNow(), "za 3 minuty", "in 3 minutes");
         test.equal(moment().add({m: 10}).fromNow(), "za 10 minut", "in 10 minutes");
@@ -199,7 +199,7 @@ exports["lang:cs"] = {
 
     "fromNow (past)" : function (test) {
         test.expect(16);
-        test.equal(moment().subtract({s: 30}).fromNow(), "před pár vteřinami", "a few seconds ago");
+        test.equal(moment().subtract({s: 30}).fromNow(), "před pár sekundami", "a few seconds ago");
         test.equal(moment().subtract({m: 1}).fromNow(), "před minutou", "a minute ago");
         test.equal(moment().subtract({m: 3}).fromNow(), "před 3 minutami", "3 minutes ago");
         test.equal(moment().subtract({m: 10}).fromNow(), "před 10 minutami", "10 minutes ago");
@@ -438,12 +438,12 @@ exports["lang:cs"] = {
 
         test.done();
     },
-    
+
     "returns the name of the language" : function (test) {
         if (typeof module !== 'undefined' && module.exports) {
             test.equal(require('../../lang/cs'), 'cs', "module should export cs");
         }
-        
+
         test.done();
     }
 };