]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
German words for today/yesterday/tomorrow should not be capitalized
authorMikolaj Dadela <mikolaj.dadela@hgv-online.de>
Wed, 17 Jun 2015 09:26:40 +0000 (11:26 +0200)
committerIskren Chernev <iskren.chernev@gmail.com>
Mon, 9 Nov 2015 02:57:36 +0000 (18:57 -0800)
src/locale/de-at.js
src/locale/de.js
src/test/locale/de-at.js
src/test/locale/de.js

index 5a28e7f30381fa039ae502162152676564375c52..04f213d1afe1752424a540753e5df0eccee6a37a 100644 (file)
@@ -3,6 +3,7 @@
 //! author : lluchs : https://github.com/lluchs
 //! author: Menelion ElensĂșle: https://github.com/Oire
 //! author : Martin Groller : https://github.com/MadMG
+//! author : Mikolaj Dadela : https://github.com/mik01aj
 
 import moment from '../moment';
 
@@ -35,11 +36,11 @@ export default moment.defineLocale('de-at', {
         LLLL : 'dddd, D. MMMM YYYY HH:mm'
     },
     calendar : {
-        sameDay: '[Heute um] LT [Uhr]',
+        sameDay: '[heute um] LT [Uhr]',
         sameElse: 'L',
-        nextDay: '[Morgen um] LT [Uhr]',
+        nextDay: '[morgen um] LT [Uhr]',
         nextWeek: 'dddd [um] LT [Uhr]',
-        lastDay: '[Gestern um] LT [Uhr]',
+        lastDay: '[gestern um] LT [Uhr]',
         lastWeek: '[letzten] dddd [um] LT [Uhr]'
     },
     relativeTime : {
@@ -64,4 +65,3 @@ export default moment.defineLocale('de-at', {
         doy : 4  // The week that contains Jan 4th is the first week of the year.
     }
 });
-
index 205d683916e3148a111ac09b73211b83bf3b5f9b..e16d3fe16a8cc49f35590a5a58900332931a6657 100644 (file)
@@ -2,6 +2,7 @@
 //! locale : german (de)
 //! author : lluchs : https://github.com/lluchs
 //! author: Menelion ElensĂșle: https://github.com/Oire
+//! author : Mikolaj Dadela : https://github.com/mik01aj
 
 import moment from '../moment';
 
@@ -34,11 +35,11 @@ export default moment.defineLocale('de', {
         LLLL : 'dddd, D. MMMM YYYY HH:mm'
     },
     calendar : {
-        sameDay: '[Heute um] LT [Uhr]',
+        sameDay: '[heute um] LT [Uhr]',
         sameElse: 'L',
-        nextDay: '[Morgen um] LT [Uhr]',
+        nextDay: '[morgen um] LT [Uhr]',
         nextWeek: 'dddd [um] LT [Uhr]',
-        lastDay: '[Gestern um] LT [Uhr]',
+        lastDay: '[gestern um] LT [Uhr]',
         lastWeek: '[letzten] dddd [um] LT [Uhr]'
     },
     relativeTime : {
@@ -63,4 +64,3 @@ export default moment.defineLocale('de', {
         doy : 4  // The week that contains Jan 4th is the first week of the year.
     }
 });
-
index c072dad280387ebef094de6e42e5ee9e351e9e73..a4c2e94e57bcba309173c9af12d82749bc8d766f 100644 (file)
@@ -150,12 +150,12 @@ test('fromNow', function (assert) {
 test('calendar day', function (assert) {
     var a = moment().hours(2).minutes(0).seconds(0);
 
-    assert.equal(moment(a).calendar(), 'Heute um 02:00 Uhr', 'today at the same time');
-    assert.equal(moment(a).add({m: 25}).calendar(), 'Heute um 02:25 Uhr', 'Now plus 25 min');
-    assert.equal(moment(a).add({h: 1}).calendar(), 'Heute um 03:00 Uhr', 'Now plus 1 hour');
-    assert.equal(moment(a).add({d: 1}).calendar(), 'Morgen um 02:00 Uhr', 'tomorrow at the same time');
-    assert.equal(moment(a).subtract({h: 1}).calendar(), 'Heute um 01:00 Uhr', 'Now minus 1 hour');
-    assert.equal(moment(a).subtract({d: 1}).calendar(), 'Gestern um 02:00 Uhr', 'yesterday at the same time');
+    assert.equal(moment(a).calendar(), 'heute um 02:00 Uhr', 'today at the same time');
+    assert.equal(moment(a).add({m: 25}).calendar(), 'heute um 02:25 Uhr', 'Now plus 25 min');
+    assert.equal(moment(a).add({h: 1}).calendar(), 'heute um 03:00 Uhr', 'Now plus 1 hour');
+    assert.equal(moment(a).add({d: 1}).calendar(), 'morgen um 02:00 Uhr', 'tomorrow at the same time');
+    assert.equal(moment(a).subtract({h: 1}).calendar(), 'heute um 01:00 Uhr', 'Now minus 1 hour');
+    assert.equal(moment(a).subtract({d: 1}).calendar(), 'gestern um 02:00 Uhr', 'yesterday at the same time');
 });
 
 test('calendar next week', function (assert) {
index e23b2b98028c5175045d893a27732f204f569ca4..10d7292a6aac69d5204b36eae190f90c52ac308d 100644 (file)
@@ -149,12 +149,12 @@ test('fromNow', function (assert) {
 test('calendar day', function (assert) {
     var a = moment().hours(2).minutes(0).seconds(0);
 
-    assert.equal(moment(a).calendar(),                     'Heute um 02:00 Uhr',   'today at the same time');
-    assert.equal(moment(a).add({m: 25}).calendar(),      'Heute um 02:25 Uhr',   'Now plus 25 min');
-    assert.equal(moment(a).add({h: 1}).calendar(),       'Heute um 03:00 Uhr',   'Now plus 1 hour');
-    assert.equal(moment(a).add({d: 1}).calendar(),       'Morgen um 02:00 Uhr',  'tomorrow at the same time');
-    assert.equal(moment(a).subtract({h: 1}).calendar(),  'Heute um 01:00 Uhr',   'Now minus 1 hour');
-    assert.equal(moment(a).subtract({d: 1}).calendar(),  'Gestern um 02:00 Uhr', 'yesterday at the same time');
+    assert.equal(moment(a).calendar(),                     'heute um 02:00 Uhr',   'today at the same time');
+    assert.equal(moment(a).add({m: 25}).calendar(),      'heute um 02:25 Uhr',   'Now plus 25 min');
+    assert.equal(moment(a).add({h: 1}).calendar(),       'heute um 03:00 Uhr',   'Now plus 1 hour');
+    assert.equal(moment(a).add({d: 1}).calendar(),       'morgen um 02:00 Uhr',  'tomorrow at the same time');
+    assert.equal(moment(a).subtract({h: 1}).calendar(),  'heute um 01:00 Uhr',   'Now minus 1 hour');
+    assert.equal(moment(a).subtract({d: 1}).calendar(),  'gestern um 02:00 Uhr', 'yesterday at the same time');
 });
 
 test('calendar next week', function (assert) {