PHP Classes

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

Recommend this page to a friend!
  Classes of Hillary Kollan   Chatto PHP Websocket Chat System   vendor/nesbot/carbon/src/Carbon/Lang/cs.php   Download  
File: vendor/nesbot/carbon/src/Carbon/Lang/cs.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,140 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.
 */

/*
 * Authors:
 * - Philippe Vaucher
 * - Jakub Tesinsky
 * - Martin Suja
 * - Nikos Timiopulos
 * - Bohuslav Blín
 * - Tsutomu Kuroda
 * - tjku
 * - Lukas Svoboda
 * - Max Melentiev
 * - Juanito Fatas
 * - Akira Matsuda
 * - Christopher Dell
 * - Václav Pávek
 * - CodeSkills
 * - Tlapi
 * - newman101
 * - Petr Kadlec
 * - tommaskraus
 * - Karel Sommer (calvera)
 */
$za = function ($time) {
    return
'za '.strtr($time, [
       
'hodina' => 'hodinu',
       
'minuta' => 'minutu',
       
'sekunda' => 'sekundu',
    ]);
};

$pred = function ($time) {
   
$time = strtr($time, [
       
'hodina' => 'hodinou',
       
'minuta' => 'minutou',
       
'sekunda' => 'sekundou',
    ]);
   
$time = preg_replace('/hodiny?(?!\w)/', 'hodinami', $time);
   
$time = preg_replace('/minuty?(?!\w)/', 'minutami', $time);
   
$time = preg_replace('/sekundy?(?!\w)/', 'sekundami', $time);

    return
"p?ed $time";
};

return [
   
'year' => ':count rok|:count roky|:count let',
   
'y' => ':count rok|:count roky|:count let',
   
'a_year' => 'rok|:count roky|:count let',
   
'month' => ':count m?síc|:count m?síce|:count m?síc?',
   
'm' => ':count m?s.',
   
'a_month' => 'm?síc|:count m?síce|:count m?síc?',
   
'week' => ':count týden|:count týdny|:count týdn?',
   
'w' => ':count týd.',
   
'a_week' => 'týden|:count týdny|:count týdn?',
   
'day' => ':count den|:count dny|:count dní',
   
'd' => ':count den|:count dny|:count dní',
   
'a_day' => 'den|:count dny|:count dní',
   
'hour' => ':count hodina|:count hodiny|:count hodin',
   
'h' => ':count hod.',
   
'a_hour' => 'hodina|:count hodiny|:count hodin',
   
'minute' => ':count minuta|:count minuty|:count minut',
   
'min' => ':count min.',
   
'a_minute' => 'minuta|:count minuty|:count minut',
   
'second' => ':count sekunda|:count sekundy|:count sekund',
   
's' => ':count sek.',
   
'a_second' => 'pár sekund|:count sekundy|:count sekund',
   
'ago' => $pred,
   
'from_now' => $za,
   
'before' => $pred,
   
'after' => $za,
   
'first_day_of_week' => 1,
   
'day_of_first_week_of_year' => 4,
   
'months' => ['leden', 'únor', 'b?ezen', 'duben', 'kv?ten', '?erven', '?ervenec', 'srpen', 'zá?í', '?íjen', 'listopad', 'prosinec'],
   
'months_short' => ['led', 'úno', 'b?e', 'dub', 'kv?', '?vn', '?vc', 'srp', 'zá?', '?íj', 'lis', 'pro'],
   
'weekdays' => ['ned?le', 'pond?lí', 'úterý', 'st?eda', '?tvrtek', 'pátek', 'sobota'],
   
'weekdays_short' => ['ned', 'pon', 'úte', 'st?', '?tv', 'pát', 'sob'],
   
'weekdays_min' => ['ne', 'po', 'út', 'st', '?t', 'pá', 'so'],
   
'list' => [', ', ' a '],
   
'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',
    ],
   
'meridiem' => ['dopoledne', 'odpoledne'],
];