PHP Classes

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

Recommend this page to a friend!
  Packages of OmDiaries   Laravel AI Email Assistant   vendor/nesbot/carbon/src/Carbon/Lang/sk.php   Download  
File: vendor/nesbot/carbon/src/Carbon/Lang/sk.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Laravel AI Email Assistant
Generate an email message with the OpenAI GPT API
Author: By
Last change:
Date: 6 months ago
Size: 5,079 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
 * - Martin Suja
 * - Tsutomu Kuroda
 * - tjku
 * - Max Melentiev
 * - Juanito Fatas
 * - Ivan Stana
 * - Akira Matsuda
 * - Christopher Dell
 * - James McKinney
 * - Enrique Vidal
 * - Simone Carletti
 * - Aaron Patterson
 * - Jozef Fulop
 * - Nicolás Hock Isaza
 * - Tom Hughes
 * - Simon Hürlimann (CyT)
 * - jofi
 * - Jakub ADAMEC
 * - Marek Adamický
 * - AlterwebStudio
 */

use Carbon\CarbonInterface;

$fromNow = function ($time) {
    return
'o '.strtr($time, [
           
'hodina' => 'hodinu',
           
'minúta' => 'minútu',
           
'sekunda' => 'sekundu',
        ]);
};

$ago = function ($time) {
   
$replacements = [
       
'/\bhodina\b/' => 'hodinou',
       
'/\bminúta\b/' => 'minútou',
       
'/\bsekunda\b/' => 'sekundou',
       
'/\bde?\b/u' => 'd?om',
       
'/\btý?de?\b/u' => 'tý?d?om',
       
'/\bmesiac\b/' => 'mesiacom',
       
'/\brok\b/' => 'rokom',
    ];

   
$replacementsPlural = [
       
'/\bhodiny\b/' => 'hodinami',
       
'/\bminúty\b/' => 'minútami',
       
'/\bsekundy\b/' => 'sekundami',
       
'/\bdni\b/' => 'd?ami',
       
'/\btý?dne\b/' => 'tý?d?ami',
       
'/\bmesiace\b/' => 'mesiacmi',
       
'/\broky\b/' => 'rokmi',
    ];

    foreach (
$replacements + $replacementsPlural as $pattern => $replacement) {
       
$time = preg_replace($pattern, $replacement, $time);
    }

    return
"pred $time";
};

return [
   
'year' => ':count rok|:count roky|:count rokov',
   
'a_year' => 'rok|:count roky|:count rokov',
   
'y' => ':count r',
   
'month' => ':count mesiac|:count mesiace|:count mesiacov',
   
'a_month' => 'mesiac|:count mesiace|:count mesiacov',
   
'm' => ':count m',
   
'week' => ':count tý?de?|:count tý?dne|:count tý?d?ov',
   
'a_week' => 'tý?de?|:count tý?dne|:count tý?d?ov',
   
'w' => ':count t',
   
'day' => ':count de?|:count dni|:count dní',
   
'a_day' => 'de?|:count dni|:count dní',
   
'd' => ':count d',
   
'hour' => ':count hodina|:count hodiny|:count hodín',
   
'a_hour' => 'hodina|:count hodiny|:count hodín',
   
'h' => ':count h',
   
'minute' => ':count minúta|:count minúty|:count minút',
   
'a_minute' => 'minúta|:count minúty|:count minút',
   
'min' => ':count min',
   
'second' => ':count sekunda|:count sekundy|:count sekúnd',
   
'a_second' => 'sekunda|:count sekundy|:count sekúnd',
   
's' => ':count s',
   
'millisecond' => ':count milisekunda|:count milisekundy|:count milisekúnd',
   
'a_millisecond' => 'milisekunda|:count milisekundy|:count milisekúnd',
   
'ms' => ':count ms',
   
'microsecond' => ':count mikrosekunda|:count mikrosekundy|:count mikrosekúnd',
   
'a_microsecond' => 'mikrosekunda|:count mikrosekundy|:count mikrosekúnd',
   
'µs' => ':count µs',

   
'ago' => $ago,
   
'from_now' => $fromNow,
   
'before' => ':time pred',
   
'after' => ':time po',

   
'hour_after' => ':count hodinu|:count hodiny|:count hodín',
   
'minute_after' => ':count minútu|:count minúty|:count minút',
   
'second_after' => ':count sekundu|:count sekundy|:count sekúnd',

   
'hour_before' => ':count hodinu|:count hodiny|:count hodín',
   
'minute_before' => ':count minútu|:count minúty|:count minút',
   
'second_before' => ':count sekundu|:count sekundy|:count sekúnd',

   
'first_day_of_week' => 1,
   
'day_of_first_week_of_year' => 4,
   
'list' => [', ', ' a '],
   
'diff_now' => 'teraz',
   
'diff_yesterday' => 'v?era',
   
'diff_tomorrow' => 'zajtra',
   
'formats' => [
       
'LT' => 'HH:mm',
       
'LTS' => 'HH:mm:ss',
       
'L' => 'DD.MM.YYYY',
       
'LL' => 'DD. MMMM YYYY',
       
'LLL' => 'D. M. HH:mm',
       
'LLLL' => 'dddd D. MMMM YYYY HH:mm',
    ],
   
'calendar' => [
       
'sameDay' => '[dnes o] LT',
       
'nextDay' => '[zajtra o] LT',
       
'lastDay' => '[v?era o] LT',
       
'nextWeek' => 'dddd [o] LT',
       
'lastWeek' => static function (CarbonInterface $date) {
            switch (
$date->dayOfWeek) {
                case
1:
                case
2:
                case
4:
                case
5:
                    return
'[minulý] dddd [o] LT'; //pondelok/utorok/?tvrtok/piatok
               
default:
                    return
'[minulá] dddd [o] LT';
            }
        },
       
'sameElse' => 'L',
    ],
   
'weekdays' => ['nede?a', 'pondelok', 'utorok', 'streda', '?tvrtok', 'piatok', 'sobota'],
   
'weekdays_short' => ['ned', 'pon', 'uto', 'str', '?tv', 'pia', 'sob'],
   
'weekdays_min' => ['ne', 'po', 'ut', 'st', '?t', 'pi', 'so'],
   
'months' => ['január', 'február', 'marec', 'apríl', 'máj', 'jún', 'júl', 'august', 'september', 'október', 'november', 'december'],
   
'months_short' => ['jan', 'feb', 'mar', 'apr', 'máj', 'jún', 'júl', 'aug', 'sep', 'okt', 'nov', 'dec'],
   
'meridiem' => ['dopoludnia', 'popoludní'],
];