Debian Codegraph @

lib/3rdParty/composer/nesbot/carbon/src/Carbon/Lang/fr.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 * - Dieter Sting
15 * - François B
16 * - Maxime VALY
17 * - JD Isaacks
18 * - Dieter Sting
19 * - François B
20 * - JD Isaacks
21 * - Sebastian Thierer
22 * - Fastfuel
23 * - Pete Scopes (pdscopes)
24 */
25 return [
26 'millennium' => ':count millénaire|:count millénaires',
27 'a_millennium' => 'un millénaire|:count millénaires',
28 'century' => ':count siècle|:count siècles',
29 'a_century' => 'un siècle|:count siècles',
30 'decade' => ':count décennie|:count décennies',
31 'a_decade' => 'une décennie|:count décennies',
32 'year' => ':count an|:count ans',
33 'a_year' => 'un an|:count ans',
34 'y' => ':count an|:count ans',
35 'month' => ':count mois|:count mois',
36 'a_month' => 'un mois|:count mois',
37 'm' => ':count mois',
38 'week' => ':count semaine|:count semaines',
39 'a_week' => 'une semaine|:count semaines',
40 'w' => ':count sem.',
41 'day' => ':count jour|:count jours',
42 'a_day' => 'un jour|:count jours',
43 'd' => ':count j',
44 'hour' => ':count heure|:count heures',
45 'a_hour' => 'une heure|:count heures',
46 'h' => ':count h',
47 'minute' => ':count minute|:count minutes',
48 'a_minute' => 'une minute|:count minutes',
49 'min' => ':count min',
50 'second' => ':count seconde|:count secondes',
51 'a_second' => 'quelques secondes|:count secondes',
52 's' => ':count s',
53 'millisecond' => ':count milliseconde|:count millisecondes',
54 'a_millisecond' => 'une milliseconde|:count millisecondes',
55 'ms' => ':countms',
56 'microsecond' => ':count microseconde|:count microsecondes',
57 'a_microsecond' => 'une microseconde|:count microsecondes',
58 'µs' => ':countµs',
59 'ago' => 'il y a :time',
60 'from_now' => 'dans :time',
61 'after' => ':time après',
62 'before' => ':time avant',
63 'diff_now' => "à l'instant",
64 'diff_today' => "aujourd'hui",
65 'diff_today_regexp' => "aujourd'hui(?:\s+à)?",
66 'diff_yesterday' => 'hier',
67 'diff_yesterday_regexp' => 'hier(?:\s+à)?',
68 'diff_tomorrow' => 'demain',
69 'diff_tomorrow_regexp' => 'demain(?:\s+à)?',
70 'diff_before_yesterday' => 'avant-hier',
71 'diff_after_tomorrow' => 'après-demain',
72 'period_recurrences' => ':count fois',
73 'period_interval' => 'tous les :interval',
74 'period_start_date' => 'de :date',
75 'period_end_date' => 'à :date',
76 'formats' => [
77 'LT' => 'HH:mm',
78 'LTS' => 'HH:mm:ss',
79 'L' => 'DD/MM/YYYY',
80 'LL' => 'D MMMM YYYY',
81 'LLL' => 'D MMMM YYYY HH:mm',
82 'LLLL' => 'dddd D MMMM YYYY HH:mm',
83 ],
84 'calendar' => [
85 'sameDay' => '[Aujourd’hui à] LT',
86 'nextDay' => '[Demain à] LT',
87 'nextWeek' => 'dddd [à] LT',
88 'lastDay' => '[Hier à] LT',
89 'lastWeek' => 'dddd [dernier à] LT',
90 'sameElse' => 'L',
91 ],
92 'months' => ['janvier', 'février', 'mars', 'avril', 'mai', 'juin', 'juillet', 'août', 'septembre', 'octobre', 'novembre', 'décembre'],
93 'months_short' => ['janv.', 'févr.', 'mars', 'avr.', 'mai', 'juin', 'juil.', 'août', 'sept.', 'oct.', 'nov.', 'déc.'],
94 'weekdays' => ['dimanche', 'lundi', 'mardi', 'mercredi', 'jeudi', 'vendredi', 'samedi'],
95 'weekdays_short' => ['dim.', 'lun.', 'mar.', 'mer.', 'jeu.', 'ven.', 'sam.'],
96 'weekdays_min' => ['di', 'lu', 'ma', 'me', 'je', 've', 'sa'],
97 'ordinal' => static function ($number, $period) {
98 return match ($period) {
99 // In French, only the first has to be ordinal, other number remains cardinal
100 // @link https://fr.wikihow.com/%C3%A9crire-la-date-en-fran%C3%A7ais
101 'D' => $number.($number === 1 ? 'er' : ''),
102 default => $number.($number === 1 ? 'er' : 'e'),
103 'w', 'W' => $number.($number === 1 ? 're' : 'e'),
104 };
105 },
106 'first_day_of_week' => 1,
107 'day_of_first_week_of_year' => 4,
108 'list' => [', ', ' et '],
109 'ordinal_words' => [
110 'of' => 'de',
111 'first' => 'premier',
112 'second' => 'deuxième',
113 'third' => 'troisième',
114 'fourth' => 'quatrième',
115 'fifth' => 'cinquième',
116 'last' => 'dernier',
117 ],
118 ];