fr.php
4.1 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
116
117
118
119
120
121
122
123
<?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:
* - Dieter Sting
* - François B
* - Maxime VALY
* - JD Isaacks
* - Dieter Sting
* - François B
* - JD Isaacks
* - Sebastian Thierer
* - Fastfuel
* - Pete Scopes (pdscopes)
*/
return [
'year' => ':count an|:count ans',
'a_year' => 'un an|:count ans',
'y' => ':count an|:count ans',
'month' => ':count mois|:count mois',
'a_month' => 'un mois|:count mois',
'm' => ':count mois',
'week' => ':count semaine|:count semaines',
'a_week' => 'une semaine|:count semaines',
'w' => ':count sem.',
'day' => ':count jour|:count jours',
'a_day' => 'un jour|:count jours',
'd' => ':count j',
'hour' => ':count heure|:count heures',
'a_hour' => 'une heure|:count heures',
'h' => ':count h',
'minute' => ':count minute|:count minutes',
'a_minute' => 'une minute|:count minutes',
'min' => ':count min',
'second' => ':count seconde|:count secondes',
'a_second' => 'quelques secondes|:count secondes',
's' => ':count s',
'millisecond' => ':count milliseconde|:count millisecondes',
'a_millisecond' => 'une milliseconde|:count millisecondes',
'ms' => ':countms',
'microsecond' => ':count microseconde|:count microsecondes',
'a_microsecond' => 'une microseconde|:count microsecondes',
'µs' => ':countµs',
'ago' => 'il y a :time',
'from_now' => 'dans :time',
'after' => ':time après',
'before' => ':time avant',
'diff_now' => "à l'instant",
'diff_today' => "aujourd'hui",
'diff_today_regexp' => "aujourd'hui(?:\s+à)?",
'diff_yesterday' => 'hier',
'diff_yesterday_regexp' => 'hier(?:\s+à)?',
'diff_tomorrow' => 'demain',
'diff_tomorrow_regexp' => 'demain(?:\s+à)?',
'diff_before_yesterday' => 'avant-hier',
'diff_after_tomorrow' => 'après-demain',
'period_recurrences' => ':count fois',
'period_interval' => 'tous les :interval',
'period_start_date' => 'de :date',
'period_end_date' => 'à :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' => '[Aujourd’hui à] LT',
'nextDay' => '[Demain à] LT',
'nextWeek' => 'dddd [à] LT',
'lastDay' => '[Hier à] LT',
'lastWeek' => 'dddd [dernier à] LT',
'sameElse' => 'L',
],
'months' => ['janvier', 'février', 'mars', 'avril', 'mai', 'juin', 'juillet', 'août', 'septembre', 'octobre', 'novembre', 'décembre'],
'months_short' => ['janv.', 'févr.', 'mars', 'avr.', 'mai', 'juin', 'juil.', 'août', 'sept.', 'oct.', 'nov.', 'déc.'],
'weekdays' => ['dimanche', 'lundi', 'mardi', 'mercredi', 'jeudi', 'vendredi', 'samedi'],
'weekdays_short' => ['dim.', 'lun.', 'mar.', 'mer.', 'jeu.', 'ven.', 'sam.'],
'weekdays_min' => ['di', 'lu', 'ma', 'me', 'je', 've', 'sa'],
'ordinal' => function ($number, $period) {
switch ($period) {
// In French, only the first has to be ordinal, other number remains cardinal
// @link https://fr.wikihow.com/%C3%A9crire-la-date-en-fran%C3%A7ais
case 'D':
return $number.($number === 1 ? 'er' : '');
default:
case 'M':
case 'Q':
case 'DDD':
case 'd':
return $number.($number === 1 ? 'er' : 'e');
// Words with feminine grammatical gender: semaine
case 'w':
case 'W':
return $number.($number === 1 ? 're' : 'e');
}
},
'first_day_of_week' => 1,
'day_of_first_week_of_year' => 4,
'list' => [', ', ' et '],
'ordinal_words' => [
'of' => 'de',
'first' => 'premier',
'second' => 'deuxième',
'third' => 'troisième',
'fourth' => 'quatrième',
'fifth' => 'cinquième',
'last' => 'dernier',
],
];