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 | * - Ghorban M. Tavakoly Pablo Saratxaga & Ghorban M. Tavakoly pablo@walon.org & gmt314@yahoo.com |
| 15 | * - SuperManPHP |
| 16 | * - Maksat Meredow (isadma) |
| 17 | */ |
| 18 | $transformDiff = function ($input) { |
| 19 | return strtr($input, [ |
| 20 | 'sekunt' => 'sekunt', |
| 21 | 'hepde' => 'hepde', |
| 22 | ]); |
| 23 | }; |
| 24 | |
| 25 | return array_replace_recursive(require __DIR__.'/en.php', [ |
| 26 | 'formats' => [ |
| 27 | 'L' => 'DD.MM.YYYY', |
| 28 | ], |
| 29 | 'months' => ['Ýanwar', 'Fewral', 'Mart', 'Aprel', 'Maý', 'Iýun', 'Iýul', 'Awgust', 'Sentýabr', 'Oktýabr', 'Noýabr', 'Dekabr'], |
| 30 | 'months_short' => ['Ýan', 'Few', 'Mar', 'Apr', 'Maý', 'Iýn', 'Iýl', 'Awg', 'Sen', 'Okt', 'Noý', 'Dek'], |
| 31 | 'weekdays' => ['Duşenbe', 'Sişenbe', 'Çarşenbe', 'Penşenbe', 'Anna', 'Şenbe', 'Ýekşenbe'], |
| 32 | 'weekdays_short' => ['Duş', 'Siş', 'Çar', 'Pen', 'Ann', 'Şen', 'Ýek'], |
| 33 | 'weekdays_min' => ['Du', 'Si', 'Ça', 'Pe', 'An', 'Şe', 'Ýe'], |
| 34 | 'first_day_of_week' => 1, |
| 35 | 'day_of_first_week_of_year' => 1, |
| 36 | |
| 37 | 'year' => ':count ýyl', |
| 38 | 'y' => ':count ýyl', |
| 39 | 'a_year' => ':count ýyl', |
| 40 | |
| 41 | 'month' => ':count aý', |
| 42 | 'm' => ':count aý', |
| 43 | 'a_month' => ':count aý', |
| 44 | |
| 45 | 'week' => ':count hepde', |
| 46 | 'w' => ':count hepde', |
| 47 | 'a_week' => ':count hepde', |
| 48 | |
| 49 | 'day' => ':count gün', |
| 50 | 'd' => ':count gün', |
| 51 | 'a_day' => ':count gün', |
| 52 | |
| 53 | 'hour' => ':count sagat', |
| 54 | 'h' => ':count sagat', |
| 55 | 'a_hour' => ':count sagat', |
| 56 | |
| 57 | 'minute' => ':count minut', |
| 58 | 'min' => ':count minut', |
| 59 | 'a_minute' => ':count minut', |
| 60 | |
| 61 | 'second' => ':count sekunt', |
| 62 | 's' => ':count sekunt', |
| 63 | 'a_second' => ':count sekunt', |
| 64 | |
| 65 | 'ago' => function ($time) use ($transformDiff) { |
| 66 | return $transformDiff($time).' ozal'; |
| 67 | }, |
| 68 | 'from_now' => function ($time) use ($transformDiff) { |
| 69 | return $transformDiff($time).' soňra'; |
| 70 | }, |
| 71 | 'after' => function ($time) use ($transformDiff) { |
| 72 | return $transformDiff($time).' soň'; |
| 73 | }, |
| 74 | 'before' => function ($time) use ($transformDiff) { |
| 75 | return $transformDiff($time).' öň'; |
| 76 | }, |
| 77 | ]); |