| 148 |
lars |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/**
|
|
|
4 |
* This file is part of the Carbon package.
|
|
|
5 |
*
|
|
|
6 |
* (c) Brian Nesbitt <brian@nesbot.com>
|
|
|
7 |
*
|
|
|
8 |
* For the full copyright and license information, please view the LICENSE
|
|
|
9 |
* file that was distributed with this source code.
|
|
|
10 |
*/
|
|
|
11 |
|
|
|
12 |
/*
|
|
|
13 |
* Authors:
|
|
|
14 |
* - Roy
|
|
|
15 |
* - Stephan
|
|
|
16 |
* - François B
|
|
|
17 |
* - Tim Fish
|
|
|
18 |
* - Kevin Huang
|
|
|
19 |
* - Jacob Middag
|
|
|
20 |
* - JD Isaacks
|
|
|
21 |
* - Roy
|
|
|
22 |
* - Stephan
|
|
|
23 |
* - François B
|
|
|
24 |
* - Tim Fish
|
|
|
25 |
* - Jacob Middag
|
|
|
26 |
* - JD Isaacks
|
|
|
27 |
* - Propaganistas
|
|
|
28 |
* - MegaXLR
|
|
|
29 |
* - adriaanzon
|
|
|
30 |
* - MonkeyPhysics
|
|
|
31 |
* - JeroenG
|
|
|
32 |
* - RikSomers
|
|
|
33 |
* - proclame
|
|
|
34 |
* - Rik de Groot (hwdegroot)
|
|
|
35 |
*/
|
|
|
36 |
return [
|
|
|
37 |
'year' => ':count jaar|:count jaar',
|
|
|
38 |
'a_year' => 'een jaar|:count jaar',
|
|
|
39 |
'y' => ':countj',
|
|
|
40 |
'month' => ':count maand|:count maanden',
|
|
|
41 |
'a_month' => 'een maand|:count maanden',
|
|
|
42 |
'm' => ':countmnd',
|
|
|
43 |
'week' => ':count week|:count weken',
|
|
|
44 |
'a_week' => 'een week|:count weken',
|
|
|
45 |
'w' => ':countw',
|
|
|
46 |
'day' => ':count dag|:count dagen',
|
|
|
47 |
'a_day' => 'een dag|:count dagen',
|
|
|
48 |
'd' => ':countd',
|
|
|
49 |
'hour' => ':count uur|:count uur',
|
|
|
50 |
'a_hour' => 'een uur|:count uur',
|
|
|
51 |
'h' => ':countu',
|
|
|
52 |
'minute' => ':count minuut|:count minuten',
|
|
|
53 |
'a_minute' => 'een minuut|:count minuten',
|
|
|
54 |
'min' => ':countmin',
|
|
|
55 |
'second' => ':count seconde|:count seconden',
|
|
|
56 |
'a_second' => 'een paar seconden|:count seconden',
|
|
|
57 |
's' => ':counts',
|
|
|
58 |
'ago' => ':time geleden',
|
|
|
59 |
'from_now' => 'over :time',
|
|
|
60 |
'after' => ':time later',
|
|
|
61 |
'before' => ':time eerder',
|
|
|
62 |
'diff_now' => 'nu',
|
|
|
63 |
'diff_today' => 'vandaag',
|
|
|
64 |
'diff_today_regexp' => 'vandaag(?:\\s+om)?',
|
|
|
65 |
'diff_yesterday' => 'gisteren',
|
|
|
66 |
'diff_yesterday_regexp' => 'gisteren(?:\\s+om)?',
|
|
|
67 |
'diff_tomorrow' => 'morgen',
|
|
|
68 |
'diff_tomorrow_regexp' => 'morgen(?:\\s+om)?',
|
|
|
69 |
'diff_after_tomorrow' => 'overmorgen',
|
|
|
70 |
'diff_before_yesterday' => 'eergisteren',
|
|
|
71 |
'period_recurrences' => ':count keer',
|
|
|
72 |
'period_interval' => function (string $interval = '') {
|
|
|
73 |
/** @var string $output */
|
|
|
74 |
$output = preg_replace('/^(een|één|1)\s+/u', '', $interval);
|
|
|
75 |
|
|
|
76 |
if (preg_match('/^(een|één|1)( jaar|j| uur|u)/u', $interval)) {
|
|
|
77 |
return "elk $output";
|
|
|
78 |
}
|
|
|
79 |
|
|
|
80 |
return "elke $output";
|
|
|
81 |
},
|
|
|
82 |
'period_start_date' => 'van :date',
|
|
|
83 |
'period_end_date' => 'tot :date',
|
|
|
84 |
'formats' => [
|
|
|
85 |
'LT' => 'HH:mm',
|
|
|
86 |
'LTS' => 'HH:mm:ss',
|
|
|
87 |
'L' => 'DD-MM-YYYY',
|
|
|
88 |
'LL' => 'D MMMM YYYY',
|
|
|
89 |
'LLL' => 'D MMMM YYYY HH:mm',
|
|
|
90 |
'LLLL' => 'dddd D MMMM YYYY HH:mm',
|
|
|
91 |
],
|
|
|
92 |
'calendar' => [
|
|
|
93 |
'sameDay' => '[vandaag om] LT',
|
|
|
94 |
'nextDay' => '[morgen om] LT',
|
|
|
95 |
'nextWeek' => 'dddd [om] LT',
|
|
|
96 |
'lastDay' => '[gisteren om] LT',
|
|
|
97 |
'lastWeek' => '[afgelopen] dddd [om] LT',
|
|
|
98 |
'sameElse' => 'L',
|
|
|
99 |
],
|
|
|
100 |
'ordinal' => function ($number) {
|
|
|
101 |
return $number.(($number === 1 || $number === 8 || $number >= 20) ? 'ste' : 'de');
|
|
|
102 |
},
|
|
|
103 |
'months' => ['januari', 'februari', 'maart', 'april', 'mei', 'juni', 'juli', 'augustus', 'september', 'oktober', 'november', 'december'],
|
|
|
104 |
'months_short' => ['jan', 'feb', 'mrt', 'apr', 'mei', 'jun', 'jul', 'aug', 'sep', 'okt', 'nov', 'dec'],
|
|
|
105 |
'mmm_suffix' => '.',
|
|
|
106 |
'weekdays' => ['zondag', 'maandag', 'dinsdag', 'woensdag', 'donderdag', 'vrijdag', 'zaterdag'],
|
|
|
107 |
'weekdays_short' => ['zo.', 'ma.', 'di.', 'wo.', 'do.', 'vr.', 'za.'],
|
|
|
108 |
'weekdays_min' => ['zo', 'ma', 'di', 'wo', 'do', 'vr', 'za'],
|
|
|
109 |
'first_day_of_week' => 1,
|
|
|
110 |
'day_of_first_week_of_year' => 4,
|
|
|
111 |
'list' => [', ', ' en '],
|
|
|
112 |
'meridiem' => ['\'s ochtends', '\'s middags'],
|
|
|
113 |
];
|