<?php
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
\Symfony\Component\Translation\PluralizationRules::set(function ($number) {
return $number === 1 ? 0 : 1;
}, 'ug');
/*
* Authors:
* - Philippe Vaucher
* - Tsutomu Kuroda
* - yasinn
*/
return [
'year' => '??? ???|:count ???',
'month' => '??? ???|:count ???',
'week' => '??? ?????|:count ?????',
'day' => '??? ???|:count ???',
'hour' => '??? ?????|:count ?????',
'minute' => '??? ?????|:count ?????',
'second' => '????? ??????|:count ??????',
'ago' => ':time ?????',
'from_now' => ':time ?????',
'formats' => [
'LT' => 'HH:mm',
'LTS' => 'HH:mm:ss',
'L' => 'YYYY-MM-DD',
'LL' => 'YYYY-????M-??????D-????',
'LLL' => 'YYYY-????M-??????D-????? HH:mm',
'LLLL' => 'dddd? YYYY-????M-??????D-????? HH:mm',
],
'calendar' => [
'sameDay' => '[????? ?????] LT',
'nextDay' => '[???? ?????] LT',
'nextWeek' => '[???????] dddd [?????] LT',
'lastDay' => '[???????] LT',
'lastWeek' => '[????????] dddd [?????] LT',
'sameElse' => 'L',
],
'ordinal' => function ($number, $period) {
switch ($period) {
case 'd':
case 'D':
case 'DDD':
return $number.'-????';
case 'w':
case 'W':
return $number.'-?????';
default:
return $number;
}
},
'meridiem' => function ($hour, $minute) {
$time = $hour * 100 + $minute;
if ($time < 600) {
return '????? ????';
}
if ($time < 900) {
return '?????';
}
if ($time < 1130) {
return '?????? ?????';
}
if ($time < 1230) {
return '???';
}
if ($time < 1800) {
return '?????? ?????';
}
return '???';
},
'months' => ['??????', '??????', '????', '??????', '???', '?????', '?????', '???????', '????????', '????????', '???????', '???????'],
'months_short' => ['??????', '??????', '????', '??????', '???', '?????', '?????', '???????', '????????', '????????', '???????', '???????'],
'weekdays' => ['????????', '???????', '????????', '????????', '????????', '????', '?????'],
'weekdays_short' => ['??', '??', '??', '??', '??', '??', '??'],
'weekdays_min' => ['??', '??', '??', '??', '??', '??', '??'],
'first_day_of_week' => 1,
'day_of_first_week_of_year' => 1,
'list' => [', ', ' ?? '],
];
|