blob: f0196c0d6b6ee3502314f7548e1f54bdfc61c08b [file] [log] [blame]
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +02001<?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 * - Wacław Jacek
15 * - François B
16 * - Tim Fish
17 * - Serhan Apaydın
18 * - Massimiliano Caniparoli
19 * - JD Isaacks
20 * - Jakub Szwacz
21 * - Jan
22 * - Paul
23 * - damlys
24 * - Marek (marast78)
25 * - Peter (UnrulyNatives)
26 * - Qrzysio
27 * - Jan (aso824)
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010028 * - diverpl
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +020029 */
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010030
31use Carbon\CarbonInterface;
32
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +020033return [
34 'year' => ':count rok|:count lata|:count lat',
35 'a_year' => 'rok|:count lata|:count lat',
36 'y' => ':count r|:count l|:count l',
37 'month' => ':count miesiąc|:count miesiące|:count miesięcy',
38 'a_month' => 'miesiąc|:count miesiące|:count miesięcy',
39 'm' => ':count mies.',
40 'week' => ':count tydzień|:count tygodnie|:count tygodni',
41 'a_week' => 'tydzień|:count tygodnie|:count tygodni',
42 'w' => ':count tyg.',
43 'day' => ':count dzień|:count dni|:count dni',
44 'a_day' => 'dzień|:count dni|:count dni',
45 'd' => ':count d',
46 'hour' => ':count godzina|:count godziny|:count godzin',
47 'a_hour' => 'godzina|:count godziny|:count godzin',
48 'h' => ':count godz.',
49 'minute' => ':count minuta|:count minuty|:count minut',
50 'a_minute' => 'minuta|:count minuty|:count minut',
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010051 'min' => ':count min',
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +020052 'second' => ':count sekunda|:count sekundy|:count sekund',
53 'a_second' => '{1}kilka sekund|:count sekunda|:count sekundy|:count sekund',
54 's' => ':count sek.',
55 'ago' => ':time temu',
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010056 'from_now' => static function ($time) {
57 return 'za '.strtr($time, [
58 'godzina' => 'godzinę',
59 'minuta' => 'minutę',
60 'sekunda' => 'sekundę',
61 ]);
62 },
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +020063 'after' => ':time po',
64 'before' => ':time przed',
65 'diff_now' => 'przed chwilą',
66 'diff_today' => 'Dziś',
67 'diff_today_regexp' => 'Dziś(?:\\s+o)?',
68 'diff_yesterday' => 'wczoraj',
69 'diff_yesterday_regexp' => 'Wczoraj(?:\\s+o)?',
70 'diff_tomorrow' => 'jutro',
71 'diff_tomorrow_regexp' => 'Jutro(?:\\s+o)?',
72 'diff_before_yesterday' => 'przedwczoraj',
73 'diff_after_tomorrow' => 'pojutrze',
74 'formats' => [
75 'LT' => 'HH:mm',
76 'LTS' => 'HH:mm:ss',
77 'L' => 'DD.MM.YYYY',
78 'LL' => 'D MMMM YYYY',
79 'LLL' => 'D MMMM YYYY HH:mm',
80 'LLLL' => 'dddd, D MMMM YYYY HH:mm',
81 ],
82 'calendar' => [
83 'sameDay' => '[Dziś o] LT',
84 'nextDay' => '[Jutro o] LT',
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010085 'nextWeek' => function (CarbonInterface $date) {
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +020086 switch ($date->dayOfWeek) {
87 case 0:
88 return '[W niedzielę o] LT';
89 case 2:
90 return '[We wtorek o] LT';
91 case 3:
92 return '[W środę o] LT';
93 case 6:
94 return '[W sobotę o] LT';
95 default:
96 return '[W] dddd [o] LT';
97 }
98 },
99 'lastDay' => '[Wczoraj o] LT',
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +0100100 'lastWeek' => function (CarbonInterface $date) {
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +0200101 switch ($date->dayOfWeek) {
102 case 0:
103 return '[W zeszłą niedzielę o] LT';
104 case 3:
105 return '[W zeszłą środę o] LT';
106 case 6:
107 return '[W zeszłą sobotę o] LT';
108 default:
109 return '[W zeszły] dddd [o] LT';
110 }
111 },
112 'sameElse' => 'L',
113 ],
114 'ordinal' => ':number.',
115 'months' => ['stycznia', 'lutego', 'marca', 'kwietnia', 'maja', 'czerwca', 'lipca', 'sierpnia', 'września', 'października', 'listopada', 'grudnia'],
116 'months_standalone' => ['styczeń', 'luty', 'marzec', 'kwiecień', 'maj', 'czerwiec', 'lipiec', 'sierpień', 'wrzesień', 'październik', 'listopad', 'grudzień'],
117 'months_short' => ['sty', 'lut', 'mar', 'kwi', 'maj', 'cze', 'lip', 'sie', 'wrz', 'paź', 'lis', 'gru'],
118 'months_regexp' => '/(DD?o?\.?(\[[^\[\]]*\]|\s)+MMMM?|L{2,4}|l{2,4})/',
119 'weekdays' => ['niedziela', 'poniedziałek', 'wtorek', 'środa', 'czwartek', 'piątek', 'sobota'],
120 'weekdays_short' => ['ndz', 'pon', 'wt', 'śr', 'czw', 'pt', 'sob'],
121 'weekdays_min' => ['Nd', 'Pn', 'Wt', 'Śr', 'Cz', 'Pt', 'So'],
122 'first_day_of_week' => 1,
123 'day_of_first_week_of_year' => 4,
124 'list' => [', ', ' i '],
125 'meridiem' => ['przed południem', 'po południu'],
126];