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 | * - Josh Soref |
| 15 | * - François B |
| 16 | * - Tim Fish |
| 17 | * - shaishavgandhi05 |
| 18 | * - Serhan Apaydın |
| 19 | * - JD Isaacks |
| 20 | * - tomhorvat |
| 21 | * - Josh Soref |
| 22 | * - François B |
| 23 | * - shaishavgandhi05 |
| 24 | * - Serhan Apaydın |
| 25 | * - JD Isaacks |
| 26 | * - tomhorvat |
| 27 | * - Stjepan Majdak |
| 28 | * - Vanja Retkovac (vr00) |
| 29 | */ |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame^] | 30 | |
| 31 | use Carbon\CarbonInterface; |
| 32 | |
Matthias Andreas Benkard | 7b2a3a1 | 2021-08-16 10:57:25 +0200 | [diff] [blame] | 33 | return [ |
| 34 | 'year' => ':count godinu|:count godine|:count godina', |
| 35 | 'y' => ':count god.|:count god.|:count god.', |
| 36 | 'month' => ':count mjesec|:count mjeseca|:count mjeseci', |
| 37 | 'm' => ':count mj.|:count mj.|:count mj.', |
| 38 | 'week' => ':count tjedan|:count tjedna|:count tjedana', |
| 39 | 'w' => ':count tj.|:count tj.|:count tj.', |
| 40 | 'day' => ':count dan|:count dana|:count dana', |
| 41 | 'd' => ':count d.|:count d.|:count d.', |
| 42 | 'hour' => ':count sat|:count sata|:count sati', |
| 43 | 'h' => ':count sat|:count sata|:count sati', |
| 44 | 'minute' => ':count minutu|:count minute|:count minuta', |
| 45 | 'min' => ':count min.|:count min.|:count min.', |
| 46 | 'second' => ':count sekundu|:count sekunde|:count sekundi', |
| 47 | 'a_second' => 'nekoliko sekundi|:count sekunde|:count sekundi', |
| 48 | 's' => ':count sek.|:count sek.|:count sek.', |
| 49 | 'ago' => 'prije :time', |
| 50 | 'from_now' => 'za :time', |
| 51 | 'after' => ':time poslije', |
| 52 | 'before' => ':time prije', |
| 53 | 'diff_now' => 'sad', |
| 54 | 'diff_today' => 'danas', |
| 55 | 'diff_today_regexp' => 'danas(?:\\s+u)?', |
| 56 | 'diff_yesterday' => 'jučer', |
| 57 | 'diff_yesterday_regexp' => 'jučer(?:\\s+u)?', |
| 58 | 'diff_tomorrow' => 'sutra', |
| 59 | 'diff_tomorrow_regexp' => 'sutra(?:\\s+u)?', |
| 60 | 'diff_before_yesterday' => 'prekjučer', |
| 61 | 'diff_after_tomorrow' => 'prekosutra', |
| 62 | 'formats' => [ |
| 63 | 'LT' => 'H:mm', |
| 64 | 'LTS' => 'H:mm:ss', |
| 65 | 'L' => 'D. M. YYYY.', |
| 66 | 'LL' => 'D. MMMM YYYY.', |
| 67 | 'LLL' => 'D. MMMM YYYY. H:mm', |
| 68 | 'LLLL' => 'dddd, D. MMMM YYYY. H:mm', |
| 69 | ], |
| 70 | 'calendar' => [ |
| 71 | 'sameDay' => '[danas u] LT', |
| 72 | 'nextDay' => '[sutra u] LT', |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame^] | 73 | 'nextWeek' => function (CarbonInterface $date) { |
Matthias Andreas Benkard | 7b2a3a1 | 2021-08-16 10:57:25 +0200 | [diff] [blame] | 74 | switch ($date->dayOfWeek) { |
| 75 | case 0: |
| 76 | return '[u] [nedjelju] [u] LT'; |
| 77 | case 3: |
| 78 | return '[u] [srijedu] [u] LT'; |
| 79 | case 6: |
| 80 | return '[u] [subotu] [u] LT'; |
| 81 | default: |
| 82 | return '[u] dddd [u] LT'; |
| 83 | } |
| 84 | }, |
| 85 | 'lastDay' => '[jučer u] LT', |
Matthias Andreas Benkard | 1ba5381 | 2022-12-27 17:32:58 +0100 | [diff] [blame^] | 86 | 'lastWeek' => function (CarbonInterface $date) { |
Matthias Andreas Benkard | 7b2a3a1 | 2021-08-16 10:57:25 +0200 | [diff] [blame] | 87 | switch ($date->dayOfWeek) { |
| 88 | case 0: |
| 89 | case 3: |
| 90 | return '[prošlu] dddd [u] LT'; |
| 91 | case 6: |
| 92 | return '[prošle] [subote] [u] LT'; |
| 93 | default: |
| 94 | return '[prošli] dddd [u] LT'; |
| 95 | } |
| 96 | }, |
| 97 | 'sameElse' => 'L', |
| 98 | ], |
| 99 | 'ordinal' => ':number.', |
| 100 | 'months' => ['siječnja', 'veljače', 'ožujka', 'travnja', 'svibnja', 'lipnja', 'srpnja', 'kolovoza', 'rujna', 'listopada', 'studenoga', 'prosinca'], |
| 101 | 'months_standalone' => ['siječanj', 'veljača', 'ožujak', 'travanj', 'svibanj', 'lipanj', 'srpanj', 'kolovoz', 'rujan', 'listopad', 'studeni', 'prosinac'], |
| 102 | 'months_short' => ['sij.', 'velj.', 'ožu.', 'tra.', 'svi.', 'lip.', 'srp.', 'kol.', 'ruj.', 'lis.', 'stu.', 'pro.'], |
| 103 | 'months_regexp' => '/(D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|L{2,4}|l{2,4})/', |
| 104 | 'weekdays' => ['nedjelju', 'ponedjeljak', 'utorak', 'srijedu', 'četvrtak', 'petak', 'subotu'], |
| 105 | 'weekdays_standalone' => ['nedjelja', 'ponedjeljak', 'utorak', 'srijeda', 'četvrtak', 'petak', 'subota'], |
| 106 | 'weekdays_short' => ['ned.', 'pon.', 'uto.', 'sri.', 'čet.', 'pet.', 'sub.'], |
| 107 | 'weekdays_min' => ['ne', 'po', 'ut', 'sr', 'če', 'pe', 'su'], |
| 108 | 'first_day_of_week' => 1, |
| 109 | 'day_of_first_week_of_year' => 1, |
| 110 | 'list' => [', ', ' i '], |
| 111 | ]; |