Skip to content

Commit

Permalink
Merge pull request #2585 from kokoshneta/master
Browse files Browse the repository at this point in the history
[Danish] Weekday and month abbreviations + ‘ago’
  • Loading branch information
kylekatarnls authored Apr 3, 2022
2 parents a920ad4 + aaa1906 commit 4969b63
Show file tree
Hide file tree
Showing 4 changed files with 94 additions and 93 deletions.
7 changes: 4 additions & 3 deletions src/Carbon/Lang/da.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
* - Jens Herlevsen
* - Ulrik McArdle (mcardle)
* - Frederik Sauer (FrittenKeeZ)
* - Janus Bahs Jacquet (kokoshneta)
*/
return [
'year' => ':count år|:count år',
Expand All @@ -41,7 +42,7 @@
'second' => ':count sekund|:count sekunder',
'a_second' => 'få sekunder|:count sekunder',
's' => ':count s.',
'ago' => ':time siden',
'ago' => 'for :time siden',
'from_now' => 'om :time',
'after' => ':time efter',
'before' => ':time før',
Expand Down Expand Up @@ -70,9 +71,9 @@
],
'ordinal' => ':number.',
'months' => ['januar', 'februar', 'marts', 'april', 'maj', 'juni', 'juli', 'august', 'september', 'oktober', 'november', 'december'],
'months_short' => ['jan', 'feb', 'mar', 'apr', 'maj', 'jun', 'jul', 'aug', 'sep', 'okt', 'nov', 'dec'],
'months_short' => ['jan.', 'feb.', 'mar.', 'apr.', 'maj.', 'jun.', 'jul.', 'aug.', 'sep.', 'okt.', 'nov.', 'dec.'],
'weekdays' => ['søndag', 'mandag', 'tirsdag', 'onsdag', 'torsdag', 'fredag', 'lørdag'],
'weekdays_short' => ['søn', 'man', 'tir', 'ons', 'tor', 'fre', 'lør'],
'weekdays_short' => ['søn.', 'man.', 'tir.', 'ons.', 'tor.', 'fre.', 'lør.'],
'weekdays_min' => ['', 'ma', 'ti', 'on', 'to', 'fr', ''],
'first_day_of_week' => 1,
'day_of_first_week_of_year' => 4,
Expand Down
60 changes: 30 additions & 30 deletions tests/Localization/DaDkTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,61 +124,61 @@ class DaDkTest extends LocalizationTestCase
// Carbon::parse('2018-01-01 00:00:00')->ordinal('hour')
'0.',
// Carbon::now()->subSeconds(1)->diffForHumans()
'1 sekund siden',
'for 1 sekund siden',
// Carbon::now()->subSeconds(1)->diffForHumans(null, false, true)
'1 s. siden',
'for 1 s. siden',
// Carbon::now()->subSeconds(2)->diffForHumans()
'2 sekunder siden',
'for 2 sekunder siden',
// Carbon::now()->subSeconds(2)->diffForHumans(null, false, true)
'2 s. siden',
'for 2 s. siden',
// Carbon::now()->subMinutes(1)->diffForHumans()
'1 minut siden',
'for 1 minut siden',
// Carbon::now()->subMinutes(1)->diffForHumans(null, false, true)
'1 min. siden',
'for 1 min. siden',
// Carbon::now()->subMinutes(2)->diffForHumans()
'2 minutter siden',
'for 2 minutter siden',
// Carbon::now()->subMinutes(2)->diffForHumans(null, false, true)
'2 min. siden',
'for 2 min. siden',
// Carbon::now()->subHours(1)->diffForHumans()
'1 time siden',
'for 1 time siden',
// Carbon::now()->subHours(1)->diffForHumans(null, false, true)
'1 t. siden',
'for 1 t. siden',
// Carbon::now()->subHours(2)->diffForHumans()
'2 timer siden',
'for 2 timer siden',
// Carbon::now()->subHours(2)->diffForHumans(null, false, true)
'2 t. siden',
'for 2 t. siden',
// Carbon::now()->subDays(1)->diffForHumans()
'1 dag siden',
'for 1 dag siden',
// Carbon::now()->subDays(1)->diffForHumans(null, false, true)
'1 d. siden',
'for 1 d. siden',
// Carbon::now()->subDays(2)->diffForHumans()
'2 dage siden',
'for 2 dage siden',
// Carbon::now()->subDays(2)->diffForHumans(null, false, true)
'2 d. siden',
'for 2 d. siden',
// Carbon::now()->subWeeks(1)->diffForHumans()
'1 uge siden',
'for 1 uge siden',
// Carbon::now()->subWeeks(1)->diffForHumans(null, false, true)
'1 u. siden',
'for 1 u. siden',
// Carbon::now()->subWeeks(2)->diffForHumans()
'2 uger siden',
'for 2 uger siden',
// Carbon::now()->subWeeks(2)->diffForHumans(null, false, true)
'2 u. siden',
'for 2 u. siden',
// Carbon::now()->subMonths(1)->diffForHumans()
'1 måned siden',
'for 1 måned siden',
// Carbon::now()->subMonths(1)->diffForHumans(null, false, true)
'1 mdr. siden',
'for 1 mdr. siden',
// Carbon::now()->subMonths(2)->diffForHumans()
'2 måneder siden',
'for 2 måneder siden',
// Carbon::now()->subMonths(2)->diffForHumans(null, false, true)
'2 mdr. siden',
'for 2 mdr. siden',
// Carbon::now()->subYears(1)->diffForHumans()
'1 år siden',
'for 1 år siden',
// Carbon::now()->subYears(1)->diffForHumans(null, false, true)
'1 år siden',
'for 1 år siden',
// Carbon::now()->subYears(2)->diffForHumans()
'2 år siden',
'for 2 år siden',
// Carbon::now()->subYears(2)->diffForHumans(null, false, true)
'2 år siden',
'for 2 år siden',
// Carbon::now()->addSecond()->diffForHumans()
'om 1 sekund',
// Carbon::now()->addSecond()->diffForHumans(null, false, true)
Expand Down Expand Up @@ -208,9 +208,9 @@ class DaDkTest extends LocalizationTestCase
// Carbon::now()->addYears(3)->diffForHumans(null, null, false, 4)
'om 3 år',
// Carbon::now()->subMonths(5)->diffForHumans(null, null, true, 4)
'5 mdr. siden',
'for 5 mdr. siden',
// Carbon::now()->subYears(2)->subMonths(3)->subDay()->subSecond()->diffForHumans(null, null, true, 4)
'2 år 3 mdr. 1 d. 1 s. siden',
'for 2 år 3 mdr. 1 d. 1 s. siden',
// Carbon::now()->addWeek()->addHours(10)->diffForHumans(null, true, false, 2)
'1 uge 10 timer',
// Carbon::now()->addWeek()->addDays(6)->diffForHumans(null, true, false, 2)
Expand Down
60 changes: 30 additions & 30 deletions tests/Localization/DaGlTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,61 +124,61 @@ class DaGlTest extends LocalizationTestCase
// Carbon::parse('2018-01-01 00:00:00')->ordinal('hour')
'0.',
// Carbon::now()->subSeconds(1)->diffForHumans()
'1 sekund siden',
'for 1 sekund siden',
// Carbon::now()->subSeconds(1)->diffForHumans(null, false, true)
'1 s. siden',
'for 1 s. siden',
// Carbon::now()->subSeconds(2)->diffForHumans()
'2 sekunder siden',
'for 2 sekunder siden',
// Carbon::now()->subSeconds(2)->diffForHumans(null, false, true)
'2 s. siden',
'for 2 s. siden',
// Carbon::now()->subMinutes(1)->diffForHumans()
'1 minut siden',
'for 1 minut siden',
// Carbon::now()->subMinutes(1)->diffForHumans(null, false, true)
'1 min. siden',
'for 1 min. siden',
// Carbon::now()->subMinutes(2)->diffForHumans()
'2 minutter siden',
'for 2 minutter siden',
// Carbon::now()->subMinutes(2)->diffForHumans(null, false, true)
'2 min. siden',
'for 2 min. siden',
// Carbon::now()->subHours(1)->diffForHumans()
'1 time siden',
'for 1 time siden',
// Carbon::now()->subHours(1)->diffForHumans(null, false, true)
'1 t. siden',
'for 1 t. siden',
// Carbon::now()->subHours(2)->diffForHumans()
'2 timer siden',
'for 2 timer siden',
// Carbon::now()->subHours(2)->diffForHumans(null, false, true)
'2 t. siden',
'for 2 t. siden',
// Carbon::now()->subDays(1)->diffForHumans()
'1 dag siden',
'for 1 dag siden',
// Carbon::now()->subDays(1)->diffForHumans(null, false, true)
'1 d. siden',
'for 1 d. siden',
// Carbon::now()->subDays(2)->diffForHumans()
'2 dage siden',
'for 2 dage siden',
// Carbon::now()->subDays(2)->diffForHumans(null, false, true)
'2 d. siden',
'for 2 d. siden',
// Carbon::now()->subWeeks(1)->diffForHumans()
'1 uge siden',
'for 1 uge siden',
// Carbon::now()->subWeeks(1)->diffForHumans(null, false, true)
'1 u. siden',
'for 1 u. siden',
// Carbon::now()->subWeeks(2)->diffForHumans()
'2 uger siden',
'for 2 uger siden',
// Carbon::now()->subWeeks(2)->diffForHumans(null, false, true)
'2 u. siden',
'for 2 u. siden',
// Carbon::now()->subMonths(1)->diffForHumans()
'1 måned siden',
'for 1 måned siden',
// Carbon::now()->subMonths(1)->diffForHumans(null, false, true)
'1 mdr. siden',
'for 1 mdr. siden',
// Carbon::now()->subMonths(2)->diffForHumans()
'2 måneder siden',
'for 2 måneder siden',
// Carbon::now()->subMonths(2)->diffForHumans(null, false, true)
'2 mdr. siden',
'for 2 mdr. siden',
// Carbon::now()->subYears(1)->diffForHumans()
'1 år siden',
'for 1 år siden',
// Carbon::now()->subYears(1)->diffForHumans(null, false, true)
'1 år siden',
'for 1 år siden',
// Carbon::now()->subYears(2)->diffForHumans()
'2 år siden',
'for 2 år siden',
// Carbon::now()->subYears(2)->diffForHumans(null, false, true)
'2 år siden',
'for 2 år siden',
// Carbon::now()->addSecond()->diffForHumans()
'om 1 sekund',
// Carbon::now()->addSecond()->diffForHumans(null, false, true)
Expand Down Expand Up @@ -208,9 +208,9 @@ class DaGlTest extends LocalizationTestCase
// Carbon::now()->addYears(3)->diffForHumans(null, null, false, 4)
'om 3 år',
// Carbon::now()->subMonths(5)->diffForHumans(null, null, true, 4)
'5 mdr. siden',
'for 5 mdr. siden',
// Carbon::now()->subYears(2)->subMonths(3)->subDay()->subSecond()->diffForHumans(null, null, true, 4)
'2 år 3 mdr. 1 d. 1 s. siden',
'for 2 år 3 mdr. 1 d. 1 s. siden',
// Carbon::now()->addWeek()->addHours(10)->diffForHumans(null, true, false, 2)
'1 uge 10 timer',
// Carbon::now()->addWeek()->addDays(6)->diffForHumans(null, true, false, 2)
Expand Down
60 changes: 30 additions & 30 deletions tests/Localization/DaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,61 +124,61 @@ class DaTest extends LocalizationTestCase
// Carbon::parse('2018-01-01 00:00:00')->ordinal('hour')
'0.',
// Carbon::now()->subSeconds(1)->diffForHumans()
'1 sekund siden',
'for 1 sekund siden',
// Carbon::now()->subSeconds(1)->diffForHumans(null, false, true)
'1 s. siden',
'for 1 s. siden',
// Carbon::now()->subSeconds(2)->diffForHumans()
'2 sekunder siden',
'for 2 sekunder siden',
// Carbon::now()->subSeconds(2)->diffForHumans(null, false, true)
'2 s. siden',
'for 2 s. siden',
// Carbon::now()->subMinutes(1)->diffForHumans()
'1 minut siden',
'for 1 minut siden',
// Carbon::now()->subMinutes(1)->diffForHumans(null, false, true)
'1 min. siden',
'for 1 min. siden',
// Carbon::now()->subMinutes(2)->diffForHumans()
'2 minutter siden',
'for 2 minutter siden',
// Carbon::now()->subMinutes(2)->diffForHumans(null, false, true)
'2 min. siden',
'for 2 min. siden',
// Carbon::now()->subHours(1)->diffForHumans()
'1 time siden',
'for 1 time siden',
// Carbon::now()->subHours(1)->diffForHumans(null, false, true)
'1 t. siden',
'for 1 t. siden',
// Carbon::now()->subHours(2)->diffForHumans()
'2 timer siden',
'for 2 timer siden',
// Carbon::now()->subHours(2)->diffForHumans(null, false, true)
'2 t. siden',
'for 2 t. siden',
// Carbon::now()->subDays(1)->diffForHumans()
'1 dag siden',
'for 1 dag siden',
// Carbon::now()->subDays(1)->diffForHumans(null, false, true)
'1 d. siden',
'for 1 d. siden',
// Carbon::now()->subDays(2)->diffForHumans()
'2 dage siden',
'for 2 dage siden',
// Carbon::now()->subDays(2)->diffForHumans(null, false, true)
'2 d. siden',
'for 2 d. siden',
// Carbon::now()->subWeeks(1)->diffForHumans()
'1 uge siden',
'for 1 uge siden',
// Carbon::now()->subWeeks(1)->diffForHumans(null, false, true)
'1 u. siden',
'for 1 u. siden',
// Carbon::now()->subWeeks(2)->diffForHumans()
'2 uger siden',
'for 2 uger siden',
// Carbon::now()->subWeeks(2)->diffForHumans(null, false, true)
'2 u. siden',
'for 2 u. siden',
// Carbon::now()->subMonths(1)->diffForHumans()
'1 måned siden',
'for 1 måned siden',
// Carbon::now()->subMonths(1)->diffForHumans(null, false, true)
'1 mdr. siden',
'for 1 mdr. siden',
// Carbon::now()->subMonths(2)->diffForHumans()
'2 måneder siden',
'for 2 måneder siden',
// Carbon::now()->subMonths(2)->diffForHumans(null, false, true)
'2 mdr. siden',
'for 2 mdr. siden',
// Carbon::now()->subYears(1)->diffForHumans()
'1 år siden',
'for 1 år siden',
// Carbon::now()->subYears(1)->diffForHumans(null, false, true)
'1 år siden',
'for 1 år siden',
// Carbon::now()->subYears(2)->diffForHumans()
'2 år siden',
'for 2 år siden',
// Carbon::now()->subYears(2)->diffForHumans(null, false, true)
'2 år siden',
'for 2 år siden',
// Carbon::now()->addSecond()->diffForHumans()
'om 1 sekund',
// Carbon::now()->addSecond()->diffForHumans(null, false, true)
Expand Down Expand Up @@ -208,9 +208,9 @@ class DaTest extends LocalizationTestCase
// Carbon::now()->addYears(3)->diffForHumans(null, null, false, 4)
'om 3 år',
// Carbon::now()->subMonths(5)->diffForHumans(null, null, true, 4)
'5 mdr. siden',
'for 5 mdr. siden',
// Carbon::now()->subYears(2)->subMonths(3)->subDay()->subSecond()->diffForHumans(null, null, true, 4)
'2 år 3 mdr. 1 d. 1 s. siden',
'for 2 år 3 mdr. 1 d. 1 s. siden',
// Carbon::now()->addWeek()->addHours(10)->diffForHumans(null, true, false, 2)
'1 uge 10 timer',
// Carbon::now()->addWeek()->addDays(6)->diffForHumans(null, true, false, 2)
Expand Down

0 comments on commit 4969b63

Please sign in to comment.