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