Debian Codegraph @

lib/3rdParty/composer/nesbot/carbon/src/Carbon/Lang/oc.php

raw symbols SCIP
1 <?php
2
3 /**
4 * This file is part of the Carbon package.
5 *
6 * (c) Brian Nesbitt <[email protected]>
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 * - Quentí
15 * - Quentin PAGÈS
16 */
17 // @codeCoverageIgnoreStart
18 use Symfony\Component\Translation\PluralizationRules;
19
20 if (class_exists('Symfony\\Component\\Translation\\PluralizationRules')) {
21 PluralizationRules::set(static function ($number) {
22 return $number == 1 ? 0 : 1;
23 }, 'oc');
24 }
25 // @codeCoverageIgnoreEnd
26
27 return [
28 'year' => ':count an|:count ans',
29 'a_year' => 'un an|:count ans',
30 'y' => ':count an|:count ans',
31 'month' => ':count mes|:count meses',
32 'a_month' => 'un mes|:count meses',
33 'm' => ':count mes|:count meses',
34 'week' => ':count setmana|:count setmanas',
35 'a_week' => 'una setmana|:count setmanas',
36 'w' => ':count setmana|:count setmanas',
37 'day' => ':count jorn|:count jorns',
38 'a_day' => 'un jorn|:count jorns',
39 'd' => ':count jorn|:count jorns',
40 'hour' => ':count ora|:count oras',
41 'a_hour' => 'una ora|:count oras',
42 'h' => ':count ora|:count oras',
43 'minute' => ':count minuta|:count minutas',
44 'a_minute' => 'una minuta|:count minutas',
45 'min' => ':count minuta|:count minutas',
46 'second' => ':count segonda|:count segondas',
47 'a_second' => 'una segonda|:count segondas',
48 's' => ':count segonda|:count segondas',
49 'ago' => 'fa :time',
50 'from_now' => 'd\'aquí :time',
51 'after' => ':time aprèp',
52 'before' => ':time abans',
53 'diff_now' => 'ara meteis',
54 'diff_today' => 'Uèi',
55 'diff_today_regexp' => 'Uèi(?:\\s+a)?',
56 'diff_yesterday' => 'ièr',
57 'diff_yesterday_regexp' => 'Ièr(?:\\s+a)?',
58 'diff_tomorrow' => 'deman',
59 'diff_tomorrow_regexp' => 'Deman(?:\\s+a)?',
60 'diff_before_yesterday' => 'ièr delà',
61 'diff_after_tomorrow' => 'deman passat',
62 'period_recurrences' => ':count còp|:count còps',
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] H:mm',
72 'LLLL' => 'dddd D MMMM [de] YYYY [a] H:mm',
73 ],
74 'calendar' => [
75 'sameDay' => '[Uèi a] LT',
76 'nextDay' => '[Deman a] LT',
77 'nextWeek' => 'dddd [a] LT',
78 'lastDay' => '[Ièr a] LT',
79 'lastWeek' => 'dddd [passat a] LT',
80 'sameElse' => 'L',
81 ],
82 'months' => ['de genièr', 'de febrièr', 'de març', 'd\'abrial', 'de mai', 'de junh', 'de julhet', 'd\'agost', 'de setembre', 'd’octòbre', 'de novembre', 'de decembre'],
83 'months_standalone' => ['genièr', 'febrièr', 'març', 'abrial', 'mai', 'junh', 'julh', 'agost', 'setembre', 'octòbre', 'novembre', 'decembre'],
84 'months_short' => ['gen.', 'feb.', 'març', 'abr.', 'mai', 'junh', 'julh', 'ago.', 'sep.', 'oct.', 'nov.', 'dec.'],
85 'weekdays' => ['dimenge', 'diluns', 'dimars', 'dimècres', 'dijòus', 'divendres', 'dissabte'],
86 'weekdays_short' => ['dg', 'dl', 'dm', 'dc', 'dj', 'dv', 'ds'],
87 'weekdays_min' => ['dg', 'dl', 'dm', 'dc', 'dj', 'dv', 'ds'],
88 'ordinal' => static function ($number, string $period = '') {
89 $ordinal = [1 => 'èr', 2 => 'nd'][(int) $number] ?? 'en';
90
91 // feminine for week, hour, minute, second
92 if (preg_match('/^[wWhHgGis]$/', $period)) {
93 $ordinal .= 'a';
94 }
95
96 return $number.$ordinal;
97 },
98 'first_day_of_week' => 1,
99 'day_of_first_week_of_year' => 4,
100 'list' => [', ', ' e '],
101 ];