blob: e5d68083eddcf0c32e145d81ee9eee0a38e5f181 [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 * - bokideckonja
15 * - Josh Soref
16 * - François B
17 * - shaishavgandhi05
18 * - Serhan Apaydın
19 * - JD Isaacks
20 */
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010021
22use Carbon\CarbonInterface;
23
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +020024return [
25 'year' => ':count godina|:count godine|:count godina',
26 'y' => ':count godina|:count godine|:count godina',
27 'month' => ':count mjesec|:count mjeseca|:count mjeseci',
28 'm' => ':count mjesec|:count mjeseca|:count mjeseci',
29 'week' => ':count sedmice|:count sedmicu|:count sedmica',
30 'w' => ':count sedmice|:count sedmicu|:count sedmica',
31 'day' => ':count dan|:count dana|:count dana',
32 'd' => ':count dan|:count dana|:count dana',
33 'hour' => ':count sat|:count sata|:count sati',
34 'h' => ':count sat|:count sata|:count sati',
35 'minute' => ':count minut|:count minuta|:count minuta',
36 'min' => ':count minut|:count minuta|:count minuta',
37 'second' => ':count sekund|:count sekunda|:count sekundi',
38 's' => ':count sekund|:count sekunda|:count sekundi',
39 'ago' => 'prije :time',
40 'from_now' => 'za :time',
41 'after' => 'nakon :time',
42 'before' => ':time ranije',
43 'diff_now' => 'sada',
44 'diff_today' => 'danas',
45 'diff_today_regexp' => 'danas(?:\\s+u)?',
46 'diff_yesterday' => 'jučer',
47 'diff_yesterday_regexp' => 'jučer(?:\\s+u)?',
48 'diff_tomorrow' => 'sutra',
49 'diff_tomorrow_regexp' => 'sutra(?:\\s+u)?',
50 'formats' => [
51 'LT' => 'H:mm',
52 'LTS' => 'H:mm:ss',
53 'L' => 'DD.MM.YYYY',
54 'LL' => 'D. MMMM YYYY',
55 'LLL' => 'D. MMMM YYYY H:mm',
56 'LLLL' => 'dddd, D. MMMM YYYY H:mm',
57 ],
58 'calendar' => [
59 'sameDay' => '[danas u] LT',
60 'nextDay' => '[sutra u] LT',
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010061 'nextWeek' => function (CarbonInterface $current) {
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +020062 switch ($current->dayOfWeek) {
63 case 0:
64 return '[u] [nedjelju] [u] LT';
65 case 3:
66 return '[u] [srijedu] [u] LT';
67 case 6:
68 return '[u] [subotu] [u] LT';
69 default:
70 return '[u] dddd [u] LT';
71 }
72 },
73 'lastDay' => '[jučer u] LT',
Matthias Andreas Benkard1ba53812022-12-27 17:32:58 +010074 'lastWeek' => function (CarbonInterface $current) {
Matthias Andreas Benkard7b2a3a12021-08-16 10:57:25 +020075 switch ($current->dayOfWeek) {
76 case 0:
77 case 3:
78 return '[prošlu] dddd [u] LT';
79 case 6:
80 return '[prošle] [subote] [u] LT';
81 default:
82 return '[prošli] dddd [u] LT';
83 }
84 },
85 'sameElse' => 'L',
86 ],
87 'ordinal' => ':number.',
88 'months' => ['januar', 'februar', 'mart', 'april', 'maj', 'juni', 'juli', 'august', 'septembar', 'oktobar', 'novembar', 'decembar'],
89 'months_short' => ['jan.', 'feb.', 'mar.', 'apr.', 'maj.', 'jun.', 'jul.', 'aug.', 'sep.', 'okt.', 'nov.', 'dec.'],
90 'weekdays' => ['nedjelja', 'ponedjeljak', 'utorak', 'srijeda', 'četvrtak', 'petak', 'subota'],
91 'weekdays_short' => ['ned.', 'pon.', 'uto.', 'sri.', 'čet.', 'pet.', 'sub.'],
92 'weekdays_min' => ['ne', 'po', 'ut', 'sr', 'če', 'pe', 'su'],
93 'first_day_of_week' => 1,
94 'day_of_first_week_of_year' => 1,
95 'list' => [', ', ' i '],
96 'meridiem' => ['prijepodne', 'popodne'],
97];