it.php
3.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<?php
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
/*
* Authors:
* - Ash
* - François B
* - Marco Perrando
* - Massimiliano Caniparoli
* - JD Isaacks
* - Andrea Martini
* - Francesco Marasco
* - Tizianoz93
* - Davide Casiraghi (davide-casiraghi)
* - Pete Scopes (pdscopes)
*/
use Carbon\CarbonInterface;
return [
'year' => ':count anno|:count anni',
'a_year' => 'un anno|:count anni',
'y' => ':count anno|:count anni',
'month' => ':count mese|:count mesi',
'a_month' => 'un mese|:count mesi',
'm' => ':count mese|:count mesi',
'week' => ':count settimana|:count settimane',
'a_week' => 'una settimana|:count settimane',
'w' => ':count set.',
'day' => ':count giorno|:count giorni',
'a_day' => 'un giorno|:count giorni',
'd' => ':count g|:count gg',
'hour' => ':count ora|:count ore',
'a_hour' => 'un\'ora|:count ore',
'h' => ':count h',
'minute' => ':count minuto|:count minuti',
'a_minute' => 'un minuto|:count minuti',
'min' => ':count min.',
'second' => ':count secondo|:count secondi',
'a_second' => 'alcuni secondi|:count secondi',
's' => ':count sec.',
'millisecond' => ':count millisecondo|:count millisecondi',
'a_millisecond' => 'un millisecondo|:count millisecondi',
'ms' => ':countms',
'microsecond' => ':count microsecondo|:count microsecondi',
'a_microsecond' => 'un microsecondo|:count microsecondi',
'µs' => ':countµs',
'ago' => ':time fa',
'from_now' => function ($time) {
return (preg_match('/^\d.+$/', $time) ? 'tra' : 'in')." $time";
},
'after' => ':time dopo',
'before' => ':time prima',
'diff_now' => 'proprio ora',
'diff_today' => 'Oggi',
'diff_today_regexp' => 'Oggi(?:\\s+alle)?',
'diff_yesterday' => 'ieri',
'diff_yesterday_regexp' => 'Ieri(?:\\s+alle)?',
'diff_tomorrow' => 'domani',
'diff_tomorrow_regexp' => 'Domani(?:\\s+alle)?',
'diff_before_yesterday' => 'l\'altro ieri',
'diff_after_tomorrow' => 'dopodomani',
'period_interval' => 'ogni :interval',
'period_start_date' => 'dal :date',
'period_end_date' => 'al :date',
'formats' => [
'LT' => 'HH:mm',
'LTS' => 'HH:mm:ss',
'L' => 'DD/MM/YYYY',
'LL' => 'D MMMM YYYY',
'LLL' => 'D MMMM YYYY HH:mm',
'LLLL' => 'dddd D MMMM YYYY HH:mm',
],
'calendar' => [
'sameDay' => '[Oggi alle] LT',
'nextDay' => '[Domani alle] LT',
'nextWeek' => 'dddd [alle] LT',
'lastDay' => '[Ieri alle] LT',
'lastWeek' => function (CarbonInterface $date) {
switch ($date->dayOfWeek) {
case 0:
return '[la scorsa] dddd [alle] LT';
default:
return '[lo scorso] dddd [alle] LT';
}
},
'sameElse' => 'L',
],
'ordinal' => ':numberº',
'months' => ['gennaio', 'febbraio', 'marzo', 'aprile', 'maggio', 'giugno', 'luglio', 'agosto', 'settembre', 'ottobre', 'novembre', 'dicembre'],
'months_short' => ['gen', 'feb', 'mar', 'apr', 'mag', 'giu', 'lug', 'ago', 'set', 'ott', 'nov', 'dic'],
'weekdays' => ['domenica', 'lunedì', 'martedì', 'mercoledì', 'giovedì', 'venerdì', 'sabato'],
'weekdays_short' => ['dom', 'lun', 'mar', 'mer', 'gio', 'ven', 'sab'],
'weekdays_min' => ['do', 'lu', 'ma', 'me', 'gi', 've', 'sa'],
'first_day_of_week' => 1,
'day_of_first_week_of_year' => 4,
'list' => [', ', ' e '],
'ordinal_words' => [
'of' => 'di',
'first' => 'primo',
'second' => 'secondo',
'third' => 'terzo',
'fourth' => 'quarto',
'fifth' => 'quinto',
'last' => 'ultimo',
],
];