<?php 
 
/** 
 * This file is part of the Carbon package. 
 * 
 * (c) Brian Nesbitt <[email protected]> 
 * 
 * For the full copyright and license information, please view the LICENSE 
 * file that was distributed with this source code. 
 */ 
 
/* 
 * Authors: 
 * - Bari Badamshin 
 * - Jørn Ølmheim 
 * - François B 
 * - Tim Fish 
 * - ????????? ???? (imac) 
 * - Serhan Apayd?n 
 * - RomeroMsk 
 * - vsn4ik 
 * - JD Isaacks 
 * - Bari Badamshin 
 * - Jørn Ølmheim 
 * - François B 
 * - ????????? ???? (imac) 
 * - Serhan Apayd?n 
 * - RomeroMsk 
 * - vsn4ik 
 * - JD Isaacks 
 * - Fellzo 
 * - andrey-helldar 
 * - Pavel Skripkin (psxx) 
 * - AlexWalkerson 
 * - Vladislav UnsealedOne 
 */ 
$transformDiff = function ($input) { 
    return strtr($input, [ 
        '??????' => '??????', 
        '???????' => '???????', 
        '??????' => '??????', 
    ]); 
}; 
 
return [ 
    'year' => ':count ???|:count ????|:count ???', 
    'y' => ':count ?.|:count ?.|:count ?.', 
    'a_year' => '{1}???|:count ???|:count ????|:count ???', 
    'month' => ':count ?????|:count ??????|:count ???????', 
    'm' => ':count ???.', 
    'a_month' => '{1}?????|:count ?????|:count ??????|:count ???????', 
    'week' => ':count ??????|:count ??????|:count ??????', 
    'w' => ':count ???.', 
    'a_week' => '{1}??????|:count ??????|:count ??????|:count ??????', 
    'day' => ':count ????|:count ???|:count ????', 
    'd' => ':count ?.', 
    'a_day' => '{1}????|:count ????|:count ???|:count ????', 
    'hour' => ':count ???|:count ????|:count ?????', 
    'h' => ':count ?.', 
    'a_hour' => '{1}???|:count ???|:count ????|:count ?????', 
    'minute' => ':count ??????|:count ??????|:count ?????', 
    'min' => ':count ???.', 
    'a_minute' => '{1}??????|:count ??????|:count ??????|:count ?????', 
    'second' => ':count ???????|:count ???????|:count ??????', 
    's' => ':count ???.', 
    'a_second' => '{1}????????? ??????|:count ???????|:count ???????|:count ??????', 
    'ago' => function ($time) use ($transformDiff) { 
        return $transformDiff($time).' ?????'; 
    }, 
    'from_now' => function ($time) use ($transformDiff) { 
        return '????? '.$transformDiff($time); 
    }, 
    'after' => function ($time) use ($transformDiff) { 
        return $transformDiff($time).' ?????'; 
    }, 
    'before' => function ($time) use ($transformDiff) { 
        return $transformDiff($time).' ??'; 
    }, 
    'formats' => [ 
        'LT' => 'H:mm', 
        'LTS' => 'H:mm:ss', 
        'L' => 'DD.MM.YYYY', 
        'LL' => 'D MMMM YYYY ?.', 
        'LLL' => 'D MMMM YYYY ?., H:mm', 
        'LLLL' => 'dddd, D MMMM YYYY ?., H:mm', 
    ], 
    'calendar' => [ 
        'sameDay' => '[???????, ?] LT', 
        'nextDay' => '[??????, ?] LT', 
        'nextWeek' => function (\Carbon\CarbonInterface $current, \Carbon\CarbonInterface $other) { 
            if ($current->week !== $other->week) { 
                switch ($current->dayOfWeek) { 
                    case 0: 
                        return '[? ?????????] dddd, [?] LT'; 
                    case 1: 
                    case 2: 
                    case 4: 
                        return '[? ?????????] dddd, [?] LT'; 
                    case 3: 
                    case 5: 
                    case 6: 
                        return '[? ?????????] dddd, [?] LT'; 
                } 
            } 
 
            if ($current->dayOfWeek === 2) { 
                return '[??] dddd, [?] LT'; 
            } 
 
            return '[?] dddd, [?] LT'; 
        }, 
        'lastDay' => '[?????, ?] LT', 
        'lastWeek' => function (\Carbon\CarbonInterface $current, \Carbon\CarbonInterface $other) { 
            if ($current->week !== $other->week) { 
                switch ($current->dayOfWeek) { 
                    case 0: 
                        return '[? ???????] dddd, [?] LT'; 
                    case 1: 
                    case 2: 
                    case 4: 
                        return '[? ???????] dddd, [?] LT'; 
                    case 3: 
                    case 5: 
                    case 6: 
                        return '[? ???????] dddd, [?] LT'; 
                } 
            } 
 
            if ($current->dayOfWeek === 2) { 
                return '[??] dddd, [?] LT'; 
            } 
 
            return '[?] dddd, [?] LT'; 
        }, 
        'sameElse' => 'L', 
    ], 
    'ordinal' => function ($number, $period) { 
        switch ($period) { 
            case 'M': 
            case 'd': 
            case 'DDD': 
                return $number.'-?'; 
            case 'D': 
                return $number.'-??'; 
            case 'w': 
            case 'W': 
                return $number.'-?'; 
            default: 
                return $number; 
        } 
    }, 
    'meridiem' => function ($hour) { 
        if ($hour < 4) { 
            return '????'; 
        } 
        if ($hour < 12) { 
            return '????'; 
        } 
        if ($hour < 17) { 
            return '???'; 
        } 
 
        return '??????'; 
    }, 
    'months' => ['??????', '???????', '?????', '??????', '???', '????', '????', '???????', '????????', '???????', '??????', '???????'], 
    'months_standalone' => ['??????', '???????', '????', '??????', '???', '????', '????', '??????', '????????', '???????', '??????', '???????'], 
    'months_short' => ['???', '???', '???', '???', '???', '???', '???', '???', '???', '???', '???', '???'], 
    'months_short_standalone' => ['???', '???', '???', '???', '???', '???', '???', '???', '???', '???', '???', '???'], 
    'months_regexp' => '/DD?o?\.?(\[[^\[\]]*\]|\s)+MMMM?/', 
    'weekdays' => ['???????????', '???????????', '???????', '?????', '???????', '???????', '???????'], 
    'weekdays_standalone' => ['???????????', '???????????', '???????', '?????', '???????', '???????', '???????'], 
    'weekdays_short' => ['???', '???', '???', '???', '???', '???', '???'], 
    'weekdays_min' => ['??', '??', '??', '??', '??', '??', '??'], 
    'weekdays_regexp' => '/\[\s*(?|?)\s*((?:???????|?????????|???)\s*)?\]\s*dddd/', 
    'first_day_of_week' => 1, 
    'day_of_first_week_of_year' => 1, 
    'list' => [', ', ' ? '], 
]; 
 
 |