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
 * - monkeycon
15
 * - François B
16
 * - Jason Katz-Brown
17
 * - Konstantin Konev
18
 * - Chris Lam
19
 * - Serhan Apaydın
20
 * - Gary Lo
21
 * - JD Isaacks
22
 * - Chris Hemp
23
 * - shankesgk2
24
 * - Daniel Cheung (danvim)
25
 */
26
return [
27
    'year' => ':count:optional-space年',
28
    'y' => ':count:optional-space年',
29
    'month' => ':count:optional-space个月',
30
    'm' => ':count:optional-space个月',
31
    'week' => ':count:optional-space周',
32
    'w' => ':count:optional-space周',
33
    'day' => ':count:optional-space天',
34
    'd' => ':count:optional-space天',
35
    'hour' => ':count:optional-space小时',
36
    'h' => ':count:optional-space小时',
37
    'minute' => ':count:optional-space分钟',
38
    'min' => ':count:optional-space分钟',
39
    'second' => ':count:optional-space秒',
40
    'a_second' => '{1}几秒|]1,Inf[:count:optional-space秒',
41
    's' => ':count:optional-space秒',
42
    'ago' => ':time前',
43
    'from_now' => ':time后',
44
    'after' => ':time后',
45
    'before' => ':time前',
46
    'diff_now' => '现在',
47
    'diff_today' => '今天',
48
    'diff_yesterday' => '昨天',
49
    'diff_tomorrow' => '明天',
50
    'formats' => [
51
        'LT' => 'HH:mm',
52
        'LTS' => 'HH:mm:ss',
53
        'L' => 'YYYY/MM/DD',
54
        'LL' => 'YYYY年M月D日',
55
        'LLL' => 'YYYY年M月D日 HH:mm',
56
        'LLLL' => 'YYYY年M月D日dddd HH:mm',
57
    ],
58
    'calendar' => [
59
        'sameDay' => '[今天]LT',
60
        'nextDay' => '[明天]LT',
61
        'nextWeek' => '[下]ddddLT',
62
        'lastDay' => '[昨天]LT',
63
        'lastWeek' => '[上]ddddLT',
64
        'sameElse' => 'L',
65
    ],
66
    'ordinal' => function ($number, $period) {
67
        switch ($period) {
68
            case 'd':
69
            case 'D':
70
            case 'DDD':
71
                return $number.'日';
72
            case 'M':
73
                return $number.'月';
74
            case 'w':
75
            case 'W':
76
                return $number.'周';
77
            default:
78
                return $number;
79
        }
80
    },
81
    'meridiem' => function ($hour, $minute) {
82
        $time = $hour * 100 + $minute;
83
        if ($time < 600) {
84
            return '凌晨';
85
        }
86
        if ($time < 900) {
87
            return '早上';
88
        }
89
        if ($time < 1130) {
90
            return '上午';
91
        }
92
        if ($time < 1230) {
93
            return '中午';
94
        }
95
        if ($time < 1800) {
96
            return '下午';
97
        }
98
 
99
        return '晚上';
100
    },
101
    'months' => ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'],
102
    'months_short' => ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
103
    'weekdays' => ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'],
104
    'weekdays_short' => ['周日', '周一', '周二', '周三', '周四', '周五', '周六'],
105
    'weekdays_min' => ['日', '一', '二', '三', '四', '五', '六'],
106
    'first_day_of_week' => 1,
107
    'day_of_first_week_of_year' => 4,
108
    'list' => '',
109
];