Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
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
/*
13
 * Authors:
14
 * - Josh Soref
15
 * - Alan Agius
16
 * - Erhan Gundogan
17
 * - François B
18
 * - JD Isaacks
19
 * - Murat Yüksel
20
 * - Baran Şengül
21
 * - Selami (selamialtin)
22
 * - TeomanBey
23
 */
24
return [
25
    'year' => ':count yıl',
26
    'a_year' => '{1}bir yıl|]1,Inf[:count yıl',
27
    'y' => ':county',
28
    'month' => ':count ay',
29
    'a_month' => '{1}bir ay|]1,Inf[:count ay',
30
    'm' => ':countay',
31
    'week' => ':count hafta',
32
    'a_week' => '{1}bir hafta|]1,Inf[:count hafta',
33
    'w' => ':counth',
34
    'day' => ':count gün',
35
    'a_day' => '{1}bir gün|]1,Inf[:count gün',
36
    'd' => ':countg',
37
    'hour' => ':count saat',
38
    'a_hour' => '{1}bir saat|]1,Inf[:count saat',
39
    'h' => ':countsa',
40
    'minute' => ':count dakika',
41
    'a_minute' => '{1}bir dakika|]1,Inf[:count dakika',
42
    'min' => ':countdk',
43
    'second' => ':count saniye',
44
    'a_second' => '{1}birkaç saniye|]1,Inf[:count saniye',
45
    's' => ':countsn',
46
    'ago' => ':time önce',
47
    'from_now' => ':time sonra',
48
    'after' => ':time sonra',
49
    'before' => ':time önce',
50
    'diff_now' => 'şimdi',
51
    'diff_today' => 'bugün',
52
    'diff_today_regexp' => 'bugün(?:\\s+saat)?',
53
    'diff_yesterday' => 'dün',
54
    'diff_tomorrow' => 'yarın',
55
    'diff_tomorrow_regexp' => 'yarın(?:\\s+saat)?',
56
    'diff_before_yesterday' => 'evvelsi gün',
57
    'diff_after_tomorrow' => 'öbür gün',
58
    'formats' => [
59
        'LT' => 'HH:mm',
60
        'LTS' => 'HH:mm:ss',
61
        'L' => 'DD.MM.YYYY',
62
        'LL' => 'D MMMM YYYY',
63
        'LLL' => 'D MMMM YYYY HH:mm',
64
        'LLLL' => 'dddd, D MMMM YYYY HH:mm',
65
    ],
66
    'calendar' => [
67
        'sameDay' => '[bugün saat] LT',
68
        'nextDay' => '[yarın saat] LT',
69
        'nextWeek' => '[gelecek] dddd [saat] LT',
70
        'lastDay' => '[dün] LT',
71
        'lastWeek' => '[geçen] dddd [saat] LT',
72
        'sameElse' => 'L',
73
    ],
74
    'ordinal' => function ($number, $period) {
75
        switch ($period) {
76
            case 'd':
77
            case 'D':
78
            case 'Do':
79
            case 'DD':
80
                return $number;
81
            default:
82
                if ($number === 0) {  // special case for zero
83
                    return "$number'ıncı";
84
                }
85
 
86
                static $suffixes = [
87
                    1 => '\'inci',
88
                    5 => '\'inci',
89
                    8 => '\'inci',
90
                    70 => '\'inci',
91
                    80 => '\'inci',
92
                    2 => '\'nci',
93
                    7 => '\'nci',
94
                    20 => '\'nci',
95
                    50 => '\'nci',
96
                    3 => '\'üncü',
97
                    4 => '\'üncü',
98
                    100 => '\'üncü',
99
                    6 => '\'ncı',
100
                    9 => '\'uncu',
101
                    10 => '\'uncu',
102
                    30 => '\'uncu',
103
                    60 => '\'ıncı',
104
                    90 => '\'ıncı',
105
                ];
106
 
107
                $lastDigit = $number % 10;
108
 
109
                return $number.($suffixes[$lastDigit] ?? $suffixes[$number % 100 - $lastDigit] ?? $suffixes[$number >= 100 ? 100 : -1] ?? '');
110
        }
111
    },
112
    'meridiem' => ['ÖÖ', 'ÖS', 'öö', 'ös'],
113
    'months' => ['Ocak', 'Şubat', 'Mart', 'Nisan', 'Mayıs', 'Haziran', 'Temmuz', 'Ağustos', 'Eylül', 'Ekim', 'Kasım', 'Aralık'],
114
    'months_short' => ['Oca', 'Åžub', 'Mar', 'Nis', 'May', 'Haz', 'Tem', 'AÄŸu', 'Eyl', 'Eki', 'Kas', 'Ara'],
115
    'weekdays' => ['Pazar', 'Pazartesi', 'Salı', 'Çarşamba', 'Perşembe', 'Cuma', 'Cumartesi'],
116
    'weekdays_short' => ['Paz', 'Pts', 'Sal', 'Çar', 'Per', 'Cum', 'Cts'],
117
    'weekdays_min' => ['Pz', 'Pt', 'Sa', 'Ça', 'Pe', 'Cu', 'Ct'],
118
    'first_day_of_week' => 1,
119
    'day_of_first_week_of_year' => 1,
120
    'list' => [', ', ' ve '],
121
];