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 | * - François B |
| 15 | * - Nicolai Davies |
| 16 | */ |
| 17 | return [ |
| 18 | 'year' => '{1}umnyaka|:count iminyaka', |
| 19 | 'month' => '{1}inyanga|:count tinyanga', |
| 20 | 'week' => '{1}:count liviki|:count emaviki', |
| 21 | 'day' => '{1}lilanga|:count emalanga', |
| 22 | 'hour' => '{1}lihora|:count emahora', |
| 23 | 'minute' => '{1}umzuzu|:count emizuzu', |
| 24 | 'second' => '{1}emizuzwana lomcane|:count mzuzwana', |
| 25 | 'ago' => 'wenteka nga :time', |
| 26 | 'from_now' => 'nga :time', |
| 27 | 'diff_yesterday' => 'Itolo', |
| 28 | 'diff_yesterday_regexp' => 'Itolo(?:\\s+nga)?', |
| 29 | 'diff_today' => 'Namuhla', |
| 30 | 'diff_today_regexp' => 'Namuhla(?:\\s+nga)?', |
| 31 | 'diff_tomorrow' => 'Kusasa', |
| 32 | 'diff_tomorrow_regexp' => 'Kusasa(?:\\s+nga)?', |
| 33 | 'formats' => [ |
| 34 | 'LT' => 'h:mm A', |
| 35 | 'LTS' => 'h:mm:ss A', |
| 36 | 'L' => 'DD/MM/YYYY', |
| 37 | 'LL' => 'D MMMM YYYY', |
| 38 | 'LLL' => 'D MMMM YYYY h:mm A', |
| 39 | 'LLLL' => 'dddd, D MMMM YYYY h:mm A', |
| 40 | ], |
| 41 | 'calendar' => [ |
| 42 | 'sameDay' => '[Namuhla nga] LT', |
| 43 | 'nextDay' => '[Kusasa nga] LT', |
| 44 | 'nextWeek' => 'dddd [nga] LT', |
| 45 | 'lastDay' => '[Itolo nga] LT', |
| 46 | 'lastWeek' => 'dddd [leliphelile] [nga] LT', |
| 47 | 'sameElse' => 'L', |
| 48 | ], |
| 49 | 'ordinal' => function ($number) { |
| 50 | $lastDigit = $number % 10; |
| 51 | |
| 52 | return $number.( |
| 53 | (~~($number % 100 / 10) === 1) ? 'e' : ( |
| 54 | ($lastDigit === 1 || $lastDigit === 2) ? 'a' : 'e' |
| 55 | ) |
| 56 | ); |
| 57 | }, |
| 58 | 'meridiem' => function ($hour) { |
| 59 | if ($hour < 11) { |
| 60 | return 'ekuseni'; |
| 61 | } |
| 62 | if ($hour < 15) { |
| 63 | return 'emini'; |
| 64 | } |
| 65 | if ($hour < 19) { |
| 66 | return 'entsambama'; |
| 67 | } |
| 68 | |
| 69 | return 'ebusuku'; |
| 70 | }, |
| 71 | 'months' => ['Bhimbidvwane', 'Indlovana', 'Indlov\'lenkhulu', 'Mabasa', 'Inkhwekhweti', 'Inhlaba', 'Kholwane', 'Ingci', 'Inyoni', 'Imphala', 'Lweti', 'Ingongoni'], |
| 72 | 'months_short' => ['Bhi', 'Ina', 'Inu', 'Mab', 'Ink', 'Inh', 'Kho', 'Igc', 'Iny', 'Imp', 'Lwe', 'Igo'], |
| 73 | 'weekdays' => ['Lisontfo', 'Umsombuluko', 'Lesibili', 'Lesitsatfu', 'Lesine', 'Lesihlanu', 'Umgcibelo'], |
| 74 | 'weekdays_short' => ['Lis', 'Umb', 'Lsb', 'Les', 'Lsi', 'Lsh', 'Umg'], |
| 75 | 'weekdays_min' => ['Li', 'Us', 'Lb', 'Lt', 'Ls', 'Lh', 'Ug'], |
| 76 | 'first_day_of_week' => 1, |
| 77 | 'day_of_first_week_of_year' => 4, |
| 78 | ]; |