<?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;
}, 'tg');
/*
* Authors:
* - Orif N. Jr
*/
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' => 'DD/MM/YYYY',
'LL' => 'D MMMM YYYY',
'LLL' => 'D MMMM YYYY HH:mm',
'LLLL' => 'dddd, D MMMM YYYY HH:mm',
],
'calendar' => [
'sameDay' => '[????? ?????] LT',
'nextDay' => '[????? ?????] LT',
'nextWeek' => 'dddd[?] [?????? ????? ?????] LT',
'lastDay' => '[????? ?????] LT',
'lastWeek' => 'dddd[?] [?????? ??????? ?????] LT',
'sameElse' => 'L',
],
'ordinal' => function ($number) {
if ($number === 0) { // special case for zero
return "$number-?nc?";
}
static $suffixes = [
0 => '-??',
1 => '-??',
2 => '-??',
3 => '-??',
4 => '-??',
5 => '-??',
6 => '-??',
7 => '-??',
8 => '-??',
9 => '-??',
10 => '-??',
12 => '-??',
13 => '-??',
20 => '-??',
30 => '-??',
40 => '-??',
50 => '-??',
60 => '-??',
70 => '-??',
80 => '-??',
90 => '-??',
100 => '-??',
];
return $number.($suffixes[$number] ?? $suffixes[$number % 10] ?? $suffixes[$number >= 100 ? 100 : -1] ?? '');
},
'meridiem' => function ($hour) {
if ($hour < 4) {
return '???';
}
if ($hour < 11) {
return '????';
}
if ($hour < 16) {
return '???';
}
if ($hour < 19) {
return '?????';
}
return '???';
},
'months' => ['?????', '??????', '????', '?????', '???', '???', '???', '??????', '???????', '??????', '?????', '??????'],
'months_short' => ['???', '???', '???', '???', '???', '???', '???', '???', '???', '???', '???', '???'],
'weekdays' => ['???????', '???????', '???????', '????????', '?????????', '?????', '?????'],
'weekdays_short' => ['???', '???', '???', '???', '???', '???', '???'],
'weekdays_min' => ['??', '??', '??', '??', '??', '??', '??'],
'first_day_of_week' => 1,
'day_of_first_week_of_year' => 1,
'list' => [', ', ' ?? '],
];
|