PHP Classes

File: vendor/nesbot/carbon/src/Carbon/Lang/tg.php

Recommend this page to a friend!
  Classes of Hillary Kollan   Chatto PHP Websocket Chat System   vendor/nesbot/carbon/src/Carbon/Lang/tg.php   Download  
File: vendor/nesbot/carbon/src/Carbon/Lang/tg.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: Chatto PHP Websocket Chat System
Websocket based chat system using Ratchet library
Author: By
Last change:
Date: 3 years ago
Size: 3,368 bytes
 

Contents

Class file image Download
<?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' => [', ', ' ?? '],
];