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