| 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 |
* - mestremuten
|
|
|
15 |
* - François B
|
|
|
16 |
* - Marc Ordinas i Llopis
|
|
|
17 |
* - Pere Orga
|
|
|
18 |
* - JD Isaacks
|
|
|
19 |
* - Quentí
|
|
|
20 |
* - Víctor Díaz
|
|
|
21 |
* - Xavi
|
|
|
22 |
* - qcardona
|
|
|
23 |
*/
|
|
|
24 |
|
|
|
25 |
use Carbon\CarbonInterface;
|
|
|
26 |
|
|
|
27 |
return [
|
|
|
28 |
'year' => ':count any|:count anys',
|
|
|
29 |
'a_year' => 'un any|:count anys',
|
|
|
30 |
'y' => ':count any|:count anys',
|
|
|
31 |
'month' => ':count mes|:count mesos',
|
|
|
32 |
'a_month' => 'un mes|:count mesos',
|
|
|
33 |
'm' => ':count mes|:count mesos',
|
|
|
34 |
'week' => ':count setmana|:count setmanes',
|
|
|
35 |
'a_week' => 'una setmana|:count setmanes',
|
|
|
36 |
'w' => ':count setmana|:count setmanes',
|
|
|
37 |
'day' => ':count dia|:count dies',
|
|
|
38 |
'a_day' => 'un dia|:count dies',
|
|
|
39 |
'd' => ':count d',
|
|
|
40 |
'hour' => ':count hora|:count hores',
|
|
|
41 |
'a_hour' => 'una hora|:count hores',
|
|
|
42 |
'h' => ':count h',
|
|
|
43 |
'minute' => ':count minut|:count minuts',
|
|
|
44 |
'a_minute' => 'un minut|:count minuts',
|
|
|
45 |
'min' => ':count min',
|
|
|
46 |
'second' => ':count segon|:count segons',
|
|
|
47 |
'a_second' => 'uns segons|:count segons',
|
|
|
48 |
's' => ':count s',
|
|
|
49 |
'ago' => 'fa :time',
|
|
|
50 |
'from_now' => 'd\'aquí a :time',
|
|
|
51 |
'after' => ':time després',
|
|
|
52 |
'before' => ':time abans',
|
|
|
53 |
'diff_now' => 'ara mateix',
|
|
|
54 |
'diff_today' => 'avui',
|
|
|
55 |
'diff_today_regexp' => 'avui(?:\\s+a)?(?:\\s+les)?',
|
|
|
56 |
'diff_yesterday' => 'ahir',
|
|
|
57 |
'diff_yesterday_regexp' => 'ahir(?:\\s+a)?(?:\\s+les)?',
|
|
|
58 |
'diff_tomorrow' => 'demà',
|
|
|
59 |
'diff_tomorrow_regexp' => 'demà(?:\\s+a)?(?:\\s+les)?',
|
|
|
60 |
'diff_before_yesterday' => 'abans d\'ahir',
|
|
|
61 |
'diff_after_tomorrow' => 'demà passat',
|
|
|
62 |
'period_recurrences' => ':count cop|:count cops',
|
|
|
63 |
'period_interval' => 'cada :interval',
|
|
|
64 |
'period_start_date' => 'de :date',
|
|
|
65 |
'period_end_date' => 'fins a :date',
|
|
|
66 |
'formats' => [
|
|
|
67 |
'LT' => 'H:mm',
|
|
|
68 |
'LTS' => 'H:mm:ss',
|
|
|
69 |
'L' => 'DD/MM/YYYY',
|
|
|
70 |
'LL' => 'D MMMM [de] YYYY',
|
|
|
71 |
'LLL' => 'D MMMM [de] YYYY [a les] H:mm',
|
|
|
72 |
'LLLL' => 'dddd D MMMM [de] YYYY [a les] H:mm',
|
|
|
73 |
],
|
|
|
74 |
'calendar' => [
|
|
|
75 |
'sameDay' => function (CarbonInterface $current) {
|
|
|
76 |
return '[avui a '.($current->hour !== 1 ? 'les' : 'la').'] LT';
|
|
|
77 |
},
|
|
|
78 |
'nextDay' => function (CarbonInterface $current) {
|
|
|
79 |
return '[demà a '.($current->hour !== 1 ? 'les' : 'la').'] LT';
|
|
|
80 |
},
|
|
|
81 |
'nextWeek' => function (CarbonInterface $current) {
|
|
|
82 |
return 'dddd [a '.($current->hour !== 1 ? 'les' : 'la').'] LT';
|
|
|
83 |
},
|
|
|
84 |
'lastDay' => function (CarbonInterface $current) {
|
|
|
85 |
return '[ahir a '.($current->hour !== 1 ? 'les' : 'la').'] LT';
|
|
|
86 |
},
|
|
|
87 |
'lastWeek' => function (CarbonInterface $current) {
|
|
|
88 |
return '[el] dddd [passat a '.($current->hour !== 1 ? 'les' : 'la').'] LT';
|
|
|
89 |
},
|
|
|
90 |
'sameElse' => 'L',
|
|
|
91 |
],
|
|
|
92 |
'ordinal' => function ($number, $period) {
|
|
|
93 |
return $number.(
|
|
|
94 |
($period === 'w' || $period === 'W') ? 'a' : (
|
|
|
95 |
($number === 1) ? 'r' : (
|
|
|
96 |
($number === 2) ? 'n' : (
|
|
|
97 |
($number === 3) ? 'r' : (
|
|
|
98 |
($number === 4) ? 't' : 'è'
|
|
|
99 |
)
|
|
|
100 |
)
|
|
|
101 |
)
|
|
|
102 |
)
|
|
|
103 |
);
|
|
|
104 |
},
|
|
|
105 |
'months' => ['de gener', 'de febrer', 'de març', 'd\'abril', 'de maig', 'de juny', 'de juliol', 'd\'agost', 'de setembre', 'd\'octubre', 'de novembre', 'de desembre'],
|
|
|
106 |
'months_standalone' => ['gener', 'febrer', 'març', 'abril', 'maig', 'juny', 'juliol', 'agost', 'setembre', 'octubre', 'novembre', 'desembre'],
|
|
|
107 |
'months_short' => ['de gen.', 'de febr.', 'de març', 'd\'abr.', 'de maig', 'de juny', 'de jul.', 'd\'ag.', 'de set.', 'd\'oct.', 'de nov.', 'de des.'],
|
|
|
108 |
'months_short_standalone' => ['gen.', 'febr.', 'març', 'abr.', 'maig', 'juny', 'jul.', 'ag.', 'set.', 'oct.', 'nov.', 'des.'],
|
|
|
109 |
'months_regexp' => '/(D[oD]?[\s,]+MMMM?|L{2,4}|l{2,4})/',
|
|
|
110 |
'weekdays' => ['diumenge', 'dilluns', 'dimarts', 'dimecres', 'dijous', 'divendres', 'dissabte'],
|
|
|
111 |
'weekdays_short' => ['dg.', 'dl.', 'dt.', 'dc.', 'dj.', 'dv.', 'ds.'],
|
|
|
112 |
'weekdays_min' => ['dg', 'dl', 'dt', 'dc', 'dj', 'dv', 'ds'],
|
|
|
113 |
'first_day_of_week' => 1,
|
|
|
114 |
'day_of_first_week_of_year' => 4,
|
|
|
115 |
'list' => [', ', ' i '],
|
|
|
116 |
'meridiem' => ['a. m.', 'p. m.'],
|
|
|
117 |
];
|