Matthias Andreas Benkard | 7b2a3a1 | 2021-08-16 10:57:25 +0200 | [diff] [blame^] | 1 | <?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 | * - 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 | 'year' => ':count an|:count ans', |
| 27 | 'a_year' => 'un an|:count ans', |
| 28 | 'y' => ':count an|:count ans', |
| 29 | 'month' => ':count mois|:count mois', |
| 30 | 'a_month' => 'un mois|:count mois', |
| 31 | 'm' => ':count mois', |
| 32 | 'week' => ':count semaine|:count semaines', |
| 33 | 'a_week' => 'une semaine|:count semaines', |
| 34 | 'w' => ':count sem.', |
| 35 | 'day' => ':count jour|:count jours', |
| 36 | 'a_day' => 'un jour|:count jours', |
| 37 | 'd' => ':count j', |
| 38 | 'hour' => ':count heure|:count heures', |
| 39 | 'a_hour' => 'une heure|:count heures', |
| 40 | 'h' => ':count h', |
| 41 | 'minute' => ':count minute|:count minutes', |
| 42 | 'a_minute' => 'une minute|:count minutes', |
| 43 | 'min' => ':count min', |
| 44 | 'second' => ':count seconde|:count secondes', |
| 45 | 'a_second' => 'quelques secondes|:count secondes', |
| 46 | 's' => ':count s', |
| 47 | 'millisecond' => ':count milliseconde|:count millisecondes', |
| 48 | 'a_millisecond' => 'une milliseconde|:count millisecondes', |
| 49 | 'ms' => ':countms', |
| 50 | 'microsecond' => ':count microseconde|:count microsecondes', |
| 51 | 'a_microsecond' => 'une microseconde|:count microsecondes', |
| 52 | 'µs' => ':countµs', |
| 53 | 'ago' => 'il y a :time', |
| 54 | 'from_now' => 'dans :time', |
| 55 | 'after' => ':time après', |
| 56 | 'before' => ':time avant', |
| 57 | 'diff_now' => "à l'instant", |
| 58 | 'diff_today' => "aujourd'hui", |
| 59 | 'diff_today_regexp' => "aujourd'hui(?:\s+à)?", |
| 60 | 'diff_yesterday' => 'hier', |
| 61 | 'diff_yesterday_regexp' => 'hier(?:\s+à)?', |
| 62 | 'diff_tomorrow' => 'demain', |
| 63 | 'diff_tomorrow_regexp' => 'demain(?:\s+à)?', |
| 64 | 'diff_before_yesterday' => 'avant-hier', |
| 65 | 'diff_after_tomorrow' => 'après-demain', |
| 66 | 'period_recurrences' => ':count fois', |
| 67 | 'period_interval' => 'tous les :interval', |
| 68 | 'period_start_date' => 'de :date', |
| 69 | 'period_end_date' => 'à :date', |
| 70 | 'formats' => [ |
| 71 | 'LT' => 'HH:mm', |
| 72 | 'LTS' => 'HH:mm:ss', |
| 73 | 'L' => 'DD/MM/YYYY', |
| 74 | 'LL' => 'D MMMM YYYY', |
| 75 | 'LLL' => 'D MMMM YYYY HH:mm', |
| 76 | 'LLLL' => 'dddd D MMMM YYYY HH:mm', |
| 77 | ], |
| 78 | 'calendar' => [ |
| 79 | 'sameDay' => '[Aujourd’hui à] LT', |
| 80 | 'nextDay' => '[Demain à] LT', |
| 81 | 'nextWeek' => 'dddd [à] LT', |
| 82 | 'lastDay' => '[Hier à] LT', |
| 83 | 'lastWeek' => 'dddd [dernier à] LT', |
| 84 | 'sameElse' => 'L', |
| 85 | ], |
| 86 | 'months' => ['janvier', 'février', 'mars', 'avril', 'mai', 'juin', 'juillet', 'août', 'septembre', 'octobre', 'novembre', 'décembre'], |
| 87 | 'months_short' => ['janv.', 'févr.', 'mars', 'avr.', 'mai', 'juin', 'juil.', 'août', 'sept.', 'oct.', 'nov.', 'déc.'], |
| 88 | 'weekdays' => ['dimanche', 'lundi', 'mardi', 'mercredi', 'jeudi', 'vendredi', 'samedi'], |
| 89 | 'weekdays_short' => ['dim.', 'lun.', 'mar.', 'mer.', 'jeu.', 'ven.', 'sam.'], |
| 90 | 'weekdays_min' => ['di', 'lu', 'ma', 'me', 'je', 've', 'sa'], |
| 91 | 'ordinal' => function ($number, $period) { |
| 92 | switch ($period) { |
| 93 | // In french, only the first has be ordinal, other number remains cardinal |
| 94 | // @link https://fr.wikihow.com/%C3%A9crire-la-date-en-fran%C3%A7ais |
| 95 | case 'D': |
| 96 | return $number.($number === 1 ? 'er' : ''); |
| 97 | |
| 98 | default: |
| 99 | case 'M': |
| 100 | case 'Q': |
| 101 | case 'DDD': |
| 102 | case 'd': |
| 103 | return $number.($number === 1 ? 'er' : 'e'); |
| 104 | |
| 105 | // Words with feminine grammatical gender: semaine |
| 106 | case 'w': |
| 107 | case 'W': |
| 108 | return $number.($number === 1 ? 're' : 'e'); |
| 109 | } |
| 110 | }, |
| 111 | 'first_day_of_week' => 1, |
| 112 | 'day_of_first_week_of_year' => 4, |
| 113 | 'list' => [', ', ' et '], |
| 114 | ]; |