blob: b2d2ac1137d579f1d255fc0978b8a1b5391759e4 [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 * - Adam Brunner
15 * - Brett Johnson
16 * - balping
17 */
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010018
19use Carbon\CarbonInterface;
20
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +020021$huWeekEndings = ['vasárnap', 'hétfőn', 'kedden', 'szerdán', 'csütörtökön', 'pénteken', 'szombaton'];
22
23return [
24 'year' => ':count év',
25 'y' => ':count év',
26 'month' => ':count hónap',
27 'm' => ':count hónap',
28 'week' => ':count hét',
29 'w' => ':count hét',
30 'day' => ':count nap',
31 'd' => ':count nap',
32 'hour' => ':count óra',
33 'h' => ':count óra',
34 'minute' => ':count perc',
35 'min' => ':count perc',
36 'second' => ':count másodperc',
37 's' => ':count másodperc',
38 'ago' => ':time',
39 'from_now' => ':time múlva',
40 'after' => ':time később',
41 'before' => ':time korábban',
42 'year_ago' => ':count éve',
43 'y_ago' => ':count éve',
44 'month_ago' => ':count hónapja',
45 'm_ago' => ':count hónapja',
46 'week_ago' => ':count hete',
47 'w_ago' => ':count hete',
48 'day_ago' => ':count napja',
49 'd_ago' => ':count napja',
50 'hour_ago' => ':count órája',
51 'h_ago' => ':count órája',
52 'minute_ago' => ':count perce',
53 'min_ago' => ':count perce',
54 'second_ago' => ':count másodperce',
55 's_ago' => ':count másodperce',
56 'year_after' => ':count évvel',
57 'y_after' => ':count évvel',
58 'month_after' => ':count hónappal',
59 'm_after' => ':count hónappal',
60 'week_after' => ':count héttel',
61 'w_after' => ':count héttel',
62 'day_after' => ':count nappal',
63 'd_after' => ':count nappal',
64 'hour_after' => ':count órával',
65 'h_after' => ':count órával',
66 'minute_after' => ':count perccel',
67 'min_after' => ':count perccel',
68 'second_after' => ':count másodperccel',
69 's_after' => ':count másodperccel',
70 'year_before' => ':count évvel',
71 'y_before' => ':count évvel',
72 'month_before' => ':count hónappal',
73 'm_before' => ':count hónappal',
74 'week_before' => ':count héttel',
75 'w_before' => ':count héttel',
76 'day_before' => ':count nappal',
77 'd_before' => ':count nappal',
78 'hour_before' => ':count órával',
79 'h_before' => ':count órával',
80 'minute_before' => ':count perccel',
81 'min_before' => ':count perccel',
82 'second_before' => ':count másodperccel',
83 's_before' => ':count másodperccel',
84 'months' => ['január', 'február', 'március', 'április', 'május', 'június', 'július', 'augusztus', 'szeptember', 'október', 'november', 'december'],
85 'months_short' => ['jan.', 'feb.', 'márc.', 'ápr.', 'máj.', 'jún.', 'júl.', 'aug.', 'szept.', 'okt.', 'nov.', 'dec.'],
86 'weekdays' => ['vasárnap', 'hétfő', 'kedd', 'szerda', 'csütörtök', 'péntek', 'szombat'],
87 'weekdays_short' => ['vas', 'hét', 'kedd', 'sze', 'csüt', 'pén', 'szo'],
88 'weekdays_min' => ['v', 'h', 'k', 'sze', 'cs', 'p', 'sz'],
89 'ordinal' => ':number.',
90 'diff_now' => 'most',
91 'diff_today' => 'ma',
92 'diff_yesterday' => 'tegnap',
93 'diff_tomorrow' => 'holnap',
94 'formats' => [
95 'LT' => 'H:mm',
96 'LTS' => 'H:mm:ss',
97 'L' => 'YYYY.MM.DD.',
98 'LL' => 'YYYY. MMMM D.',
99 'LLL' => 'YYYY. MMMM D. H:mm',
100 'LLLL' => 'YYYY. MMMM D., dddd H:mm',
101 ],
102 'calendar' => [
103 'sameDay' => '[ma] LT[-kor]',
104 'nextDay' => '[holnap] LT[-kor]',
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +0100105 'nextWeek' => function (CarbonInterface $date) use ($huWeekEndings) {
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +0200106 return '['.$huWeekEndings[$date->dayOfWeek].'] LT[-kor]';
107 },
108 'lastDay' => '[tegnap] LT[-kor]',
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +0100109 'lastWeek' => function (CarbonInterface $date) use ($huWeekEndings) {
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +0200110 return '[múlt '.$huWeekEndings[$date->dayOfWeek].'] LT[-kor]';
111 },
112 'sameElse' => 'L',
113 ],
114 'meridiem' => ['DE', 'DU'],
115 'first_day_of_week' => 1,
116 'day_of_first_week_of_year' => 4,
117 'list' => [', ', ' és '],
118];