| 148 |
lars |
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 |
// @codeCoverageIgnoreStart
|
|
|
13 |
use Symfony\Component\Translation\PluralizationRules;
|
|
|
14 |
|
|
|
15 |
if (class_exists('Symfony\\Component\\Translation\\PluralizationRules')) {
|
|
|
16 |
PluralizationRules::set(static function ($number) {
|
|
|
17 |
return (($number % 10 == 1) && ($number % 100 != 11)) ? 0 : ((($number % 10 >= 2) && ($number % 10 <= 4) && (($number % 100 < 10) || ($number % 100 >= 20))) ? 1 : 2);
|
|
|
18 |
}, 'sh');
|
|
|
19 |
}
|
|
|
20 |
// @codeCoverageIgnoreEnd
|
|
|
21 |
|
|
|
22 |
/*
|
|
|
23 |
* Authors:
|
|
|
24 |
* - Томица Кораћ
|
|
|
25 |
* - Enrique Vidal
|
|
|
26 |
* - Christopher Dell
|
|
|
27 |
* - dmilisic
|
|
|
28 |
* - danijel
|
|
|
29 |
* - Miroslav Matkovic (mikki021)
|
|
|
30 |
*/
|
|
|
31 |
return [
|
|
|
32 |
'diff_now' => 'sada',
|
|
|
33 |
'diff_yesterday' => 'juče',
|
|
|
34 |
'diff_tomorrow' => 'sutra',
|
|
|
35 |
'formats' => [
|
|
|
36 |
'LT' => 'HH:mm',
|
|
|
37 |
'LTS' => 'HH:mm:ss',
|
|
|
38 |
'L' => 'DD/MM/YYYY',
|
|
|
39 |
'LL' => 'MMMM D, YYYY',
|
|
|
40 |
'LLL' => 'DD MMM HH:mm',
|
|
|
41 |
'LLLL' => 'MMMM DD, YYYY HH:mm',
|
|
|
42 |
],
|
|
|
43 |
'year' => ':count godina|:count godine|:count godina',
|
|
|
44 |
'y' => ':count g.',
|
|
|
45 |
'month' => ':count mesec|:count meseca|:count meseci',
|
|
|
46 |
'm' => ':count m.',
|
|
|
47 |
'week' => ':count nedelja|:count nedelje|:count nedelja',
|
|
|
48 |
'w' => ':count n.',
|
|
|
49 |
'day' => ':count dan|:count dana|:count dana',
|
|
|
50 |
'd' => ':count d.',
|
|
|
51 |
'hour' => ':count sat|:count sata|:count sati',
|
|
|
52 |
'h' => ':count č.',
|
|
|
53 |
'minute' => ':count minut|:count minuta|:count minuta',
|
|
|
54 |
'min' => ':count min.',
|
|
|
55 |
'second' => ':count sekund|:count sekunde|:count sekundi',
|
|
|
56 |
's' => ':count s.',
|
|
|
57 |
'ago' => 'pre :time',
|
|
|
58 |
'from_now' => 'za :time',
|
|
|
59 |
'after' => 'nakon :time',
|
|
|
60 |
'before' => ':time raniјe',
|
|
|
61 |
'weekdays' => ['Nedelja', 'Ponedeljak', 'Utorak', 'Sreda', 'Četvrtak', 'Petak', 'Subota'],
|
|
|
62 |
'weekdays_short' => ['Ned', 'Pon', 'Uto', 'Sre', 'Čet', 'Pet', 'Sub'],
|
|
|
63 |
'weekdays_min' => ['Ned', 'Pon', 'Uto', 'Sre', 'Čet', 'Pet', 'Sub'],
|
|
|
64 |
'months' => ['Januar', 'Februar', 'Mart', 'April', 'Maj', 'Jun', 'Jul', 'Avgust', 'Septembar', 'Oktobar', 'Novembar', 'Decembar'],
|
|
|
65 |
'months_short' => ['Jan', 'Feb', 'Mar', 'Apr', 'Maj', 'Jun', 'Jul', 'Avg', 'Sep', 'Okt', 'Nov', 'Dec'],
|
|
|
66 |
'list' => [', ', ' i '],
|
|
|
67 |
'meridiem' => ['pre podne', 'po podne'],
|
|
|
68 |
];
|