updated backend

This commit is contained in:
Torsten 2020-01-17 10:58:01 +01:00
parent 1fea0f4fe7
commit 11521c2339
3459 changed files with 72735 additions and 168535 deletions

View file

@ -1,7 +1,7 @@
{
"name": "nesbot/carbon",
"type": "library",
"description": "A simple API extension for DateTime.",
"description": "An API extension for DateTime that supports 281 different languages.",
"keywords": [
"date",
"time",
@ -18,19 +18,30 @@
"name": "Brian Nesbitt",
"email": "brian@nesbot.com",
"homepage": "http://nesbot.com"
},
{
"name": "kylekatarnls",
"homepage": "http://github.com/kylekatarnls"
}
],
"minimum-stability": "dev",
"bin": ["bin/carbon"],
"require": {
"php": ">=5.3.9",
"symfony/translation": "~2.6 || ~3.0 || ~4.0"
"php": "^7.1.8 || ^8.0",
"ext-json": "*",
"symfony/translation": "^3.4 || ^4.0 || ^5.0"
},
"require-dev": {
"friendsofphp/php-cs-fixer": "~2",
"phpunit/phpunit": "^4.8.35 || ^5.7"
"friendsofphp/php-cs-fixer": "^2.14 || ^3.0",
"kylekatarnls/multi-tester": "^1.1",
"phpmd/phpmd": "dev-php-7.1-compatibility",
"phpstan/phpstan": "^0.11",
"phpunit/phpunit": "^7.5 || ^8.0",
"squizlabs/php_codesniffer": "^3.4"
},
"autoload": {
"psr-4": {
"": "src/"
"Carbon\\": "src/Carbon/"
}
},
"autoload-dev": {
@ -39,18 +50,29 @@
}
},
"config": {
"process-timeout": 0,
"sort-packages": true
},
"scripts": {
"test": [
"@phpunit",
"@phpcs"
"@style-check"
],
"phpunit": "phpunit --verbose --coverage-clover=coverage.xml",
"style-check": [
"@phpcs",
"@phpstan",
"@phpmd"
],
"phpunit": "phpunit --verbose",
"phpcs": "php-cs-fixer fix -v --diff --dry-run",
"phpstan": "phpstan analyse --configuration phpstan.neon --level 3 src tests"
"phpstan": "phpstan analyse --configuration phpstan.neon --level 3 src tests",
"phpmd": "phpmd src text /phpmd.xml",
"phpdoc": "php phpdoc.php"
},
"extra": {
"branch-alias": {
"dev-master": "2.x-dev"
},
"laravel": {
"providers": [
"Carbon\\Laravel\\ServiceProvider"

View file

@ -1,14 +1,14 @@
# Carbon
[![Latest Stable Version](https://poser.pugx.org/nesbot/carbon/v/stable.png)](https://packagist.org/packages/nesbot/carbon)
[![Total Downloads](https://poser.pugx.org/nesbot/carbon/downloads.png)](https://packagist.org/packages/nesbot/carbon)
[![Build Status](https://travis-ci.org/briannesbitt/Carbon.svg?branch=master)](https://travis-ci.org/briannesbitt/Carbon)
[![StyleCI](https://styleci.io/repos/5724990/shield?style=flat)](https://styleci.io/repos/5724990)
[![codecov.io](https://codecov.io/github/briannesbitt/Carbon/coverage.svg?branch=master)](https://codecov.io/github/briannesbitt/Carbon?branch=master)
[![PHP-Eye](https://php-eye.com/badge/nesbot/carbon/tested.svg?style=flat)](https://php-eye.com/package/nesbot/carbon)
[![PHPStan](https://img.shields.io/badge/PHPStan-enabled-brightgreen.svg?style=flat)](https://github.com/phpstan/phpstan)
[![Latest Stable Version](https://img.shields.io/packagist/v/nesbot/carbon.svg?style=flat-square)](https://packagist.org/packages/nesbot/carbon)
[![Total Downloads](https://img.shields.io/packagist/dt/nesbot/carbon.svg?style=flat-square)](https://packagist.org/packages/nesbot/carbon)
[![Build Status](https://img.shields.io/travis/briannesbitt/Carbon/master.svg?style=flat-square)](https://travis-ci.org/briannesbitt/Carbon)
[![StyleCI](https://styleci.io/repos/5724990/shield?style=flat-square)](https://styleci.io/repos/5724990)
[![codecov.io](https://img.shields.io/codecov/c/github/briannesbitt/Carbon.svg?style=flat-square)](https://codecov.io/github/briannesbitt/Carbon?branch=master)
[![PHPStan](https://img.shields.io/badge/PHPStan-enabled-44CC11.svg?longCache=true&style=flat-square)](https://github.com/phpstan/phpstan)
[![Tidelift](https://tidelift.com/badges/github/briannesbitt/Carbon)](https://tidelift.com/subscription/pkg/packagist-nesbot-carbon?utm_source=packagist-nesbot-carbon&utm_medium=referral&utm_campaign=readme)
A simple PHP API extension for DateTime. [http://carbon.nesbot.com](http://carbon.nesbot.com)
An international PHP extension for DateTime. [http://carbon.nesbot.com](http://carbon.nesbot.com)
```php
use Carbon\Carbon;
@ -41,7 +41,11 @@ Carbon::setTestNow();
if (Carbon::now()->isWeekend()) {
echo 'Party!';
}
// Over 200 languages (and over 500 regional variants) supported:
echo Carbon::now()->subMinutes(2)->diffForHumans(); // '2 minutes ago'
echo Carbon::now()->subMinutes(2)->locale('zh_CN')->diffForHumans(); // '2分钟前'
echo Carbon::parse('2019-07-23 14:51')->isoFormat('LLLL'); // 'Tuesday, July 23, 2019 2:51 PM'
echo Carbon::parse('2019-07-23 14:51')->locale('fr_FR')->isoFormat('LLLL'); // 'mardi 23 juillet 2019 14:51'
// ... but also does 'from now', 'after' and 'before'
// rolling up to seconds, minutes, hours, days, months, years
@ -49,6 +53,8 @@ echo Carbon::now()->subMinutes(2)->diffForHumans(); // '2 minutes ago'
$daysSinceEpoch = Carbon::createFromTimestamp(0)->diffInDays();
```
[Get supported nesbot/carbon with the Tidelift Subscription](https://tidelift.com/subscription/pkg/packagist-nesbot-carbon?utm_source=packagist-nesbot-carbon&utm_medium=referral&utm_campaign=readme)
## Installation
### With Composer
@ -60,7 +66,7 @@ $ composer require nesbot/carbon
```json
{
"require": {
"nesbot/carbon": "~1.21"
"nesbot/carbon": "^2.16"
}
}
```
@ -78,11 +84,11 @@ printf("Now: %s", Carbon::now());
### Without Composer
Why are you not using [composer](http://getcomposer.org/)? Download [Carbon.php](https://github.com/briannesbitt/Carbon/blob/master/src/Carbon/Carbon.php) from the repo and save the file into your project path somewhere.
Why are you not using [composer](http://getcomposer.org/)? Download the Carbon [latest release](https://github.com/briannesbitt/Carbon/releases) and put the contents of the ZIP archive into a directory in your project. Then require the file `autoload.php` to get all classes and dependencies loaded on need.
```php
<?php
require 'path/to/Carbon.php';
require 'path-to-Carbon-directory/autoload.php';
use Carbon\Carbon;
@ -92,3 +98,36 @@ printf("Now: %s", Carbon::now());
## Docs
[http://carbon.nesbot.com/docs](http://carbon.nesbot.com/docs)
## Security contact information
To report a security vulnerability, please use the
[Tidelift security contact](https://tidelift.com/security).
Tidelift will coordinate the fix and disclosure.
## Credits
### Contributors
This project exists thanks to all the people who contribute.
<a href="https://github.com/briannesbitt/Carbon/graphs/contributors" target="_blank"><img src="https://opencollective.com/Carbon/contributors.svg?width=890&button=false" /></a>
### Translators
[Thanks to people helping us to translate Carbon in so many languages](https://carbon.nesbot.com/contribute/translators/)
### Backers
Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/Carbon#backer)]
<a href="https://opencollective.com/Carbon#backers" target="_blank"><img src="https://opencollective.com/Carbon/backers.svg?width=890"></a>
### Sponsors
Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/Carbon#sponsor)]
<a href="https://opencollective.com/Carbon/sponsor/0/website" target="_blank"><img src="https://opencollective.com/Carbon/sponsor/0/avatar.svg"></a>
<a href="https://opencollective.com/Carbon/sponsor/1/website" target="_blank"><img src="https://opencollective.com/Carbon/sponsor/1/avatar.svg"></a>
<a href="https://opencollective.com/Carbon/sponsor/2/website" target="_blank"><img src="https://opencollective.com/Carbon/sponsor/2/avatar.svg"></a>
<a href="https://opencollective.com/Carbon/sponsor/3/website" target="_blank"><img src="https://opencollective.com/Carbon/sponsor/3/avatar.svg"></a>
<a href="https://opencollective.com/Carbon/sponsor/4/website" target="_blank"><img src="https://opencollective.com/Carbon/sponsor/4/avatar.svg"></a>

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -1,6 +1,6 @@
<?php
/*
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
@ -8,7 +8,6 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Carbon\Exceptions;
use Exception;

View file

@ -1,6 +1,6 @@
<?php
/*
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
@ -9,23 +9,67 @@
* file that was distributed with this source code.
*/
return array(
'year' => ':count jaar|:count jare',
'y' => ':count jaar|:count jare',
/**
* Authors:
* - François B
* - JD Isaacks
* - Pierre du Plessis
*/
return [
'year' => ':count jaar',
'a_year' => '\'n jaar|:count jaar',
'y' => ':count j.',
'month' => ':count maand|:count maande',
'm' => ':count maand|:count maande',
'a_month' => '\'n maand|:count maande',
'm' => ':count maa.',
'week' => ':count week|:count weke',
'w' => ':count week|:count weke',
'a_week' => '\'n week|:count weke',
'w' => ':count w.',
'day' => ':count dag|:count dae',
'd' => ':count dag|:count dae',
'hour' => ':count uur|:count ure',
'h' => ':count uur|:count ure',
'a_day' => '\'n dag|:count dae',
'd' => ':count d.',
'hour' => ':count uur',
'a_hour' => '\'n uur|:count uur',
'h' => ':count u.',
'minute' => ':count minuut|:count minute',
'min' => ':count minuut|:count minute',
'a_minute' => '\'n minuut|:count minute',
'min' => ':count min.',
'second' => ':count sekond|:count sekondes',
's' => ':count sekond|:count sekondes',
'ago' => ':time terug',
'from_now' => ':time van nou af',
'a_second' => '\'n paar sekondes|:count sekondes',
's' => ':count s.',
'ago' => ':time gelede',
'from_now' => 'oor :time',
'after' => ':time na',
'before' => ':time voor',
);
'diff_now' => 'Nou',
'diff_yesterday' => 'Gister',
'diff_tomorrow' => 'Môre',
'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' => '[Vandag om] LT',
'nextDay' => '[Môre om] LT',
'nextWeek' => 'dddd [om] LT',
'lastDay' => '[Gister om] LT',
'lastWeek' => '[Laas] dddd [om] LT',
'sameElse' => 'L',
],
'ordinal' => function ($number) {
return $number.(($number === 1 || $number === 8 || $number >= 20) ? 'ste' : 'de');
},
'meridiem' => ['VM', 'NM'],
'months' => ['Januarie', 'Februarie', 'Maart', 'April', 'Mei', 'Junie', 'Julie', 'Augustus', 'September', 'Oktober', 'November', 'Desember'],
'months_short' => ['Jan', 'Feb', 'Mrt', 'Apr', 'Mei', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Des'],
'weekdays' => ['Sondag', 'Maandag', 'Dinsdag', 'Woensdag', 'Donderdag', 'Vrydag', 'Saterdag'],
'weekdays_short' => ['Son', 'Maa', 'Din', 'Woe', 'Don', 'Vry', 'Sat'],
'weekdays_min' => ['So', 'Ma', 'Di', 'Wo', 'Do', 'Vr', 'Sa'],
'first_day_of_week' => 1,
'day_of_first_week_of_year' => 4,
'list' => [', ', ' en '],
];

View file

@ -1,6 +1,6 @@
<?php
/*
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
@ -9,23 +9,81 @@
* file that was distributed with this source code.
*/
return array(
'year' => '{0}سنة|{1}سنة|{2}سنتين|[3,10]:count سنوات|[11,Inf]:count سنة',
'y' => '{0}سنة|{1}سنة|{2}سنتين|[3,10]:count سنوات|[11,Inf]:count سنة',
'month' => '{0}شهر|{1} شهر|{2}شهرين|[3,10]:count أشهر|[11,Inf]:count شهر',
'm' => '{0}شهر|{1} شهر|{2}شهرين|[3,10]:count أشهر|[11,Inf]:count شهر',
'week' => '{0}أسبوع|{1}أسبوع|{2}أسبوعين|[3,10]:count أسابيع|[11,Inf]:count أسبوع',
'w' => '{0}أسبوع|{1}أسبوع|{2}أسبوعين|[3,10]:count أسابيع|[11,Inf]:count أسبوع',
'day' => '{0}يوم|{1}يوم|{2}يومين|[3,10]:count أيام|[11,Inf] يوم',
'd' => '{0}يوم|{1}يوم|{2}يومين|[3,10]:count أيام|[11,Inf] يوم',
'hour' => '{0}ساعة|{1}ساعة|{2}ساعتين|[3,10]:count ساعات|[11,Inf]:count ساعة',
'h' => '{0}ساعة|{1}ساعة|{2}ساعتين|[3,10]:count ساعات|[11,Inf]:count ساعة',
'minute' => '{0}دقيقة|{1}دقيقة|{2}دقيقتين|[3,10]:count دقائق|[11,Inf]:count دقيقة',
'min' => '{0}دقيقة|{1}دقيقة|{2}دقيقتين|[3,10]:count دقائق|[11,Inf]:count دقيقة',
'second' => '{0}ثانية|{1}ثانية|{2}ثانيتين|[3,10]:count ثوان|[11,Inf]:count ثانية',
's' => '{0}ثانية|{1}ثانية|{2}ثانيتين|[3,10]:count ثوان|[11,Inf]:count ثانية',
/*
* Authors:
* - Atef Ben Ali (atefBB)
* - Ibrahim AshShohail
* - MLTDev
* - Mohamed Sabil (mohamedsabil83)
* - Yazan Alnugnugh (yazan-alnugnugh)
*/
$months = [
'يناير',
'فبراير',
'مارس',
'أبريل',
'مايو',
'يونيو',
'يوليو',
'أغسطس',
'سبتمبر',
'أكتوبر',
'نوفمبر',
'ديسمبر',
];
return [
'year' => implode('|', ['{0}:count سنة', '{1}سنة', '{2}سنتين', ']2,11[:count سنوات', ']10,Inf[:count سنة']),
'a_year' => implode('|', ['{0}:count سنة', '{1}سنة', '{2}سنتين', ']2,11[:count سنوات', ']10,Inf[:count سنة']),
'month' => implode('|', ['{0}:count شهر', '{1}شهر', '{2}شهرين', ']2,11[:count أشهر', ']10,Inf[:count شهر']),
'a_month' => implode('|', ['{0}:count شهر', '{1}شهر', '{2}شهرين', ']2,11[:count أشهر', ']10,Inf[:count شهر']),
'week' => implode('|', ['{0}:count أسبوع', '{1}أسبوع', '{2}أسبوعين', ']2,11[:count أسابيع', ']10,Inf[:count أسبوع']),
'a_week' => implode('|', ['{0}:count أسبوع', '{1}أسبوع', '{2}أسبوعين', ']2,11[:count أسابيع', ']10,Inf[:count أسبوع']),
'day' => implode('|', ['{0}:count يوم', '{1}يوم', '{2}يومين', ']2,11[:count أيام', ']10,Inf[:count يوم']),
'a_day' => implode('|', ['{0}:count يوم', '{1}يوم', '{2}يومين', ']2,11[:count أيام', ']10,Inf[:count يوم']),
'hour' => implode('|', ['{0}:count ساعة', '{1}ساعة', '{2}ساعتين', ']2,11[:count ساعات', ']10,Inf[:count ساعة']),
'a_hour' => implode('|', ['{0}:count ساعة', '{1}ساعة', '{2}ساعتين', ']2,11[:count ساعات', ']10,Inf[:count ساعة']),
'minute' => implode('|', ['{0}:count دقيقة', '{1}دقيقة', '{2}دقيقتين', ']2,11[:count دقائق', ']10,Inf[:count دقيقة']),
'a_minute' => implode('|', ['{0}:count دقيقة', '{1}دقيقة', '{2}دقيقتين', ']2,11[:count دقائق', ']10,Inf[:count دقيقة']),
'second' => implode('|', ['{0}:count ثانية', '{1}ثانية', '{2}ثانيتين', ']2,11[:count ثواني', ']10,Inf[:count ثانية']),
'a_second' => implode('|', ['{0}:count ثانية', '{1}ثانية', '{2}ثانيتين', ']2,11[:count ثواني', ']10,Inf[:count ثانية']),
'ago' => 'منذ :time',
'from_now' => ':time من الآن',
'after' => 'بعد :time',
'before' => 'قبل :time',
);
'diff_now' => 'الآن',
'diff_yesterday' => 'أمس',
'diff_tomorrow' => 'غداً',
'diff_before_yesterday' => 'قبل الأمس',
'diff_after_tomorrow' => 'بعد غد',
'period_recurrences' => implode('|', ['{0}مرة', '{1}مرة', '{2}:count مرتين', ']2,11[:count مرات', ']10,Inf[:count مرة']),
'period_interval' => 'كل :interval',
'period_start_date' => 'من :date',
'period_end_date' => 'إلى :date',
'months' => $months,
'months_short' => $months,
'weekdays' => ['الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة', 'السبت'],
'weekdays_short' => ['أحد', 'اثنين', 'ثلاثاء', 'أربعاء', 'خميس', 'جمعة', 'سبت'],
'weekdays_min' => ['ح', 'اث', 'ثل', 'أر', 'خم', 'ج', 'س'],
'list' => ['، ', ' و '],
'first_day_of_week' => 6,
'day_of_first_week_of_year' => 1,
'formats' => [
'LT' => 'HH:mm',
'LTS' => 'HH:mm:ss',
'L' => 'D/M/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',
],
'meridiem' => ['ص', 'م'],
'weekend' => [5, 6],
];

View file

@ -1,6 +1,6 @@
<?php
/*
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
@ -9,20 +9,37 @@
* file that was distributed with this source code.
*/
return array(
/*
* Authors:
* - Josh Soref
* - Kunal Marwaha
* - François B
* - JD Isaacks
* - Orxan
* - Şəhriyar İmanov
* - Baran Şengül
*/
return [
'year' => ':count il',
'a_year' => '{1}bir il|]1,Inf[:count il',
'y' => ':count il',
'month' => ':count ay',
'a_month' => '{1}bir ay|]1,Inf[:count ay',
'm' => ':count ay',
'week' => ':count həftə',
'w' => ':count həftə',
'a_week' => '{1}bir həftə|]1,Inf[:count həftə',
'w' => ':count h.',
'day' => ':count gün',
'd' => ':count gün',
'a_day' => '{1}bir gün|]1,Inf[:count gün',
'd' => ':count g.',
'hour' => ':count saat',
'a_hour' => '{1}bir saat|]1,Inf[:count saat',
'h' => ':count saat',
'minute' => ':count dəqiqə',
'minute' => ':count d.',
'a_minute' => '{1}bir dəqiqə|]1,Inf[:count dəqiqə',
'min' => ':count dəqiqə',
'second' => ':count saniyə',
'second' => ':count san.',
'a_second' => '{1}birneçə saniyə|]1,Inf[:count saniyə',
's' => ':count saniyə',
'ago' => ':time əvvəl',
'from_now' => ':time sonra',
@ -37,4 +54,72 @@ return array(
'period_interval' => 'hər :interval',
'period_start_date' => ':date tarixindən başlayaraq',
'period_end_date' => ':date tarixinədək',
);
'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' => '[bugün saat] LT',
'nextDay' => '[sabah saat] LT',
'nextWeek' => '[gələn həftə] dddd [saat] LT',
'lastDay' => '[dünən] LT',
'lastWeek' => '[keçən həftə] dddd [saat] LT',
'sameElse' => 'L',
],
'ordinal' => function ($number) {
if ($number === 0) { // special case for zero
return "$number-ıncı";
}
static $suffixes = [
1 => '-inci',
5 => '-inci',
8 => '-inci',
70 => '-inci',
80 => '-inci',
2 => '-nci',
7 => '-nci',
20 => '-nci',
50 => '-nci',
3 => '-üncü',
4 => '-üncü',
100 => '-üncü',
6 => '-ncı',
9 => '-uncu',
10 => '-uncu',
30 => '-uncu',
60 => '-ıncı',
90 => '-ıncı',
];
$lastDigit = $number % 10;
return $number.($suffixes[$lastDigit] ?? $suffixes[$number % 100 - $lastDigit] ?? $suffixes[$number >= 100 ? 100 : -1] ?? '');
},
'meridiem' => function ($hour) {
if ($hour < 4) {
return 'gecə';
}
if ($hour < 12) {
return 'səhər';
}
if ($hour < 17) {
return 'gündüz';
}
return 'axşam';
},
'months' => ['yanvar', 'fevral', 'mart', 'aprel', 'may', 'iyun', 'iyul', 'avqust', 'sentyabr', 'oktyabr', 'noyabr', 'dekabr'],
'months_short' => ['yan', 'fev', 'mar', 'apr', 'may', 'iyn', 'iyl', 'avq', 'sen', 'okt', 'noy', 'dek'],
'months_standalone' => ['Yanvar', 'Fevral', 'Mart', 'Aprel', 'May', 'İyun', 'İyul', 'Avqust', 'Sentyabr', 'Oktyabr', 'Noyabr', 'Dekabr'],
'weekdays' => ['bazar', 'bazar ertəsi', 'çərşənbə axşamı', 'çərşənbə', 'cümə axşamı', 'cümə', 'şənbə'],
'weekdays_short' => ['baz', 'bze', 'çax', 'çər', 'cax', 'cüm', 'şən'],
'weekdays_min' => ['bz', 'be', 'ça', 'çə', 'ca', 'cü', 'şə'],
'first_day_of_week' => 1,
'day_of_first_week_of_year' => 1,
'list' => [', ', ' və '],
];

View file

@ -1,6 +1,6 @@
<?php
/*
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
@ -9,23 +9,99 @@
* file that was distributed with this source code.
*/
return array(
/**
* Authors:
* - Josh Soref
* - François B
* - Serhan Apaydın
* - JD Isaacks
* - Glavić
*/
return [
'year' => ':count година|:count години',
'a_year' => 'година|:count години',
'y' => ':count година|:count години',
'month' => ':count месец|:count месеца',
'a_month' => 'месец|:count месеца',
'm' => ':count месец|:count месеца',
'week' => ':count седмица|:count седмици',
'a_week' => 'седмица|:count седмици',
'w' => ':count седмица|:count седмици',
'day' => ':count ден|:count дни',
'a_day' => 'ден|:count дни',
'd' => ':count ден|:count дни',
'hour' => ':count час|:count часа',
'a_hour' => 'час|:count часа',
'h' => ':count час|:count часа',
'minute' => ':count минута|:count минути',
'a_minute' => 'минута|:count минути',
'min' => ':count минута|:count минути',
'second' => ':count секунда|:count секунди',
'a_second' => 'няколко секунди|:count секунди',
's' => ':count секунда|:count секунди',
'ago' => 'преди :time',
'from_now' => ':time от сега',
'from_now' => 'след :time',
'after' => 'след :time',
'before' => 'преди :time',
);
'diff_now' => 'сега',
'diff_yesterday' => 'вчера',
'diff_tomorrow' => 'утре',
'formats' => [
'LT' => 'H:mm',
'LTS' => 'H:mm:ss',
'L' => 'D.MM.YYYY',
'LL' => 'D MMMM YYYY',
'LLL' => 'D MMMM YYYY H:mm',
'LLLL' => 'dddd, D MMMM YYYY H:mm',
],
'calendar' => [
'sameDay' => '[Днес в] LT',
'nextDay' => '[Утре в] LT',
'nextWeek' => 'dddd [в] LT',
'lastDay' => '[Вчера в] LT',
'lastWeek' => function (\Carbon\CarbonInterface $current) {
switch ($current->dayOfWeek) {
case 0:
case 3:
case 6:
return '[В изминалата] dddd [в] LT';
default:
return '[В изминалия] dddd [в] LT';
}
},
'sameElse' => 'L',
],
'ordinal' => function ($number) {
$lastDigit = $number % 10;
$last2Digits = $number % 100;
if ($number === 0) {
return "$number-ев";
}
if ($last2Digits === 0) {
return "$number-ен";
}
if ($last2Digits > 10 && $last2Digits < 20) {
return "$number-ти";
}
if ($lastDigit === 1) {
return "$number-ви";
}
if ($lastDigit === 2) {
return "$number-ри";
}
if ($lastDigit === 7 || $lastDigit === 8) {
return "$number-ми";
}
return "$number-ти";
},
'months' => ['януари', 'февруари', 'март', 'април', 'май', 'юни', 'юли', 'август', 'септември', 'октомври', 'ноември', 'декември'],
'months_short' => ['яну', 'фев', 'мар', 'апр', 'май', 'юни', 'юли', 'авг', 'сеп', 'окт', 'ное', 'дек'],
'weekdays' => ['неделя', 'понеделник', 'вторник', 'сряда', 'четвъртък', 'петък', 'събота'],
'weekdays_short' => ['нед', 'пон', 'вто', 'сря', 'чет', 'пет', 'съб'],
'weekdays_min' => ['нд', 'пн', 'вт', 'ср', 'чт', 'пт', 'сб'],
'first_day_of_week' => 1,
'day_of_first_week_of_year' => 1,
'list' => [', ', ' и '],
'meridiem' => ['преди обяд', 'следобед'],
];

View file

@ -1,6 +1,6 @@
<?php
/*
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
@ -9,23 +9,40 @@
* file that was distributed with this source code.
*/
return array(
'year' => '১ বছর|:count বছর',
/**
* Authors:
* - Josh Soref
* - Shakib Hossain
* - Raju
* - Aniruddha Adhikary
* - JD Isaacks
* - Saiful Islam
* - Faisal Islam
*/
return [
'year' => ':count বছর',
'a_year' => 'এক বছর|:count বছর',
'y' => '১ বছর|:count বছর',
'month' => '১ মাস|:count মাস',
'month' => ':count মাস',
'a_month' => 'এক মাস|:count মাস',
'm' => '১ মাস|:count মাস',
'week' => '১ সপ্তাহ|:count সপ্তাহ',
'week' => ':count সপ্তাহ',
'a_week' => '১ সপ্তাহ|:count সপ্তাহ',
'w' => '১ সপ্তাহ|:count সপ্তাহ',
'day' => '১ দিন|:count দিন',
'day' => ':count দিন',
'a_day' => 'এক দিন|:count দিন',
'd' => '১ দিন|:count দিন',
'hour' => '১ ঘন্টা|:count ঘন্টা',
'hour' => ':count ঘন্টা',
'a_hour' => 'এক ঘন্টা|:count ঘন্টা',
'h' => '১ ঘন্টা|:count ঘন্টা',
'minute' => '১ মিনিট|:count মিনিট',
'minute' => ':count মিনিট',
'a_minute' => 'এক মিনিট|:count মিনিট',
'min' => '১ মিনিট|:count মিনিট',
'second' => '১ সেকেন্ড|:count সেকেন্ড',
'second' => ':count সেকেন্ড',
'a_second' => 'কয়েক সেকেন্ড|:count সেকেন্ড',
's' => '১ সেকেন্ড|:count সেকেন্ড',
'ago' => ':time পূর্বে',
'from_now' => 'এখন থেকে :time',
'ago' => ':time আগে',
'from_now' => ':time পরে',
'after' => ':time পরে',
'before' => ':time আগে',
'diff_now' => 'এখন',
@ -35,4 +52,48 @@ return array(
'period_interval' => 'প্রতি :interval',
'period_start_date' => ':date থেকে',
'period_end_date' => ':date পর্যন্ত',
);
'formats' => [
'LT' => 'A Oh:Om সময়',
'LTS' => 'A Oh:Om:Os সময়',
'L' => 'OD/OM/OY',
'LL' => 'OD MMMM OY',
'LLL' => 'OD MMMM OY, A Oh:Om সময়',
'LLLL' => 'dddd, OD MMMM OY, A Oh:Om সময়',
],
'calendar' => [
'sameDay' => '[আজ] LT',
'nextDay' => '[আগামীকাল] LT',
'nextWeek' => 'dddd, LT',
'lastDay' => '[গতকাল] LT',
'lastWeek' => '[গত] dddd, LT',
'sameElse' => 'L',
],
'meridiem' => function ($hour) {
if ($hour < 4) {
return 'রাত';
}
if ($hour < 10) {
return 'সকাল';
}
if ($hour < 17) {
return 'দুপুর';
}
if ($hour < 20) {
return 'বিকাল';
}
return 'রাত';
},
'months' => ['জানুয়ারী', 'ফেব্রুয়ারি', 'মার্চ', 'এপ্রিল', 'মে', 'জুন', 'জুলাই', 'আগস্ট', 'সেপ্টেম্বর', 'অক্টোবর', 'নভেম্বর', 'ডিসেম্বর'],
'months_short' => ['জানু', 'ফেব', 'মার্চ', 'এপ্র', 'মে', 'জুন', 'জুল', 'আগ', 'সেপ্ট', 'অক্টো', 'নভে', 'ডিসে'],
'weekdays' => ['রবিবার', 'সোমবার', 'মঙ্গলবার', 'বুধবার', 'বৃহস্পতিবার', 'শুক্রবার', 'শনিবার'],
'weekdays_short' => ['রবি', 'সোম', 'মঙ্গল', 'বুধ', 'বৃহস্পতি', 'শুক্র', 'শনি'],
'weekdays_min' => ['রবি', 'সোম', 'মঙ্গ', 'বুধ', 'বৃহঃ', 'শুক্র', 'শনি'],
'list' => [', ', ' এবং '],
'first_day_of_week' => 0,
'day_of_first_week_of_year' => 1,
'weekdays_standalone' => ['রবিবার', 'সোমবার', 'মঙ্গলবার', 'বুধবার', 'বৃহষ্পতিবার', 'শুক্রবার', 'শনিবার'],
'weekdays_min_standalone' => ['রঃ', 'সোঃ', 'মঃ', 'বুঃ', 'বৃঃ', 'শুঃ', 'শনি'],
'months_short_standalone' => ['জানুয়ারী', 'ফেব্রুয়ারী', 'মার্চ', 'এপ্রিল', 'মে', 'জুন', 'জুলাই', 'আগস্ট', 'সেপ্টেম্বর', 'অক্টোবর', 'নভেম্বর', 'ডিসেম্বর'],
'alt_numbers' => ['০', '১', '২', '৩', '৪', '৫', '৬', '৭', '৮', '৯'],
];

View file

@ -1,6 +1,6 @@
<?php
/*
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
@ -9,32 +9,102 @@
* file that was distributed with this source code.
*/
return array(
/*
* Authors:
* - mestremuten
* - François B
* - Marc Ordinas i Llopis
* - Pere Orga
* - JD Isaacks
* - Quentí
* - Víctor Díaz
* - Xavi
* - qcardona
*/
return [
'year' => ':count any|:count anys',
'a_year' => 'un any|:count anys',
'y' => ':count any|:count anys',
'month' => ':count mes|:count mesos',
'a_month' => 'un mes|:count mesos',
'm' => ':count mes|:count mesos',
'week' => ':count setmana|:count setmanes',
'a_week' => 'una setmana|:count setmanes',
'w' => ':count setmana|:count setmanes',
'day' => ':count dia|:count dies',
'd' => ':count dia|:count dies',
'a_day' => 'un dia|:count dies',
'd' => ':count d',
'hour' => ':count hora|:count hores',
'h' => ':count hora|:count hores',
'a_hour' => 'una hora|:count hores',
'h' => ':count h',
'minute' => ':count minut|:count minuts',
'min' => ':count minut|:count minuts',
'a_minute' => 'un minut|:count minuts',
'min' => ':count min',
'second' => ':count segon|:count segons',
's' => ':count segon|:count segons',
'a_second' => 'uns segons|:count segons',
's' => ':count s',
'ago' => 'fa :time',
'from_now' => 'd\'aquí :time',
'from_now' => 'd\'aquí a :time',
'after' => ':time després',
'before' => ':time abans',
'diff_now' => 'ara mateix',
'diff_yesterday' => 'ahir',
'diff_tomorrow' => 'demà',
'diff_before_yesterday' => "abans d'ahir",
'diff_before_yesterday' => 'abans d\'ahir',
'diff_after_tomorrow' => 'demà passat',
'period_recurrences' => ':count cop|:count cops',
'period_interval' => 'cada :interval',
'period_start_date' => 'de :date',
'period_end_date' => 'fins a :date',
);
'formats' => [
'LT' => 'H:mm',
'LTS' => 'H:mm:ss',
'L' => 'DD/MM/YYYY',
'LL' => 'D MMMM [de] YYYY',
'LLL' => 'D MMMM [de] YYYY [a les] H:mm',
'LLLL' => 'dddd D MMMM [de] YYYY [a les] H:mm',
],
'calendar' => [
'sameDay' => function (\Carbon\CarbonInterface $current) {
return '[avui a '.($current->hour !== 1 ? 'les' : 'la').'] LT';
},
'nextDay' => function (\Carbon\CarbonInterface $current) {
return '[demà a '.($current->hour !== 1 ? 'les' : 'la').'] LT';
},
'nextWeek' => function (\Carbon\CarbonInterface $current) {
return 'dddd [a '.($current->hour !== 1 ? 'les' : 'la').'] LT';
},
'lastDay' => function (\Carbon\CarbonInterface $current) {
return '[ahir a '.($current->hour !== 1 ? 'les' : 'la').'] LT';
},
'lastWeek' => function (\Carbon\CarbonInterface $current) {
return '[el] dddd [passat a '.($current->hour !== 1 ? 'les' : 'la').'] LT';
},
'sameElse' => 'L',
],
'ordinal' => function ($number, $period) {
return $number.(
($period === 'w' || $period === 'W') ? 'a' : (
($number === 1) ? 'r' : (
($number === 2) ? 'n' : (
($number === 3) ? 'r' : (
($number === 4) ? 't' : 'è'
)
)
)
)
);
},
'months' => ['de gener', 'de febrer', 'de març', 'd\'abril', 'de maig', 'de juny', 'de juliol', 'd\'agost', 'de setembre', 'd\'octubre', 'de novembre', 'de desembre'],
'months_standalone' => ['gener', 'febrer', 'març', 'abril', 'maig', 'juny', 'juliol', 'agost', 'setembre', 'octubre', 'novembre', 'desembre'],
'months_short' => ['gen.', 'febr.', 'març', 'abr.', 'maig', 'juny', 'jul.', 'ag.', 'set.', 'oct.', 'nov.', 'des.'],
'months_regexp' => '/D[oD]?[\s,]+MMMM?/',
'weekdays' => ['diumenge', 'dilluns', 'dimarts', 'dimecres', 'dijous', 'divendres', 'dissabte'],
'weekdays_short' => ['dg.', 'dl.', 'dt.', 'dc.', 'dj.', 'dv.', 'ds.'],
'weekdays_min' => ['dg', 'dl', 'dt', 'dc', 'dj', 'dv', 'ds'],
'first_day_of_week' => 1,
'day_of_first_week_of_year' => 4,
'list' => [', ', ' i '],
'meridiem' => ['a. m.', 'p. m.'],
'months_short_standalone' => ['gen.', 'febr.', 'març', 'abr.', 'maig', 'juny', 'jul.', 'ag.', 'set.', 'oct.', 'nov.', 'des.'],
];

View file

@ -1,6 +1,6 @@
<?php
/*
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
@ -9,23 +9,102 @@
* file that was distributed with this source code.
*/
return array(
/*
* 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í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ý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í',
'hour' => ':count hodinu|:count hodiny|:count hodin',
'h' => ':count hodinu|:count hodiny|:count hodin',
'minute' => ':count minutu|:count minuty|:count minut',
'min' => ':count minutu|:count minuty|:count minut',
'second' => ':count sekundu|:count sekundy|:count sekund',
's' => ':count sekundu|:count sekundy|:count sekund',
'ago' => ':time nazpět',
'from_now' => 'za :time',
'after' => ':time později',
'before' => ':time předtím',
);
'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',
'month_ago' => ':count měsícem|:count měsíci|:count měsíci',
'a_month_ago' => 'měsícem|:count měsíci|:count měsíci',
'day_ago' => ':count dnem|:count dny|:count dny',
'a_day_ago' => 'dnem|:count dny|:count dny',
'week_ago' => ':count týdnem|:count týdny|:count týdny',
'a_week_ago' => 'týdnem|:count týdny|:count týdny',
'year_ago' => ':count rokem|:count roky|:count lety',
'y_ago' => ':count rok.|:count rok.|:count let.',
'a_year_ago' => 'rokem|:count roky|:count lety',
'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 '],
'diff_now' => 'nyní',
'diff_yesterday' => 'včera',
'diff_tomorrow' => 'zítra',
'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'],
];

View file

@ -1,6 +1,6 @@
<?php
/*
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
@ -9,23 +9,68 @@
* file that was distributed with this source code.
*/
return array(
/**
* Authors:
* - Rune Mønnike
* - François B
* - codenhagen
* - JD Isaacks
* - Jens Herlevsen
* - Ulrik McArdle (mcardle)
* - Frederik Sauer (FrittenKeeZ)
*/
return [
'year' => ':count år|:count år',
'a_year' => 'et år|:count år',
'y' => ':count år|:count år',
'month' => ':count måned|:count måneder',
'm' => ':count måned|:count måneder',
'a_month' => 'en måned|:count måneder',
'm' => ':count mdr.',
'week' => ':count uge|:count uger',
'w' => ':count uge|:count uger',
'a_week' => 'en uge|:count uger',
'w' => ':count u.',
'day' => ':count dag|:count dage',
'd' => ':count dag|:count dage',
'a_day' => ':count dag|:count dage',
'd' => ':count d.',
'hour' => ':count time|:count timer',
'h' => ':count time|:count timer',
'a_hour' => 'en time|:count timer',
'h' => ':count t.',
'minute' => ':count minut|:count minutter',
'min' => ':count minut|:count minutter',
'a_minute' => 'et minut|:count minutter',
'min' => ':count min.',
'second' => ':count sekund|:count sekunder',
's' => ':count sekund|:count sekunder',
'a_second' => 'få sekunder|:count sekunder',
's' => ':count s.',
'ago' => ':time siden',
'from_now' => 'om :time',
'after' => ':time efter',
'before' => ':time før',
);
'diff_now' => 'nu',
'diff_yesterday' => 'i går',
'diff_tomorrow' => 'i morgen',
'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.] D. MMMM YYYY [kl.] HH:mm',
],
'calendar' => [
'sameDay' => '[i dag kl.] LT',
'nextDay' => '[i morgen kl.] LT',
'nextWeek' => 'på dddd [kl.] LT',
'lastDay' => '[i går kl.] LT',
'lastWeek' => '[i] dddd[s kl.] LT',
'sameElse' => 'L',
],
'ordinal' => ':number.',
'months' => ['januar', 'februar', 'marts', 'april', 'maj', 'juni', 'juli', 'august', 'september', 'oktober', 'november', 'december'],
'months_short' => ['jan', 'feb', 'mar', 'apr', 'maj', 'jun', 'jul', 'aug', 'sep', 'okt', 'nov', 'dec'],
'weekdays' => ['søndag', 'mandag', 'tirsdag', 'onsdag', 'torsdag', 'fredag', 'lørdag'],
'weekdays_short' => ['søn', 'man', 'tir', 'ons', 'tor', 'fre', 'lør'],
'weekdays_min' => ['sø', 'ma', 'ti', 'on', 'to', 'fr', 'lø'],
'first_day_of_week' => 1,
'day_of_first_week_of_year' => 4,
'list' => [', ', ' og '],
];

View file

@ -1,6 +1,6 @@
<?php
/*
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
@ -9,21 +9,36 @@
* file that was distributed with this source code.
*/
return array(
/*
* Authors:
* - Michael Hohl
* - sheriffmarley
* - dennisoderwald
* - Timo
* - Karag2006
*/
return [
'year' => ':count Jahr|:count Jahre',
'y' => ':countJ|:countJ',
'a_year' => 'ein Jahr|:count Jahre',
'y' => ':count J.',
'month' => ':count Monat|:count Monate',
'm' => ':countMon|:countMon',
'a_month' => 'ein Monat|:count Monate',
'm' => ':count Mon.',
'week' => ':count Woche|:count Wochen',
'w' => ':countWo|:countWo',
'a_week' => 'eine Woche|:count Wochen',
'w' => ':count Wo.',
'day' => ':count Tag|:count Tage',
'd' => ':countTg|:countTg',
'a_day' => 'ein Tag|:count Tage',
'd' => ':count Tg.',
'hour' => ':count Stunde|:count Stunden',
'h' => ':countStd|:countStd',
'a_hour' => 'eine Stunde|:count Stunden',
'h' => ':count Std.',
'minute' => ':count Minute|:count Minuten',
'min' => ':countMin|:countMin',
'a_minute' => 'eine Minute|:count Minuten',
'min' => ':count Min.',
'second' => ':count Sekunde|:count Sekunden',
's' => ':countSek|:countSek',
'a_second' => 'ein paar Sekunden|:count Sekunden',
's' => ':count Sek.',
'ago' => 'vor :time',
'from_now' => 'in :time',
'after' => ':time später',
@ -37,10 +52,46 @@ return array(
'month_ago' => ':count Monat|:count Monaten',
'week_ago' => ':count Woche|:count Wochen',
'day_ago' => ':count Tag|:count Tagen',
'a_year_from_now' => 'ein Jahr|:count Jahren',
'a_month_from_now' => 'ein Monat|:count Monaten',
'a_week_from_now' => 'eine Woche|:count Wochen',
'a_day_from_now' => 'ein Tag|:count Tagen',
'a_year_ago' => 'ein Jahr|:count Jahren',
'a_month_ago' => 'ein Monat|:count Monaten',
'a_week_ago' => 'eine Woche|:count Wochen',
'a_day_ago' => 'ein Tag|:count Tagen',
'diff_now' => 'Gerade eben',
'diff_yesterday' => 'Gestern',
'diff_tomorrow' => 'Heute',
'diff_tomorrow' => 'Morgen',
'diff_before_yesterday' => 'Vorgestern',
'diff_after_tomorrow' => 'Übermorgen',
);
'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' => '[heute um] LT [Uhr]',
'nextDay' => '[morgen um] LT [Uhr]',
'nextWeek' => 'dddd [um] LT [Uhr]',
'lastDay' => '[gestern um] LT [Uhr]',
'lastWeek' => '[letzten] dddd [um] LT [Uhr]',
'sameElse' => 'L',
],
'months' => ['Januar', 'Februar', 'März', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember'],
'months_short' => ['Jan', 'Feb', 'Mär', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dez'],
'weekdays' => ['Sonntag', 'Montag', 'Dienstag', 'Mittwoch', 'Donnerstag', 'Freitag', 'Samstag'],
'weekdays_short' => ['So.', 'Mo.', 'Di.', 'Mi.', 'Do.', 'Fr.', 'Sa.'],
'weekdays_min' => ['So', 'Mo', 'Di', 'Mi', 'Do', 'Fr', 'Sa'],
'ordinal' => ':number.',
'first_day_of_week' => 1,
'day_of_first_week_of_year' => 4,
'list' => [', ', ' und '],
];

View file

@ -1,6 +1,6 @@
<?php
/*
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
@ -9,23 +9,78 @@
* file that was distributed with this source code.
*/
return array(
/**
* Authors:
* - Alessandro Di Felice
* - François B
* - Tim Fish
* - Gabriel Monteagudo
* - JD Isaacks
* - yiannisdesp
* - Ilias Kasmeridis (iliaskasm)
*/
return [
'year' => ':count χρόνος|:count χρόνια',
'y' => ':count χρόνος|:count χρόνια',
'a_year' => 'ένας χρόνος|:count χρόνια',
'y' => ':count χρ.',
'month' => ':count μήνας|:count μήνες',
'm' => ':count μήνας|:count μήνες',
'a_month' => 'ένας μήνας|:count μήνες',
'm' => ':count μήν.',
'week' => ':count εβδομάδα|:count εβδομάδες',
'w' => ':count εβδομάδα|:count εβδομάδες',
'a_week' => 'μια εβδομάδα|:count εβδομάδες',
'w' => ':count εβδ.',
'day' => ':count μέρα|:count μέρες',
'd' => ':count μέρα|:count μέρες',
'a_day' => 'μία μέρα|:count μέρες',
'd' => ':count μέρ.',
'hour' => ':count ώρα|:count ώρες',
'a_hour' => 'μία ώρα|:count ώρες',
'h' => ':count ώρα|:count ώρες',
'minute' => ':count λεπτό|:count λεπτά',
'min' => ':count λεπτό|:count λεπτά',
'a_minute' => 'ένα λεπτό|:count λεπτά',
'min' => ':count λεπ.',
'second' => ':count δευτερόλεπτο|:count δευτερόλεπτα',
's' => ':count δευτερόλεπτο|:count δευτερόλεπτα',
'ago' => 'πριν από :time',
'from_now' => 'σε :time από τώρα',
'a_second' => 'λίγα δευτερόλεπτα|:count δευτερόλεπτα',
's' => ':count δευ.',
'ago' => ':time πριν',
'from_now' => 'σε :time',
'after' => ':time μετά',
'before' => ':time πριν',
);
'diff_now' => 'τώρα',
'diff_yesterday' => 'χθες',
'diff_tomorrow' => 'αύριο',
'formats' => [
'LT' => 'h:mm A',
'LTS' => 'h:mm:ss A',
'L' => 'DD/MM/YYYY',
'LL' => 'D MMMM YYYY',
'LLL' => 'D MMMM YYYY h:mm A',
'LLLL' => 'dddd, D MMMM YYYY h:mm A',
],
'calendar' => [
'sameDay' => '[Σήμερα {}] LT',
'nextDay' => '[Αύριο {}] LT',
'nextWeek' => 'dddd [{}] LT',
'lastDay' => '[Χθες {}] LT',
'lastWeek' => function (\Carbon\CarbonInterface $current) {
switch ($current->dayOfWeek) {
case 6:
return '[το προηγούμενο] dddd [{}] LT';
default:
return '[την προηγούμενη] dddd [{}] LT';
}
},
'sameElse' => 'L',
],
'ordinal' => ':numberη',
'meridiem' => ['ΠΜ', 'ΜΜ', 'πμ', 'μμ'],
'months' => ['Ιανουαρίου', 'Φεβρουαρίου', 'Μαρτίου', 'Απριλίου', 'Μαΐου', 'Ιουνίου', 'Ιουλίου', 'Αυγούστου', 'Σεπτεμβρίου', 'Οκτωβρίου', 'Νοεμβρίου', 'Δεκεμβρίου'],
'months_standalone' => ['Ιανουάριος', 'Φεβρουάριος', 'Μάρτιος', 'Απρίλιος', 'Μάιος', 'Ιούνιος', 'Ιούλιος', 'Αύγουστος', 'Σεπτέμβριος', 'Οκτώβριος', 'Νοέμβριος', 'Δεκέμβριος'],
'months_regexp' => '/D[oD]?[\s,]+MMMM/',
'months_short' => ['Ιαν', 'Φεβ', 'Μαρ', 'Απρ', 'Μαϊ', 'Ιουν', 'Ιουλ', 'Αυγ', 'Σεπ', 'Οκτ', 'Νοε', 'Δεκ'],
'weekdays' => ['Κυριακή', 'Δευτέρα', 'Τρίτη', 'Τετάρτη', 'Πέμπτη', 'Παρασκευή', 'Σάββατο'],
'weekdays_short' => ['Κυρ', 'Δευ', 'Τρι', 'Τετ', 'Πεμ', 'Παρ', 'Σαβ'],
'weekdays_min' => ['Κυ', 'Δε', 'Τρ', 'Τε', 'Πε', 'Πα', 'Σα'],
'first_day_of_week' => 1,
'day_of_first_week_of_year' => 4,
'list' => [', ', ' και '],
];

View file

@ -1,6 +1,6 @@
<?php
/*
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
@ -9,21 +9,33 @@
* file that was distributed with this source code.
*/
return array(
'year' => ':count year|:count years',
'y' => ':countyr|:countyrs',
'month' => ':count month|:count months',
'm' => ':countmo|:countmos',
'week' => ':count week|:count weeks',
'w' => ':countw|:countw',
'day' => ':count day|:count days',
'd' => ':countd|:countd',
'hour' => ':count hour|:count hours',
'h' => ':counth|:counth',
'minute' => ':count minute|:count minutes',
'min' => ':countm|:countm',
'second' => ':count second|:count seconds',
's' => ':counts|:counts',
/*
* Authors:
* - Milos Sakovic
* - Paul
*/
return [
'year' => '{1}:count year|{0}:count years|]1,Inf[:count years',
'a_year' => '{1}a year|{0}:count years|]1,Inf[:count years',
'y' => '{1}:countyr|{0}:countyrs|]1,Inf[:countyrs',
'month' => '{1}:count month|{0}:count months|]1,Inf[:count months',
'a_month' => '{1}a month|{0}:count months|]1,Inf[:count months',
'm' => '{1}:countmo|{0}:countmos|]1,Inf[:countmos',
'week' => '{1}:count week|{0}:count weeks|]1,Inf[:count weeks',
'a_week' => '{1}a week|{0}:count weeks|]1,Inf[:count weeks',
'w' => ':countw',
'day' => '{1}:count day|{0}:count days|]1,Inf[:count days',
'a_day' => '{1}a day|{0}:count days|]1,Inf[:count days',
'd' => ':countd',
'hour' => '{1}:count hour|{0}:count hours|]1,Inf[:count hours',
'a_hour' => '{1}an hour|{0}:count hours|]1,Inf[:count hours',
'h' => ':counth',
'minute' => '{1}:count minute|{0}:count minutes|]1,Inf[:count minutes',
'a_minute' => '{1}a minute|{0}:count minutes|]1,Inf[:count minutes',
'min' => ':countm',
'second' => '{1}:count second|{0}:count seconds|]1,Inf[:count seconds',
'a_second' => '{1}a few seconds|{0}:count seconds|]1,Inf[:count seconds',
's' => ':counts',
'ago' => ':time ago',
'from_now' => ':time from now',
'after' => ':time after',
@ -33,8 +45,29 @@ return array(
'diff_tomorrow' => 'tomorrow',
'diff_before_yesterday' => 'before yesterday',
'diff_after_tomorrow' => 'after tomorrow',
'period_recurrences' => 'once|:count times',
'period_recurrences' => '{1}once|{0}:count times|]1,Inf[:count times',
'period_interval' => 'every :interval',
'period_start_date' => 'from :date',
'period_end_date' => 'to :date',
);
'months' => ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
'months_short' => ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
'weekdays' => ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
'weekdays_short' => ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'],
'weekdays_min' => ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
'ordinal' => function ($number) {
$lastDigit = $number % 10;
return $number.(
(~~($number % 100 / 10) === 1) ? 'th' : (
($lastDigit === 1) ? 'st' : (
($lastDigit === 2) ? 'nd' : (
($lastDigit === 3) ? 'rd' : 'th'
)
)
)
);
},
'list' => [', ', ' and '],
'first_day_of_week' => 0,
'day_of_first_week_of_year' => 1,
];

View file

@ -1,6 +1,6 @@
<?php
/*
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
@ -9,23 +9,65 @@
* file that was distributed with this source code.
*/
return array(
/**
* Authors:
* - Josh Soref
* - François B
* - Mia Nordentoft
* - JD Isaacks
*/
return [
'year' => ':count jaro|:count jaroj',
'y' => ':count jaro|:count jaroj',
'a_year' => 'jaro|:count jaroj',
'y' => ':count j.',
'month' => ':count monato|:count monatoj',
'm' => ':count monato|:count monatoj',
'a_month' => 'monato|:count monatoj',
'm' => ':count mo.',
'week' => ':count semajno|:count semajnoj',
'w' => ':count semajno|:count semajnoj',
'a_week' => 'semajno|:count semajnoj',
'w' => ':count sem.',
'day' => ':count tago|:count tagoj',
'd' => ':count tago|:count tagoj',
'a_day' => 'tago|:count tagoj',
'd' => ':count t.',
'hour' => ':count horo|:count horoj',
'h' => ':count horo|:count horoj',
'a_hour' => 'horo|:count horoj',
'h' => ':count h.',
'minute' => ':count minuto|:count minutoj',
'min' => ':count minuto|:count minutoj',
'a_minute' => 'minuto|:count minutoj',
'min' => ':count min.',
'second' => ':count sekundo|:count sekundoj',
's' => ':count sekundo|:count sekundoj',
'a_second' => 'sekundoj|:count sekundoj',
's' => ':count sek.',
'ago' => 'antaŭ :time',
'from_now' => 'je :time',
'from_now' => 'post :time',
'after' => ':time poste',
'before' => ':time antaŭe',
);
'diff_yesterday' => 'Hieraŭ',
'diff_tomorrow' => 'Morgaŭ',
'formats' => [
'LT' => 'HH:mm',
'LTS' => 'HH:mm:ss',
'L' => 'YYYY-MM-DD',
'LL' => 'D[-a de] MMMM, YYYY',
'LLL' => 'D[-a de] MMMM, YYYY HH:mm',
'LLLL' => 'dddd, [la] D[-a de] MMMM, YYYY HH:mm',
],
'calendar' => [
'sameDay' => '[Hodiaŭ je] LT',
'nextDay' => '[Morgaŭ je] LT',
'nextWeek' => 'dddd [je] LT',
'lastDay' => '[Hieraŭ je] LT',
'lastWeek' => '[pasinta] dddd [je] LT',
'sameElse' => 'L',
],
'ordinal' => ':numbera',
'meridiem' => ['a.t.m.', 'p.t.m.'],
'months' => ['januaro', 'februaro', 'marto', 'aprilo', 'majo', 'junio', 'julio', 'aŭgusto', 'septembro', 'oktobro', 'novembro', 'decembro'],
'months_short' => ['jan', 'feb', 'mar', 'apr', 'maj', 'jun', 'jul', 'aŭg', 'sep', 'okt', 'nov', 'dec'],
'weekdays' => ['dimanĉo', 'lundo', 'mardo', 'merkredo', 'ĵaŭdo', 'vendredo', 'sabato'],
'weekdays_short' => ['dim', 'lun', 'mard', 'merk', 'ĵaŭ', 'ven', 'sab'],
'weekdays_min' => ['di', 'lu', 'ma', 'me', 'ĵa', 've', 'sa'],
'first_day_of_week' => 1,
'day_of_first_week_of_year' => 1,
'list' => [', ', ' kaj '],
];

View file

@ -1,6 +1,6 @@
<?php
/*
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
@ -9,23 +9,47 @@
* file that was distributed with this source code.
*/
return array(
/**
* Authors:
* - Kunal Marwaha
* - kostas
* - François B
* - Tim Fish
* - Claire Coloma
* - Steven Heinrich
* - JD Isaacks
* - Raphael Amorim
* - Jorge Y. Castillo
* - Víctor Díaz
* - Diego
* - Sebastian Thierer
* - quinterocesar
* - Daniel Commesse Liévanos (danielcommesse)
*/
return [
'year' => ':count año|:count años',
'a_year' => 'un año|:count años',
'y' => ':count año|:count años',
'month' => ':count mes|:count meses',
'a_month' => 'un mes|:count meses',
'm' => ':count mes|:count meses',
'week' => ':count semana|:count semanas',
'w' => ':count semana|:count semanas',
'a_week' => 'una semana|:count semanas',
'w' => ':countsem',
'day' => ':count día|:count días',
'd' => ':count día|:count días',
'a_day' => 'un día|:count días',
'd' => ':countd',
'hour' => ':count hora|:count horas',
'h' => ':count hora|:count horas',
'a_hour' => 'una hora|:count horas',
'h' => ':counth',
'minute' => ':count minuto|:count minutos',
'min' => ':count minuto|:count minutos',
'a_minute' => 'un minuto|:count minutos',
'min' => ':countm',
'second' => ':count segundo|:count segundos',
's' => ':count segundo|:count segundos',
'a_second' => 'unos segundos|:count segundos',
's' => ':counts',
'ago' => 'hace :time',
'from_now' => 'dentro de :time',
'from_now' => 'en :time',
'after' => ':time después',
'before' => ':time antes',
'diff_now' => 'ahora mismo',
@ -33,4 +57,41 @@ return array(
'diff_tomorrow' => 'mañana',
'diff_before_yesterday' => 'antier',
'diff_after_tomorrow' => 'pasado mañana',
);
'formats' => [
'LT' => 'H:mm',
'LTS' => 'H:mm:ss',
'L' => 'DD/MM/YYYY',
'LL' => 'D [de] MMMM [de] YYYY',
'LLL' => 'D [de] MMMM [de] YYYY H:mm',
'LLLL' => 'dddd, D [de] MMMM [de] YYYY H:mm',
],
'calendar' => [
'sameDay' => function (\Carbon\CarbonInterface $current) {
return '[hoy a la'.($current->hour !== 1 ? 's' : '').'] LT';
},
'nextDay' => function (\Carbon\CarbonInterface $current) {
return '[mañana a la'.($current->hour !== 1 ? 's' : '').'] LT';
},
'nextWeek' => function (\Carbon\CarbonInterface $current) {
return 'dddd [a la'.($current->hour !== 1 ? 's' : '').'] LT';
},
'lastDay' => function (\Carbon\CarbonInterface $current) {
return '[ayer a la'.($current->hour !== 1 ? 's' : '').'] LT';
},
'lastWeek' => function (\Carbon\CarbonInterface $current) {
return '[el] dddd [pasado a la'.($current->hour !== 1 ? 's' : '').'] LT';
},
'sameElse' => 'L',
],
'months' => ['enero', 'febrero', 'marzo', 'abril', 'mayo', 'junio', 'julio', 'agosto', 'septiembre', 'octubre', 'noviembre', 'diciembre'],
'months_short' => ['ene', 'feb', 'mar', 'abr', 'may', 'jun', 'jul', 'ago', 'sep', 'oct', 'nov', 'dic'],
'mmm_suffix' => '.',
'ordinal' => ':numberº',
'weekdays' => ['domingo', 'lunes', 'martes', 'miércoles', 'jueves', 'viernes', 'sábado'],
'weekdays_short' => ['dom.', 'lun.', 'mar.', 'mié.', 'jue.', 'vie.', 'sáb.'],
'weekdays_min' => ['do', 'lu', 'ma', 'mi', 'ju', 'vi', 'sá'],
'first_day_of_week' => 1,
'day_of_first_week_of_year' => 4,
'list' => [', ', ' y '],
'meridiem' => ['a. m.', 'p. m.'],
];

View file

@ -1,6 +1,6 @@
<?php
/*
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
@ -9,7 +9,29 @@
* file that was distributed with this source code.
*/
return array(
/*
* Authors:
* - Philippe Vaucher
* - Andres Ivanov
* - Tsutomu Kuroda
* - tjku
* - Max Melentiev
* - Juanito Fatas
* - RM87
* - Akira Matsuda
* - Christopher Dell
* - Enrique Vidal
* - Simone Carletti
* - Aaron Patterson
* - Esko Lehtme
* - Mart Karu
* - Nicolás Hock Isaza
* - Kevin Valdek
* - Zahhar Kirillov
* - João Magalhães
* - Ingmar
*/
return [
'year' => ':count aasta|:count aastat',
'y' => ':count aasta|:count aastat',
'month' => ':count kuu|:count kuud',
@ -35,4 +57,34 @@ return array(
'hour_from_now' => ':count tunni',
'minute_from_now' => ':count minuti',
'second_from_now' => ':count sekundi',
);
'first_day_of_week' => 1,
'day_of_first_week_of_year' => 4,
'diff_now' => 'nüüd',
'diff_yesterday' => 'eile',
'diff_tomorrow' => 'homme',
'diff_before_yesterday' => 'üleeile',
'diff_after_tomorrow' => 'ülehomme',
'formats' => [
'LT' => 'HH:mm',
'LTS' => 'HH:mm:ss',
'L' => 'DD/MM/YYYY',
'LL' => 'DD. MMMM YYYY',
'LLL' => 'DD. MMMM YYYY HH:mm',
'LLLL' => 'dddd, DD. MMMM YYYY HH:mm',
],
'calendar' => [
'sameDay' => '[täna] LT',
'nextDay' => '[homme] LT',
'lastDay' => '[eile] LT',
'nextWeek' => 'dddd LT',
'lastWeek' => '[eelmine] dddd LT',
'sameElse' => 'L',
],
'months' => ['jaanuar', 'veebruar', 'märts', 'aprill', 'mai', 'juuni', 'juuli', 'august', 'september', 'oktoober', 'november', 'detsember'],
'months_short' => ['jaan', 'veebr', 'märts', 'apr', 'mai', 'juuni', 'juuli', 'aug', 'sept', 'okt', 'nov', 'dets'],
'weekdays' => ['pühapäev', 'esmaspäev', 'teisipäev', 'kolmapäev', 'neljapäev', 'reede', 'laupäev'],
'weekdays_short' => ['P', 'E', 'T', 'K', 'N', 'R', 'L'],
'weekdays_min' => ['P', 'E', 'T', 'K', 'N', 'R', 'L'],
'list' => [', ', ' ja '],
'meridiem' => ['enne lõunat', 'pärast lõunat'],
];

View file

@ -1,6 +1,6 @@
<?php
/*
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
@ -9,23 +9,58 @@
* file that was distributed with this source code.
*/
return array(
'year' => 'Urte 1|:count urte',
/**
* Authors:
* - Josh Soref
* - François B
* - JD Isaacks
*/
return [
'year' => 'urte bat|:count urte',
'y' => 'Urte 1|:count urte',
'month' => 'Hile 1|:count hile',
'month' => 'hilabete bat|:count hilabete',
'm' => 'Hile 1|:count hile',
'week' => 'Aste 1|:count aste',
'w' => 'Aste 1|:count aste',
'day' => 'Egun 1|:count egun',
'day' => 'egun bat|:count egun',
'd' => 'Egun 1|:count egun',
'hour' => 'Ordu 1|:count ordu',
'hour' => 'ordu bat|:count ordu',
'h' => 'Ordu 1|:count ordu',
'minute' => 'Minutu 1|:count minutu',
'minute' => 'minutu bat|:count minutu',
'min' => 'Minutu 1|:count minutu',
'second' => 'Segundu 1|:count segundu',
'second' => 'segundo batzuk|:count segundo',
's' => 'Segundu 1|:count segundu',
'ago' => 'Orain dela :time',
'ago' => 'duela :time',
'from_now' => ':time barru',
'after' => ':time geroago',
'before' => ':time lehenago',
);
'diff_now' => 'orain',
'diff_yesterday' => 'atzo',
'diff_tomorrow' => 'bihar',
'formats' => [
'LT' => 'HH:mm',
'LTS' => 'HH:mm:ss',
'L' => 'YYYY-MM-DD',
'LL' => 'YYYY[ko] MMMM[ren] D[a]',
'LLL' => 'YYYY[ko] MMMM[ren] D[a] HH:mm',
'LLLL' => 'dddd, YYYY[ko] MMMM[ren] D[a] HH:mm',
],
'calendar' => [
'sameDay' => '[gaur] LT[etan]',
'nextDay' => '[bihar] LT[etan]',
'nextWeek' => 'dddd LT[etan]',
'lastDay' => '[atzo] LT[etan]',
'lastWeek' => '[aurreko] dddd LT[etan]',
'sameElse' => 'L',
],
'ordinal' => ':number.',
'months' => ['urtarrila', 'otsaila', 'martxoa', 'apirila', 'maiatza', 'ekaina', 'uztaila', 'abuztua', 'iraila', 'urria', 'azaroa', 'abendua'],
'months_short' => ['urt.', 'ots.', 'mar.', 'api.', 'mai.', 'eka.', 'uzt.', 'abu.', 'ira.', 'urr.', 'aza.', 'abe.'],
'weekdays' => ['igandea', 'astelehena', 'asteartea', 'asteazkena', 'osteguna', 'ostirala', 'larunbata'],
'weekdays_short' => ['ig.', 'al.', 'ar.', 'az.', 'og.', 'ol.', 'lr.'],
'weekdays_min' => ['ig', 'al', 'ar', 'az', 'og', 'ol', 'lr'],
'first_day_of_week' => 1,
'day_of_first_week_of_year' => 1,
'list' => [', ', ' eta '],
'meridiem' => ['g', 'a'],
];

View file

@ -1,6 +1,6 @@
<?php
/*
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
@ -9,23 +9,72 @@
* file that was distributed with this source code.
*/
return array(
/*
* Authors:
* - Josh Soref
* - François B
* - Nasser Ghiasi
* - JD Isaacks
* - Hossein Jabbari
* - nimamo
* - hafezdivandari
* - Hassan Pezeshk (hpez)
*/
return [
'year' => ':count سال',
'a_year' => 'یک سال'.'|:count '.'سال',
'y' => ':count سال',
'month' => ':count ماه',
'a_month' => 'یک ماه'.'|:count '.'ماه',
'm' => ':count ماه',
'week' => ':count هفته',
'a_week' => 'یک هفته'.'|:count '.'هفته',
'w' => ':count هفته',
'day' => ':count روز',
'a_day' => 'یک روز'.'|:count '.'روز',
'd' => ':count روز',
'hour' => ':count ساعت',
'a_hour' => 'یک ساعت'.'|:count '.'ساعت',
'h' => ':count ساعت',
'minute' => ':count دقیقه',
'a_minute' => 'یک دقیقه'.'|:count '.'دقیقه',
'min' => ':count دقیقه',
'second' => ':count ثانیه',
's' => ':count ثانیه',
'ago' => ':time پیش',
'from_now' => ':time بعد',
'from_now' => ':time دیگر',
'after' => ':time پس از',
'before' => ':time پیش از',
);
'diff_now' => 'اکنون',
'diff_yesterday' => 'دیروز',
'diff_tomorrow' => 'فردا',
'formats' => [
'LT' => 'OH:Om',
'LTS' => 'OH:Om:Os',
'L' => 'OD/OM/OY',
'LL' => 'OD MMMM OY',
'LLL' => 'OD MMMM OY OH:Om',
'LLLL' => 'dddd, OD MMMM OY OH:Om',
],
'calendar' => [
'sameDay' => '[امروز ساعت] LT',
'nextDay' => '[فردا ساعت] LT',
'nextWeek' => 'dddd [ساعت] LT',
'lastDay' => '[دیروز ساعت] LT',
'lastWeek' => 'dddd [پیش] [ساعت] LT',
'sameElse' => 'L',
],
'ordinal' => ':timeم',
'meridiem' => ['قبل از ظهر', 'بعد از ظهر'],
'months' => ['ژانویه', 'فوریه', 'مارس', 'آوریل', 'مه', 'ژوئن', 'ژوئیه', 'اوت', 'سپتامبر', 'اکتبر', 'نوامبر', 'دسامبر'],
'months_short' => ['ژانویه', 'فوریه', 'مارس', 'آوریل', 'مه', 'ژوئن', 'ژوئیه', 'اوت', 'سپتامبر', 'اکتبر', 'نوامبر', 'دسامبر'],
'weekdays' => ['یکشنبه', 'دوشنبه', 'سه‌شنبه', 'چهارشنبه', 'پنجشنبه', 'جمعه', 'شنبه'],
'weekdays_short' => ['یکشنبه', 'دوشنبه', 'سه‌شنبه', 'چهارشنبه', 'پنجشنبه', 'جمعه', 'شنبه'],
'weekdays_min' => ['ی', 'د', 'س', 'چ', 'پ', 'ج', 'ش'],
'first_day_of_week' => 6,
'day_of_first_week_of_year' => 1,
'list' => ['، ', ' و '],
'alt_numbers' => ['۰۰', '۰۱', '۰۲', '۰۳', '۰۴', '۰۵', '۰۶', '۰۷', '۰۸', '۰۹', '۱۰', '۱۱', '۱۲', '۱۳', '۱۴', '۱۵', '۱۶', '۱۷', '۱۸', '۱۹', '۲۰', '۲۱', '۲۲', '۲۳', '۲۴', '۲۵', '۲۶', '۲۷', '۲۸', '۲۹', '۳۰', '۳۱', '۳۲', '۳۳', '۳۴', '۳۵', '۳۶', '۳۷', '۳۸', '۳۹', '۴۰', '۴۱', '۴۲', '۴۳', '۴۴', '۴۵', '۴۶', '۴۷', '۴۸', '۴۹', '۵۰', '۵۱', '۵۲', '۵۳', '۵۴', '۵۵', '۵۶', '۵۷', '۵۸', '۵۹', '۶۰', '۶۱', '۶۲', '۶۳', '۶۴', '۶۵', '۶۶', '۶۷', '۶۸', '۶۹', '۷۰', '۷۱', '۷۲', '۷۳', '۷۴', '۷۵', '۷۶', '۷۷', '۷۸', '۷۹', '۸۰', '۸۱', '۸۲', '۸۳', '۸۴', '۸۵', '۸۶', '۸۷', '۸۸', '۸۹', '۹۰', '۹۱', '۹۲', '۹۳', '۹۴', '۹۵', '۹۶', '۹۷', '۹۸', '۹۹'],
'months_short_standalone' => ['ژانویه', 'فوریه', 'مارس', 'آوریل', 'مه', 'ژوئن', 'ژوئیه', 'اوت', 'سپتامبر', 'اکتبر', 'نوامبر', 'دسامبر'],
'weekend' => [5, 5],
];

View file

@ -1,6 +1,6 @@
<?php
/*
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
@ -9,23 +9,78 @@
* file that was distributed with this source code.
*/
return array(
/*
* Authors:
* - Philippe Vaucher
* - Janne Warén
* - digitalfrost
* - Tsutomu Kuroda
* - Roope Salmi
* - tjku
* - Max Melentiev
* - Sami Haahtinen
* - Teemu Leisti
* - Artem Ignatyev
* - Akira Matsuda
* - Christopher Dell
* - Enrique Vidal
* - Simone Carletti
* - Robert Bjarnason
* - Aaron Patterson
* - Nicolás Hock Isaza
* - Tom Hughes
* - Sven Fuchs
* - Petri Kivikangas
* - Nizar Jouini
* - Marko Seppae
* - Tomi Mynttinen (Pikseli)
* - Petteri (powergrip)
*/
return [
'year' => ':count vuosi|:count vuotta',
'y' => ':count vuosi|:count vuotta',
'y' => ':count v',
'month' => ':count kuukausi|:count kuukautta',
'm' => ':count kuukausi|:count kuukautta',
'm' => ':count kk',
'week' => ':count viikko|:count viikkoa',
'w' => ':count viikko|:count viikkoa',
'w' => ':count vk',
'day' => ':count päivä|:count päivää',
'd' => ':count päivä|:count päivää',
'd' => ':count pv',
'hour' => ':count tunti|:count tuntia',
'h' => ':count tunti|:count tuntia',
'h' => ':count t',
'minute' => ':count minuutti|:count minuuttia',
'min' => ':count minuutti|:count minuuttia',
'min' => ':count min',
'second' => ':count sekunti|:count sekuntia',
's' => ':count sekunti|:count sekuntia',
'a_second' => 'muutama sekunti|:count sekuntia',
's' => ':count s',
'ago' => ':time sitten',
'from_now' => ':time tästä hetkestä',
'from_now' => ':time päästä',
'year_from_now' => ':count vuoden',
'month_from_now' => ':count kuukauden',
'week_from_now' => ':count viikon',
'day_from_now' => ':count päivän',
'hour_from_now' => ':count tunnin',
'minute_from_now' => ':count minuutin',
'second_from_now' => ':count sekunnin',
'after' => ':time sen jälkeen',
'before' => ':time ennen',
);
'first_day_of_week' => 1,
'day_of_first_week_of_year' => 4,
'list' => [', ', ' ja '],
'diff_now' => 'nyt',
'diff_yesterday' => 'eilen',
'diff_tomorrow' => 'huomenna',
'formats' => [
'LT' => 'HH.mm',
'LTS' => 'HH.mm:ss',
'L' => 'D.M.YYYY',
'LL' => 'dddd D. MMMM[ta] YYYY',
'LLL' => 'D.MM. HH.mm',
'LLLL' => 'D. MMMM[ta] YYYY HH.mm',
],
'weekdays' => ['sunnuntai', 'maanantai', 'tiistai', 'keskiviikko', 'torstai', 'perjantai', 'lauantai'],
'weekdays_short' => ['su', 'ma', 'ti', 'ke', 'to', 'pe', 'la'],
'weekdays_min' => ['su', 'ma', 'ti', 'ke', 'to', 'pe', 'la'],
'months' => ['tammikuu', 'helmikuu', 'maaliskuu', 'huhtikuu', 'toukokuu', 'kesäkuu', 'heinäkuu', 'elokuu', 'syyskuu', 'lokakuu', 'marraskuu', 'joulukuu'],
'months_short' => ['tammi', 'helmi', 'maalis', 'huhti', 'touko', 'kesä', 'heinä', 'elo', 'syys', 'loka', 'marras', 'joulu'],
'meridiem' => ['aamupäivä', 'iltapäivä'],
];

View file

@ -1,6 +1,6 @@
<?php
/*
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
@ -9,23 +9,55 @@
* file that was distributed with this source code.
*/
return array(
'year' => ':count ár|:count ár',
/**
* Authors:
* - Kristian Sakarisson
* - François B
* - JD Isaacks
* - Sverri Mohr Olsen
*/
return [
'year' => 'eitt ár|:count ár',
'y' => ':count ár|:count ár',
'month' => ':count mánaður|:count mánaðir',
'month' => 'ein mánaði|:count mánaðir',
'm' => ':count mánaður|:count mánaðir',
'week' => ':count vika|:count vikur',
'w' => ':count vika|:count vikur',
'day' => ':count dag|:count dagar',
'day' => 'ein dagur|:count dagar',
'd' => ':count dag|:count dagar',
'hour' => ':count tími|:count tímar',
'hour' => 'ein tími|:count tímar',
'h' => ':count tími|:count tímar',
'minute' => ':count minutt|:count minuttir',
'minute' => 'ein minutt|:count minuttir',
'min' => ':count minutt|:count minuttir',
'second' => ':count sekund|:count sekundir',
'second' => 'fá sekund|:count sekundir',
's' => ':count sekund|:count sekundir',
'ago' => ':time síðan',
'ago' => ':time síðani',
'from_now' => 'um :time',
'after' => ':time aftaná',
'before' => ':time áðrenn',
);
'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' => '[Í dag kl.] LT',
'nextDay' => '[Í morgin kl.] LT',
'nextWeek' => 'dddd [kl.] LT',
'lastDay' => '[Í gjár kl.] LT',
'lastWeek' => '[síðstu] dddd [kl] LT',
'sameElse' => 'L',
],
'ordinal' => ':number.',
'months' => ['januar', 'februar', 'mars', 'apríl', 'mai', 'juni', 'juli', 'august', 'september', 'oktober', 'november', 'desember'],
'months_short' => ['jan', 'feb', 'mar', 'apr', 'mai', 'jun', 'jul', 'aug', 'sep', 'okt', 'nov', 'des'],
'weekdays' => ['sunnudagur', 'mánadagur', 'týsdagur', 'mikudagur', 'hósdagur', 'fríggjadagur', 'leygardagur'],
'weekdays_short' => ['sun', 'mán', 'týs', 'mik', 'hós', 'frí', 'ley'],
'weekdays_min' => ['su', 'má', 'tý', 'mi', 'hó', 'fr', 'le'],
'first_day_of_week' => 1,
'day_of_first_week_of_year' => 4,
'list' => [', ', ' og '],
];

View file

@ -1,6 +1,6 @@
<?php
/*
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
@ -9,26 +9,45 @@
* file that was distributed with this source code.
*/
return array(
/**
* Authors:
* - Dieter Sting
* - François B
* - Maxime VALY
* - JD Isaacks
* - Dieter Sting
* - François B
* - JD Isaacks
* - Sebastian Thierer
* - Fastfuel
*/
return [
'year' => ':count an|:count ans',
'a_year' => 'un an|:count ans',
'y' => ':count an|:count ans',
'month' => ':count mois',
'month' => ':count mois|:count mois',
'a_month' => 'un mois|:count mois',
'm' => ':count mois',
'week' => ':count semaine|:count semaines',
'a_week' => 'une semaine|:count semaines',
'w' => ':count sem.',
'day' => ':count jour|:count jours',
'd' => ':count j.',
'a_day' => 'un jour|:count jours',
'd' => ':count j',
'hour' => ':count heure|:count heures',
'h' => ':count h.',
'a_hour' => 'une heure|:count heures',
'h' => ':count h',
'minute' => ':count minute|:count minutes',
'min' => ':count min.',
'a_minute' => 'une minute|:count minutes',
'min' => ':count min',
'second' => ':count seconde|:count secondes',
's' => ':count sec.',
'a_second' => 'quelques secondes|:count secondes',
's' => ':count s',
'ago' => 'il y a :time',
'from_now' => 'dans :time',
'after' => ':time après',
'before' => ':time avant',
'diff_now' => "à l'instant",
'diff_now' => 'à l\'instant',
'diff_yesterday' => 'hier',
'diff_tomorrow' => 'demain',
'diff_before_yesterday' => 'avant-hier',
@ -37,4 +56,48 @@ return array(
'period_interval' => 'tous les :interval',
'period_start_date' => 'de :date',
'period_end_date' => 'à :date',
);
'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' => '[Aujourd’hui à] LT',
'nextDay' => '[Demain à] LT',
'nextWeek' => 'dddd [à] LT',
'lastDay' => '[Hier à] LT',
'lastWeek' => 'dddd [dernier à] LT',
'sameElse' => 'L',
],
'months' => ['janvier', 'février', 'mars', 'avril', 'mai', 'juin', 'juillet', 'août', 'septembre', 'octobre', 'novembre', 'décembre'],
'months_short' => ['janv.', 'févr.', 'mars', 'avr.', 'mai', 'juin', 'juil.', 'août', 'sept.', 'oct.', 'nov.', 'déc.'],
'weekdays' => ['dimanche', 'lundi', 'mardi', 'mercredi', 'jeudi', 'vendredi', 'samedi'],
'weekdays_short' => ['dim.', 'lun.', 'mar.', 'mer.', 'jeu.', 'ven.', 'sam.'],
'weekdays_min' => ['di', 'lu', 'ma', 'me', 'je', 've', 'sa'],
'ordinal' => function ($number, $period) {
switch ($period) {
// In french, only the first has be ordinal, other number remains cardinal
// @link https://fr.wikihow.com/%C3%A9crire-la-date-en-fran%C3%A7ais
case 'D':
return $number.($number === 1 ? 'er' : '');
default:
case 'M':
case 'Q':
case 'DDD':
case 'd':
return $number.($number === 1 ? 'er' : 'e');
// Words with feminine grammatical gender: semaine
case 'w':
case 'W':
return $number.($number === 1 ? 're' : 'e');
}
},
'first_day_of_week' => 1,
'day_of_first_week_of_year' => 4,
'list' => [', ', ' et '],
];

View file

@ -1,6 +1,6 @@
<?php
/*
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
@ -9,16 +9,83 @@
* file that was distributed with this source code.
*/
return array(
/*
* Authors:
* - François B
* - Fidel Pita
* - JD Isaacks
* - Diego Vilariño
* - Sebastian Thierer
*/
return [
'year' => ':count ano|:count anos',
'a_year' => 'un ano|:count anos',
'y' => ':count a.',
'month' => ':count mes|:count meses',
'a_month' => 'un mes|:count meses',
'm' => ':count mes.',
'week' => ':count semana|:count semanas',
'a_week' => 'unha semana|:count semanas',
'w' => ':count sem.',
'day' => ':count día|:count días',
'a_day' => 'un día|:count días',
'd' => ':count d.',
'hour' => ':count hora|:count horas',
'a_hour' => 'unha hora|:count horas',
'h' => ':count h.',
'minute' => ':count minuto|:count minutos',
'a_minute' => 'un minuto|:count minutos',
'min' => ':count min.',
'second' => ':count segundo|:count segundos',
'ago' => 'fai :time',
'from_now' => 'dentro de :time',
'a_second' => 'uns segundos|:count segundos',
's' => ':count seg.',
'ago' => 'hai :time',
'from_now' => function ($time) {
if (substr($time, 0, 2) === 'un') {
return "n$time";
}
return "en $time";
},
'diff_now' => 'agora',
'diff_yesterday' => 'onte',
'diff_tomorrow' => 'mañá',
'after' => ':time despois',
'before' => ':time antes',
);
'formats' => [
'LT' => 'H:mm',
'LTS' => 'H:mm:ss',
'L' => 'DD/MM/YYYY',
'LL' => 'D [de] MMMM [de] YYYY',
'LLL' => 'D [de] MMMM [de] YYYY H:mm',
'LLLL' => 'dddd, D [de] MMMM [de] YYYY H:mm',
],
'calendar' => [
'sameDay' => function (\Carbon\CarbonInterface $current) {
return '[hoxe '.($current->hour !== 1 ? 'ás' : 'á').'] LT';
},
'nextDay' => function (\Carbon\CarbonInterface $current) {
return '[mañá '.($current->hour !== 1 ? 'ás' : 'á').'] LT';
},
'nextWeek' => function (\Carbon\CarbonInterface $current) {
return 'dddd ['.($current->hour !== 1 ? 'ás' : 'á').'] LT';
},
'lastDay' => function (\Carbon\CarbonInterface $current) {
return '[onte '.($current->hour !== 1 ? 'á' : 'a').'] LT';
},
'lastWeek' => function (\Carbon\CarbonInterface $current) {
return '[o] dddd [pasado '.($current->hour !== 1 ? 'ás' : 'á').'] LT';
},
'sameElse' => 'L',
],
'ordinal' => ':numberº',
'months' => ['xaneiro', 'febreiro', 'marzo', 'abril', 'maio', 'xuño', 'xullo', 'agosto', 'setembro', 'outubro', 'novembro', 'decembro'],
'months_short' => ['xan.', 'feb.', 'mar.', 'abr.', 'mai.', 'xuñ.', 'xul.', 'ago.', 'set.', 'out.', 'nov.', 'dec.'],
'weekdays' => ['domingo', 'luns', 'martes', 'mércores', 'xoves', 'venres', 'sábado'],
'weekdays_short' => ['dom.', 'lun.', 'mar.', 'mér.', 'xov.', 'ven.', 'sáb.'],
'weekdays_min' => ['do', 'lu', 'ma', 'mé', 'xo', 've', 'sá'],
'first_day_of_week' => 1,
'day_of_first_week_of_year' => 4,
'list' => [', ', ' e '],
'meridiem' => ['a.m.', 'p.m.'],
];

View file

@ -1,6 +1,6 @@
<?php
/*
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
@ -9,7 +9,14 @@
* file that was distributed with this source code.
*/
return array(
/**
* Authors:
* - Daniel Cohen Gindi
* - JD Isaacks
* - Itai Nathaniel
* - GabMic
*/
return [
'year' => 'שנה|{2}שנתיים|:count שנים',
'y' => 'שנה|{2}שנתיים|:count שנים',
'month' => 'חודש|{2}חודשיים|:count חודשים',
@ -20,12 +27,55 @@ return array(
'd' => 'יום|{2}יומיים|:count ימים',
'hour' => 'שעה|{2}שעתיים|:count שעות',
'h' => 'שעה|{2}שעתיים|:count שעות',
'minute' => 'דקה|{2}דקותיים|:count דקות',
'min' => 'דקה|{2}דקותיים|:count דקות',
'second' => 'שניה|:count שניות',
'minute' => 'דקה|{2}שתי דקות|:count דקות',
'min' => 'דקה|{2}שתי דקות|:count דקות',
'second' => 'שנייה|:count שניות',
'a_second' => 'כמה שניות|:count שניות',
's' => 'שניה|:count שניות',
'ago' => 'לפני :time',
'from_now' => 'בעוד :time',
'from_now' => 'בעוד :time מעכשיו',
'after' => 'אחרי :time',
'before' => 'לפני :time',
);
'diff_now' => 'עכשיו',
'diff_yesterday' => 'אתמול',
'diff_tomorrow' => 'מחר',
'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',
],
'meridiem' => function ($hour, $minute, $isLower) {
if ($hour < 5) {
return 'לפנות בוקר';
}
if ($hour < 10) {
return 'בבוקר';
}
if ($hour < 12) {
return $isLower ? 'לפנה"צ' : 'לפני הצהריים';
}
if ($hour < 18) {
return $isLower ? 'אחה"צ' : 'אחרי הצהריים';
}
return 'בערב';
},
'months' => ['ינואר', 'פברואר', 'מרץ', 'אפריל', 'מאי', 'יוני', 'יולי', 'אוגוסט', 'ספטמבר', 'אוקטובר', 'נובמבר', 'דצמבר'],
'months_short' => ['ינו׳', 'פבר׳', 'מרץ', 'אפר׳', 'מאי', 'יוני', 'יולי', 'אוג׳', 'ספט׳', 'אוק׳', 'נוב׳', 'דצמ׳'],
'weekdays' => ['ראשון', 'שני', 'שלישי', 'רביעי', 'חמישי', 'שישי', 'שבת'],
'weekdays_short' => ['א׳', 'ב׳', 'ג׳', 'ד׳', 'ה׳', 'ו׳', 'ש׳'],
'weekdays_min' => ['א', 'ב', 'ג', 'ד', 'ה', 'ו', 'ש'],
'list' => [', ', ' ו -'],
'weekend' => [5, 6],
];

View file

@ -1,6 +1,6 @@
<?php
/*
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
@ -9,23 +9,96 @@
* file that was distributed with this source code.
*/
return array(
/**
* Authors:
* - Josh Soref
* - François B
* - Tim Fish
* - shaishavgandhi05
* - Serhan Apaydın
* - JD Isaacks
* - tomhorvat
* - Josh Soref
* - François B
* - shaishavgandhi05
* - Serhan Apaydın
* - JD Isaacks
* - tomhorvat
* - Stjepan
* - Vanja Retkovac (vr00)
*/
return [
'year' => ':count godinu|:count godine|:count godina',
'y' => ':count godinu|:count godine|:count godina',
'y' => ':count god.|:count god.|:count god.',
'month' => ':count mjesec|:count mjeseca|:count mjeseci',
'm' => ':count mjesec|:count mjeseca|:count mjeseci',
'm' => ':count mj.|:count mj.|:count mj.',
'week' => ':count tjedan|:count tjedna|:count tjedana',
'w' => ':count tjedan|:count tjedna|:count tjedana',
'w' => ':count tj.|:count tj.|:count tj.',
'day' => ':count dan|:count dana|:count dana',
'd' => ':count dan|:count dana|:count dana',
'd' => ':count d.|:count d.|:count d.',
'hour' => ':count sat|:count sata|:count sati',
'h' => ':count sat|:count sata|:count sati',
'minute' => ':count minutu|:count minute |:count minuta',
'min' => ':count minutu|:count minute |:count minuta',
'minute' => ':count minutu|:count minute|:count minuta',
'min' => ':count min.|:count min.|:count min.',
'second' => ':count sekundu|:count sekunde|:count sekundi',
's' => ':count sekundu|:count sekunde|:count sekundi',
'a_second' => 'nekoliko sekundi|:count sekunde|:count sekundi',
's' => ':count sek.|:count sek.|:count sek.',
'ago' => 'prije :time',
'from_now' => 'za :time',
'after' => 'za :time',
'before' => 'prije :time',
);
'after' => ':time poslije',
'before' => ':time prije',
'diff_now' => 'sad',
'diff_yesterday' => 'jučer',
'diff_tomorrow' => 'sutra',
'diff_before_yesterday' => 'prekjučer',
'diff_after_tomorrow' => 'prekosutra',
'formats' => [
'LT' => 'H:mm',
'LTS' => 'H:mm:ss',
'L' => 'DD.MM.YYYY',
'LL' => 'D. MMMM YYYY',
'LLL' => 'D. MMMM YYYY H:mm',
'LLLL' => 'dddd, D. MMMM YYYY H:mm',
],
'calendar' => [
'sameDay' => '[danas u] LT',
'nextDay' => '[sutra u] LT',
'nextWeek' => function (\Carbon\CarbonInterface $date) {
switch ($date->dayOfWeek) {
case 0:
return '[u] [nedjelju] [u] LT';
case 3:
return '[u] [srijedu] [u] LT';
case 6:
return '[u] [subotu] [u] LT';
default:
return '[u] dddd [u] LT';
}
},
'lastDay' => '[jučer u] LT',
'lastWeek' => function (\Carbon\CarbonInterface $date) {
switch ($date->dayOfWeek) {
case 0:
case 3:
return '[prošlu] dddd [u] LT';
case 6:
return '[prošle] [subote] [u] LT';
default:
return '[prošli] dddd [u] LT';
}
},
'sameElse' => 'L',
],
'ordinal' => ':number.',
'months' => ['siječnja', 'veljače', 'ožujka', 'travnja', 'svibnja', 'lipnja', 'srpnja', 'kolovoza', 'rujna', 'listopada', 'studenoga', 'prosinca'],
'months_standalone' => ['siječanj', 'veljača', 'ožujak', 'travanj', 'svibanj', 'lipanj', 'srpanj', 'kolovoz', 'rujan', 'listopad', 'studeni', 'prosinac'],
'months_short' => ['sij.', 'velj.', 'ožu.', 'tra.', 'svi.', 'lip.', 'srp.', 'kol.', 'ruj.', 'lis.', 'stu.', 'pro.'],
'months_regexp' => '/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/',
'weekdays' => ['nedjelju', 'ponedjeljak', 'utorak', 'srijedu', 'četvrtak', 'petak', 'subotu'],
'weekdays_standalone' => ['nedjelja', 'ponedjeljak', 'utorak', 'srijeda', 'četvrtak', 'petak', 'subota'],
'weekdays_short' => ['ned.', 'pon.', 'uto.', 'sri.', 'čet.', 'pet.', 'sub.'],
'weekdays_min' => ['ne', 'po', 'ut', 'sr', 'če', 'pe', 'su'],
'first_day_of_week' => 1,
'day_of_first_week_of_year' => 1,
'list' => [', ', ' i '],
];

View file

@ -1,6 +1,6 @@
<?php
/*
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
@ -9,7 +9,15 @@
* file that was distributed with this source code.
*/
return array(
/*
* Authors:
* - Adam Brunner
* - Brett Johnson
* - balping
*/
$huWeekEndings = ['vasárnap', 'hétfőn', 'kedden', 'szerdán', 'csütörtökön', 'pénteken', 'szombaton'];
return [
'year' => ':count év',
'y' => ':count év',
'month' => ':count hónap',
@ -29,24 +37,78 @@ return array(
'after' => ':time később',
'before' => ':time korábban',
'year_ago' => ':count éve',
'y_ago' => ':count éve',
'month_ago' => ':count hónapja',
'm_ago' => ':count hónapja',
'week_ago' => ':count hete',
'w_ago' => ':count hete',
'day_ago' => ':count napja',
'd_ago' => ':count napja',
'hour_ago' => ':count órája',
'h_ago' => ':count órája',
'minute_ago' => ':count perce',
'min_ago' => ':count perce',
'second_ago' => ':count másodperce',
's_ago' => ':count másodperce',
'year_after' => ':count évvel',
'y_after' => ':count évvel',
'month_after' => ':count hónappal',
'm_after' => ':count hónappal',
'week_after' => ':count héttel',
'w_after' => ':count héttel',
'day_after' => ':count nappal',
'd_after' => ':count nappal',
'hour_after' => ':count órával',
'h_after' => ':count órával',
'minute_after' => ':count perccel',
'min_after' => ':count perccel',
'second_after' => ':count másodperccel',
's_after' => ':count másodperccel',
'year_before' => ':count évvel',
'y_before' => ':count évvel',
'month_before' => ':count hónappal',
'm_before' => ':count hónappal',
'week_before' => ':count héttel',
'w_before' => ':count héttel',
'day_before' => ':count nappal',
'd_before' => ':count nappal',
'hour_before' => ':count órával',
'h_before' => ':count órával',
'minute_before' => ':count perccel',
'min_before' => ':count perccel',
'second_before' => ':count másodperccel',
);
's_before' => ':count másodperccel',
'months' => ['január', 'február', 'március', 'április', 'május', 'június', 'július', 'augusztus', 'szeptember', 'október', 'november', 'december'],
'months_short' => ['jan.', 'feb.', 'márc.', 'ápr.', 'máj.', 'jún.', 'júl.', 'aug.', 'szept.', 'okt.', 'nov.', 'dec.'],
'weekdays' => ['vasárnap', 'hétfő', 'kedd', 'szerda', 'csütörtök', 'péntek', 'szombat'],
'weekdays_short' => ['vas', 'hét', 'kedd', 'sze', 'csüt', 'pén', 'szo'],
'weekdays_min' => ['v', 'h', 'k', 'sze', 'cs', 'p', 'sz'],
'ordinal' => ':number.',
'diff_now' => 'most',
'diff_yesterday' => 'tegnap',
'diff_tomorrow' => 'holnap',
'formats' => [
'LT' => 'H:mm',
'LTS' => 'H:mm:ss',
'L' => 'YYYY.MM.DD.',
'LL' => 'YYYY. MMMM D.',
'LLL' => 'YYYY. MMMM D. H:mm',
'LLLL' => 'YYYY. MMMM D., dddd H:mm',
],
'calendar' => [
'sameDay' => '[ma] LT[-kor]',
'nextDay' => '[holnap] LT[-kor]',
'nextWeek' => function (\Carbon\CarbonInterface $date) use ($huWeekEndings) {
return '['.$huWeekEndings[$date->dayOfWeek].'] LT[-kor]';
},
'lastDay' => '[tegnap] LT[-kor]',
'lastWeek' => function (\Carbon\CarbonInterface $date) use ($huWeekEndings) {
return '[múlt '.$huWeekEndings[$date->dayOfWeek].'] LT[-kor]';
},
'sameElse' => 'L',
],
'meridiem' => ['DE', 'DU'],
'first_day_of_week' => 1,
'day_of_first_week_of_year' => 4,
'list' => [', ', ' és '],
];

View file

@ -1,6 +1,6 @@
<?php
/*
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
@ -9,23 +9,86 @@
* file that was distributed with this source code.
*/
return array(
/*
* Authors:
* - mhamlet
*/
return [
'year' => ':count տարի',
'a_year' => 'տարի|:count տարի',
'y' => ':countտ',
'month' => ':count ամիս',
'a_month' => 'ամիս|:count ամիս',
'm' => ':countամ',
'week' => ':count շաբաթ',
'a_week' => 'շաբաթ|:count շաբաթ',
'w' => ':countշ',
'day' => ':count օր',
'a_day' => 'օր|:count օր',
'd' => ':countօր',
'hour' => ':count ժամ',
'a_hour' => 'ժամ|:count ժամ',
'h' => ':countժ',
'minute' => ':count րոպե',
'a_minute' => 'րոպե|:count րոպե',
'min' => ':countր',
'second' => ':count վարկյան',
'second' => ':count վայրկյան',
'a_second' => 'մի քանի վայրկյան|:count վայրկյան',
's' => ':countվրկ',
'ago' => ':time առաջ',
'from_now' => ':time ներկա պահից',
'from_now' => ':timeից',
'after' => ':time հետո',
'before' => ':time առաջ',
);
'diff_now' => 'հիմա',
'diff_yesterday' => 'երեկ',
'diff_tomorrow' => 'վաղը',
'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, $period) {
switch ($period) {
case 'DDD':
case 'w':
case 'W':
case 'DDDo':
return $number.($number === 1 ? '-ին' : '-րդ');
default:
return $number;
}
},
'meridiem' => function ($hour) {
if ($hour < 4) {
return 'գիշերվա';
}
if ($hour < 12) {
return 'առավոտվա';
}
if ($hour < 17) {
return 'ցերեկվա';
}
return 'երեկոյան';
},
'months' => ['հունվարի', 'փետրվարի', 'մարտի', 'ապրիլի', 'մայիսի', 'հունիսի', 'հուլիսի', 'օգոստոսի', 'սեպտեմբերի', 'հոկտեմբերի', 'նոյեմբերի', 'դեկտեմբերի'],
'months_standalone' => ['հունվար', 'փետրվար', 'մարտ', 'ապրիլ', 'մայիս', 'հունիս', 'հուլիս', 'օգոստոս', 'սեպտեմբեր', 'հոկտեմբեր', 'նոյեմբեր', 'դեկտեմբեր'],
'months_short' => ['հնվ', 'փտր', 'մրտ', 'ապր', 'մյս', 'հնս', 'հլս', 'օգս', 'սպտ', 'հկտ', 'նմբ', 'դկտ'],
'months_regexp' => '/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/',
'weekdays' => ['կիրակի', 'երկուշաբթի', 'երեքշաբթի', 'չորեքշաբթի', 'հինգշաբթի', 'ուրբաթ', 'շաբաթ'],
'weekdays_short' => ['կրկ', 'երկ', 'երք', 'չրք', 'հնգ', 'ուրբ', 'շբթ'],
'weekdays_min' => ['կրկ', 'երկ', 'երք', 'չրք', 'հնգ', 'ուրբ', 'շբթ'],
'list' => [', ', ' եւ '],
'first_day_of_week' => 1,
];

View file

@ -1,6 +1,6 @@
<?php
/*
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
@ -9,23 +9,80 @@
* file that was distributed with this source code.
*/
return array(
/**
* Authors:
* - Josh Soref
* - du
* - JD Isaacks
* - Nafies Luthfi
* - Raymundus Jati Primanda (mundusjp)
* - diankur313
* - a-wip0
*/
return [
'year' => ':count tahun',
'y' => ':count tahun',
'a_year' => '{1}setahun|]1,Inf[:count tahun',
'y' => ':countthn',
'month' => ':count bulan',
'm' => ':count bulan',
'a_month' => '{1}sebulan|]1,Inf[:count bulan',
'm' => ':countbln',
'week' => ':count minggu',
'w' => ':count minggu',
'a_week' => '{1}seminggu|]1,Inf[:count minggu',
'w' => ':countmgg',
'day' => ':count hari',
'd' => ':count hari',
'a_day' => '{1}sehari|]1,Inf[:count hari',
'd' => ':counthr',
'hour' => ':count jam',
'h' => ':count jam',
'a_hour' => '{1}sejam|]1,Inf[:count jam',
'h' => ':countj',
'minute' => ':count menit',
'min' => ':count menit',
'a_minute' => '{1}semenit|]1,Inf[:count menit',
'min' => ':countmnt',
'second' => ':count detik',
's' => ':count detik',
'a_second' => '{1}beberapa detik|]1,Inf[:count detik',
's' => ':countdt',
'ago' => ':time yang lalu',
'from_now' => ':time dari sekarang',
'after' => ':time setelah',
'before' => ':time sebelum',
);
'after' => ':time setelahnya',
'before' => ':time sebelumnya',
'diff_now' => 'sekarang',
'diff_yesterday' => 'kemarin',
'diff_tomorrow' => 'besok',
'formats' => [
'LT' => 'HH.mm',
'LTS' => 'HH.mm.ss',
'L' => 'DD/MM/YYYY',
'LL' => 'D MMMM YYYY',
'LLL' => 'D MMMM YYYY [pukul] HH.mm',
'LLLL' => 'dddd, D MMMM YYYY [pukul] HH.mm',
],
'calendar' => [
'sameDay' => '[Hari ini pukul] LT',
'nextDay' => '[Besok pukul] LT',
'nextWeek' => 'dddd [pukul] LT',
'lastDay' => '[Kemarin pukul] LT',
'lastWeek' => 'dddd [lalu pukul] LT',
'sameElse' => 'L',
],
'meridiem' => function ($hour) {
if ($hour < 11) {
return 'pagi';
}
if ($hour < 15) {
return 'siang';
}
if ($hour < 19) {
return 'sore';
}
return 'malam';
},
'months' => ['Januari', 'Februari', 'Maret', 'April', 'Mei', 'Juni', 'Juli', 'Agustus', 'September', 'Oktober', 'November', 'Desember'],
'months_short' => ['Jan', 'Feb', 'Mar', 'Apr', 'Mei', 'Jun', 'Jul', 'Agt', 'Sep', 'Okt', 'Nov', 'Des'],
'weekdays' => ['Minggu', 'Senin', 'Selasa', 'Rabu', 'Kamis', 'Jumat', 'Sabtu'],
'weekdays_short' => ['Min', 'Sen', 'Sel', 'Rab', 'Kam', 'Jum', 'Sab'],
'weekdays_min' => ['Mg', 'Sn', 'Sl', 'Rb', 'Km', 'Jm', 'Sb'],
'first_day_of_week' => 1,
'day_of_first_week_of_year' => 1,
'list' => [', ', ' dan '],
];

View file

@ -1,6 +1,6 @@
<?php
/*
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
@ -9,28 +9,84 @@
* file that was distributed with this source code.
*/
return array(
/**
* Authors:
* - Ash
* - François B
* - Marco Perrando
* - Massimiliano Caniparoli
* - JD Isaacks
* - Andrea Martini
* - Francesco Marasco
* - Tizianoz93
* - Davide Casiraghi (davide-casiraghi)
*/
return [
'year' => ':count anno|:count anni',
'a_year' => 'un anno|:count anni',
'y' => ':count anno|:count anni',
'month' => ':count mese|:count mesi',
'a_month' => 'un mese|:count mesi',
'm' => ':count mese|:count mesi',
'week' => ':count settimana|:count settimane',
'w' => ':count settimana|:count settimane',
'a_week' => 'una settimana|:count settimane',
'w' => ':count set.',
'day' => ':count giorno|:count giorni',
'd' => ':count giorno|:count giorni',
'a_day' => 'un giorno|:count giorni',
'd' => ':count g|:count gg',
'hour' => ':count ora|:count ore',
'h' => ':count ora|:count ore',
'a_hour' => 'un\'ora|:count ore',
'h' => ':count h',
'minute' => ':count minuto|:count minuti',
'min' => ':count minuto|:count minuti',
'a_minute' => 'un minuto|:count minuti',
'min' => ':count min.',
'second' => ':count secondo|:count secondi',
's' => ':count secondo|:count secondi',
'a_second' => 'alcuni secondi|:count secondi',
's' => ':count sec.',
'ago' => ':time fa',
'from_now' => 'tra :time',
'from_now' => function ($time) {
return (preg_match('/^[0-9].+$/', $time) ? 'tra' : 'in')." $time";
},
'after' => ':time dopo',
'before' => ':time prima',
'diff_now' => 'proprio ora',
'diff_yesterday' => 'ieri',
'diff_tomorrow' => 'domani',
'diff_before_yesterday' => "l'altro ieri",
'diff_before_yesterday' => 'l\'altro ieri',
'diff_after_tomorrow' => 'dopodomani',
);
'period_interval' => 'ogni :interval',
'period_start_date' => 'dal :date',
'period_end_date' => 'al :date',
'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' => '[Oggi alle] LT',
'nextDay' => '[Domani alle] LT',
'nextWeek' => 'dddd [alle] LT',
'lastDay' => '[Ieri alle] LT',
'lastWeek' => function (\Carbon\CarbonInterface $date) {
switch ($date->dayOfWeek) {
case 0:
return '[la scorsa] dddd [alle] LT';
default:
return '[lo scorso] dddd [alle] LT';
}
},
'sameElse' => 'L',
],
'ordinal' => ':numberº',
'months' => ['gennaio', 'febbraio', 'marzo', 'aprile', 'maggio', 'giugno', 'luglio', 'agosto', 'settembre', 'ottobre', 'novembre', 'dicembre'],
'months_short' => ['gen', 'feb', 'mar', 'apr', 'mag', 'giu', 'lug', 'ago', 'set', 'ott', 'nov', 'dic'],
'weekdays' => ['domenica', 'lunedì', 'martedì', 'mercoledì', 'giovedì', 'venerdì', 'sabato'],
'weekdays_short' => ['dom', 'lun', 'mar', 'mer', 'gio', 'ven', 'sab'],
'weekdays_min' => ['do', 'lu', 'ma', 'me', 'gi', 've', 'sa'],
'first_day_of_week' => 1,
'day_of_first_week_of_year' => 4,
'list' => [', ', ' e '],
];

View file

@ -1,6 +1,6 @@
<?php
/*
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
@ -9,7 +9,19 @@
* file that was distributed with this source code.
*/
return array(
/**
* Authors:
* - Takuya Sawada
* - Atsushi Tanaka
* - François B
* - Jason Katz-Brown
* - Serhan Apaydın
* - XueWei
* - JD Isaacks
* - toyama satoshi
* - atakigawa
*/
return [
'year' => ':count年',
'y' => ':count年',
'month' => ':countヶ月',
@ -23,9 +35,64 @@ return array(
'minute' => ':count分',
'min' => ':count分',
'second' => ':count秒',
'a_second' => '{1}数秒|]1,Inf[:count秒',
's' => ':count秒',
'ago' => ':time前',
'from_now' => '今から:time',
'from_now' => ':time後',
'after' => ':time後',
'before' => ':time前',
);
'diff_now' => '今',
'diff_yesterday' => '昨日',
'diff_tomorrow' => '明日',
'formats' => [
'LT' => 'HH:mm',
'LTS' => 'HH:mm:ss',
'L' => 'YYYY/MM/DD',
'LL' => 'YYYY年M月D日',
'LLL' => 'YYYY年M月D日 HH:mm',
'LLLL' => 'YYYY年M月D日 dddd HH:mm',
],
'calendar' => [
'sameDay' => '[今日] LT',
'nextDay' => '[明日] LT',
'nextWeek' => function (\Carbon\CarbonInterface $current, \Carbon\CarbonInterface $other) {
if ($other->week !== $current->week) {
return '[来週]dddd LT';
}
return 'dddd LT';
},
'lastDay' => '[昨日] LT',
'lastWeek' => function (\Carbon\CarbonInterface $current, \Carbon\CarbonInterface $other) {
if ($other->week !== $current->week) {
return '[先週]dddd LT';
}
return 'dddd LT';
},
'sameElse' => 'L',
],
'ordinal' => function ($number, $period) {
switch ($period) {
case 'd':
case 'D':
case 'DDD':
return $number.'日';
default:
return $number;
}
},
'meridiem' => ['午前', '午後'],
'months' => ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
'months_short' => ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月', '11月', '12月'],
'weekdays' => ['日曜日', '月曜日', '火曜日', '水曜日', '木曜日', '金曜日', '土曜日'],
'weekdays_short' => ['日', '月', '火', '水', '木', '金', '土'],
'weekdays_min' => ['日', '月', '火', '水', '木', '金', '土'],
'list' => '、',
'alt_numbers' => ['〇', '一', '二', '三', '四', '五', '六', '七', '八', '九', '十', '十一', '十二', '十三', '十四', '十五', '十六', '十七', '十八', '十九', '二十', '二十一', '二十二', '二十三', '二十四', '二十五', '二十六', '二十七', '二十八', '二十九', '三十', '三十一', '三十二', '三十三', '三十四', '三十五', '三十六', '三十七', '三十八', '三十九', '四十', '四十一', '四十二', '四十三', '四十四', '四十五', '四十六', '四十七', '四十八', '四十九', '五十', '五十一', '五十二', '五十三', '五十四', '五十五', '五十六', '五十七', '五十八', '五十九', '六十', '六十一', '六十二', '六十三', '六十四', '六十五', '六十六', '六十七', '六十八', '六十九', '七十', '七十一', '七十二', '七十三', '七十四', '七十五', '七十六', '七十七', '七十八', '七十九', '八十', '八十一', '八十二', '八十三', '八十四', '八十五', '八十六', '八十七', '八十八', '八十九', '九十', '九十一', '九十二', '九十三', '九十四', '九十五', '九十六', '九十七', '九十八', '九十九'],
'alt_numbers_pow' => [
10000 => '万',
1000 => '千',
100 => '百',
],
];

View file

@ -1,6 +1,6 @@
<?php
/*
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
@ -9,23 +9,191 @@
* file that was distributed with this source code.
*/
return array(
'year' => ':count წლის',
'y' => ':count წლის',
'month' => ':count თვის',
'm' => ':count თვის',
'week' => ':count კვირის',
'w' => ':count კვირის',
'day' => ':count დღის',
'd' => ':count დღის',
'hour' => ':count საათის',
'h' => ':count საათის',
'minute' => ':count წუთის',
'min' => ':count წუთის',
'second' => ':count წამის',
's' => ':count წამის',
'ago' => ':time უკან',
'from_now' => ':time შემდეგ',
'after' => ':time შემდეგ',
'before' => ':time უკან',
);
/**
* Authors:
* - Tornike Razmadze
* - François B
* - Lasha Dolidze
* - Tim Fish
* - JD Isaacks
* - Tornike Razmadze
* - François B
* - Lasha Dolidze
* - JD Isaacks
* - LONGMAN
* - Avtandil Kikabidze (akalongman)
*/
return [
'year' => ':count წელი',
'y' => ':count წელი',
'a_year' => '{1}წელი|]1,Inf[:count წელი',
'month' => ':count თვე',
'm' => ':count თვე',
'a_month' => '{1}თვე|]1,Inf[:count თვე',
'week' => ':count კვირა',
'w' => ':count კვირა',
'a_week' => '{1}კვირა|]1,Inf[:count კვირა',
'day' => ':count დღე',
'd' => ':count დღე',
'a_day' => '{1}დღე|]1,Inf[:count დღე',
'hour' => ':count საათი',
'h' => ':count საათი',
'a_hour' => '{1}საათი|]1,Inf[:count საათი',
'minute' => ':count წუთი',
'min' => ':count წუთი',
'a_minute' => '{1}წუთი|]1,Inf[:count წუთი',
'second' => ':count წამი',
's' => ':count წამი',
'a_second' => '{1}რამდენიმე წამი|]1,Inf[:count წამი',
'ago' => function ($time) {
$replacements = [
// year
'წელი' => 'წლის',
// month
'თვე' => 'თვის',
// week
'კვირა' => 'კვირის',
// day
'დღე' => 'დღის',
// hour
'საათი' => 'საათის',
// minute
'წუთი' => 'წუთის',
// second
'წამი' => 'წამის',
];
$time = strtr($time, array_flip($replacements));
$time = strtr($time, $replacements);
return "$time წინ";
},
'from_now' => function ($time) {
$replacements = [
// year
'წელი' => 'წელიწადში',
// week
'კვირა' => 'კვირაში',
// day
'დღე' => 'დღეში',
// month
'თვე' => 'თვეში',
// hour
'საათი' => 'საათში',
// minute
'წუთი' => 'წუთში',
// second
'წამი' => 'წამში',
];
$time = strtr($time, array_flip($replacements));
$time = strtr($time, $replacements);
return $time;
},
'after' => function ($time) {
$replacements = [
// year
'წელი' => 'წლის',
// month
'თვე' => 'თვის',
// week
'კვირა' => 'კვირის',
// day
'დღე' => 'დღის',
// hour
'საათი' => 'საათის',
// minute
'წუთი' => 'წუთის',
// second
'წამი' => 'წამის',
];
$time = strtr($time, array_flip($replacements));
$time = strtr($time, $replacements);
return "$time შემდეგ";
},
'before' => function ($time) {
$replacements = [
// year
'წელი' => 'წლის',
// month
'თვე' => 'თვის',
// week
'კვირი' => 'კვირის',
// day
'დღე' => 'დღის',
// hour
'საათი' => 'საათის',
// minute
'წუთი' => 'წუთის',
// second
'წამი' => 'წამის',
];
$time = strtr($time, array_flip($replacements));
$time = strtr($time, $replacements);
return "$time უკან";
},
'diff_now' => 'ახლა',
'diff_yesterday' => 'გუშინ',
'diff_tomorrow' => 'ხვალ',
'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' => function (\Carbon\CarbonInterface $current, \Carbon\CarbonInterface $other) {
return ($current->isSameWeek($other) ? '' : '[შემდეგ] ').'dddd, LT[-ზე]';
},
'lastDay' => '[გუშინ], LT[-ზე]',
'lastWeek' => '[წინა] dddd, LT-ზე',
'sameElse' => 'L',
],
'ordinal' => function ($number) {
if ($number === 0) {
return $number;
}
if ($number === 1) {
return $number.'-ლი';
}
if (($number < 20) || ($number <= 100 && ($number % 20 === 0)) || ($number % 100 === 0)) {
return 'მე-'.$number;
}
return $number.'-ე';
},
'months' => ['იანვარს', 'თებერვალს', 'მარტს', 'აპრილის', 'მაისს', 'ივნისს', 'ივლისს', 'აგვისტს', 'სექტემბერს', 'ოქტომბერს', 'ნოემბერს', 'დეკემბერს'],
'months_standalone' => ['იანვარი', 'თებერვალი', 'მარტი', 'აპრილი', 'მაისი', 'ივნისი', 'ივლისი', 'აგვისტო', 'სექტემბერი', 'ოქტომბერი', 'ნოემბერი', 'დეკემბერი'],
'months_short' => ['იან', 'თებ', 'მარ', 'აპრ', 'მაი', 'ივნ', 'ივლ', 'აგვ', 'სექ', 'ოქტ', 'ნოე', 'დეკ'],
'months_regexp' => '/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/',
'weekdays' => ['კვირას', 'ორშაბათს', 'სამშაბათს', 'ოთხშაბათს', 'ხუთშაბათს', 'პარასკევს', 'შაბათს'],
'weekdays_standalone' => ['კვირა', 'ორშაბათი', 'სამშაბათი', 'ოთხშაბათი', 'ხუთშაბათი', 'პარასკევი', 'შაბათი'],
'weekdays_short' => ['კვი', 'ორშ', 'სამ', 'ოთხ', 'ხუთ', 'პარ', 'შაბ'],
'weekdays_min' => ['კვ', 'ორ', 'სა', 'ოთ', 'ხუ', 'პა', 'შა'],
'weekdays_regexp' => '/^([^d].*|.*[^d])$/',
'first_day_of_week' => 1,
'day_of_first_week_of_year' => 1,
'list' => [', ', ' და '],
'meridiem' => function ($hour) {
if ($hour >= 4) {
if ($hour < 11) {
return 'დილის';
}
if ($hour < 16) {
return 'შუადღის';
}
if ($hour < 22) {
return 'საღამოს';
}
}
return 'ღამის';
},
];

View file

@ -1,6 +1,6 @@
<?php
/*
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
@ -9,23 +9,59 @@
* file that was distributed with this source code.
*/
return array(
'year' => ':count ឆ្នាំ',
/**
* Authors:
* - Kruy Vanna
* - Sereysethy Touch
* - JD Isaacks
* - Sovichet Tep
*/
return [
'year' => '{1}មួយឆ្នាំ|]1,Inf[:count ឆ្នាំ',
'y' => ':count ឆ្នាំ',
'month' => ':count ខែ',
'month' => '{1}មួយខែ|]1,Inf[:count ខែ',
'm' => ':count ខែ',
'week' => ':count សប្ដាហ៍',
'w' => ':count សប្ដាហ៍',
'day' => ':count ថ្ងៃ',
'day' => '{1}មួយថ្ងៃ|]1,Inf[:count ថ្ងៃ',
'd' => ':count ថ្ងៃ',
'hour' => ':count ម៉ោង',
'hour' => '{1}មួយម៉ោង|]1,Inf[:count ម៉ោង',
'h' => ':count ម៉ោង',
'minute' => ':count នាទី',
'minute' => '{1}មួយនាទី|]1,Inf[:count នាទី',
'min' => ':count នាទី',
'second' => ':count វិនាទី',
'second' => '{1}ប៉ុន្មានវិនាទី|]1,Inf[:count វិនាទី',
's' => ':count វិនាទី',
'ago' => ':timeមុន',
'from_now' => ':timeពី​ឥឡូវ',
'from_now' => ':timeទៀត',
'after' => 'នៅ​ក្រោយ :time',
'before' => 'នៅ​មុន :time',
);
'diff_now' => 'ឥឡូវ',
'diff_yesterday' => 'ម្សិលមិញ',
'diff_tomorrow' => 'ថ្ងៃ​ស្អែក',
'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' => 'ទី:number',
'meridiem' => ['ព្រឹក', 'ល្ងាច'],
'months' => ['មករា', 'កុម្ភៈ', 'មីនា', 'មេសា', 'ឧសភា', 'មិថុនា', 'កក្កដា', 'សីហា', 'កញ្ញា', 'តុលា', 'វិច្ឆិកា', 'ធ្នូ'],
'months_short' => ['មករា', 'កុម្ភៈ', 'មីនា', 'មេសា', 'ឧសភា', 'មិថុនា', 'កក្កដា', 'សីហា', 'កញ្ញា', 'តុលា', 'វិច្ឆិកា', 'ធ្នូ'],
'weekdays' => ['អាទិត្យ', 'ច័ន្ទ', 'អង្គារ', 'ពុធ', 'ព្រហស្បតិ៍', 'សុក្រ', 'សៅរ៍'],
'weekdays_short' => ['អា', 'ច', 'អ', 'ព', 'ព្រ', 'សុ', 'ស'],
'weekdays_min' => ['អា', 'ច', 'អ', 'ព', 'ព្រ', 'សុ', 'ស'],
'first_day_of_week' => 1,
'day_of_first_week_of_year' => 4,
'list' => [', ', 'និង '],
];

View file

@ -1,6 +1,6 @@
<?php
/*
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
@ -9,23 +9,82 @@
* file that was distributed with this source code.
*/
return array(
'year' => ':count 년',
'y' => ':count 년',
'month' => ':count 개월',
'm' => ':count 개월',
'week' => ':count 주일',
'w' => ':count 주일',
'day' => ':count 일',
'd' => ':count 일',
'hour' => ':count 시간',
'h' => ':count 시간',
'minute' => ':count 분',
'min' => ':count 분',
'second' => ':count 초',
's' => ':count 초',
/**
* Authors:
* - Kunal Marwaha
* - FourwingsY
* - François B
* - Jason Katz-Brown
* - Seokjun Kim
* - Junho Kim
* - JD Isaacks
* - Juwon Kim
*/
return [
'year' => ':count년',
'a_year' => '{1}일년|]1,Inf[:count년',
'y' => ':count년',
'month' => ':count개월',
'a_month' => '{1}한달|]1,Inf[:count개월',
'm' => ':count개월',
'week' => ':count주',
'a_week' => '{1}일주일|]1,Inf[:count 주',
'w' => ':count주일',
'day' => ':count일',
'a_day' => '{1}하루|]1,Inf[:count일',
'd' => ':count일',
'hour' => ':count시간',
'a_hour' => '{1}한시간|]1,Inf[:count시간',
'h' => ':count시간',
'minute' => ':count분',
'a_minute' => '{1}일분|]1,Inf[:count분',
'min' => ':count분',
'second' => ':count초',
'a_second' => '{1}몇초|]1,Inf[:count초',
's' => ':count초',
'ago' => ':time 전',
'from_now' => ':time 후',
'after' => ':time 이후',
'before' => ':time 이전',
);
'after' => ':time 후',
'before' => ':time 전',
'diff_now' => '지금',
'diff_yesterday' => '어제',
'diff_tomorrow' => '내일',
'formats' => [
'LT' => 'A h:mm',
'LTS' => 'A h:mm:ss',
'L' => 'YYYY.MM.DD.',
'LL' => 'YYYY년 MMMM D일',
'LLL' => 'YYYY년 MMMM D일 A h:mm',
'LLLL' => 'YYYY년 MMMM D일 dddd A h: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 'M':
return $number.'월';
case 'w':
case 'W':
return $number.'주';
default:
return $number;
}
},
'meridiem' => ['오전', '오후'],
'months' => ['1월', '2월', '3월', '4월', '5월', '6월', '7월', '8월', '9월', '10월', '11월', '12월'],
'months_short' => ['1월', '2월', '3월', '4월', '5월', '6월', '7월', '8월', '9월', '10월', '11월', '12월'],
'weekdays' => ['일요일', '월요일', '화요일', '수요일', '목요일', '금요일', '토요일'],
'weekdays_short' => ['일', '월', '화', '수', '목', '금', '토'],
'weekdays_min' => ['일', '월', '화', '수', '목', '금', '토'],
'list' => ' ',
];

View file

@ -1,6 +1,6 @@
<?php
/*
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
@ -9,30 +9,122 @@
* file that was distributed with this source code.
*/
return array(
'year' => ':count metus|:count metus|:count metų',
'y' => ':count metus|:count metus|:count metų',
'month' => ':count mėnesį|:count mėnesius|:count mėnesių',
'm' => ':count mėnesį|:count mėnesius|:count mėnesių',
'week' => ':count savaitę|:count savaites|:count savaičių',
'w' => ':count savaitę|:count savaites|:count savaičių',
'day' => ':count dieną|:count dienas|:count dienų',
'd' => ':count dieną|:count dienas|:count dienų',
'hour' => ':count valandą|:count valandas|:count valandų',
'h' => ':count valandą|:count valandas|:count valandų',
'minute' => ':count minutę|:count minutes|:count minučių',
'min' => ':count minutę|:count minutes|:count minučių',
'second' => ':count sekundę|:count sekundes|:count sekundžių',
's' => ':count sekundę|:count sekundes|:count sekundžių',
'second_from_now' => ':count sekundės|:count sekundžių|:count sekundžių',
'minute_from_now' => ':count minutės|:count minučių|:count minučių',
'hour_from_now' => ':count valandos|:count valandų|:count valandų',
'day_from_now' => ':count dienos|:count dienų|:count dienų',
'week_from_now' => ':count savaitės|:count savaičių|:count savaičių',
'month_from_now' => ':count mėnesio|:count mėnesių|:count mėnesių',
/*
* Authors:
* - Philippe Vaucher
* - Tsutomu Kuroda
* - tjku
* - valdas406
* - Justas Palumickas
* - Max Melentiev
* - Andrius Janauskas
* - Juanito Fatas
* - Akira Matsuda
* - Christopher Dell
* - Enrique Vidal
* - Simone Carletti
* - Aaron Patterson
* - Nicolás Hock Isaza
* - Laurynas Butkus
* - Sven Fuchs
* - Dominykas Tijūnaitis
* - Justinas Bolys
* - Ričardas
* - Kirill Chalkin
* - Rolandas
* - Justinas (Gamesh)
*/
return [
'year' => ':count metai|:count metai|:count metų',
'y' => ':count m.',
'month' => ':count mėnuo|:count mėnesiai|:count mėnesį',
'm' => ':count mėn.',
'week' => ':count savaitė|:count savaitės|:count savaitę',
'w' => ':count sav.',
'day' => ':count diena|:count dienos|:count dienų',
'd' => ':count d.',
'hour' => ':count valanda|:count valandos|:count valandų',
'h' => ':count val.',
'minute' => ':count minutė|:count minutės|:count minutę',
'min' => ':count min.',
'second' => ':count sekundė|:count sekundės|:count sekundžių',
's' => ':count sek.',
'year_ago' => ':count metus|:count metus|:count metų',
'month_ago' => ':count mėnesį|:count mėnesius|:count mėnesių',
'week_ago' => ':count savaitę|:count savaites|:count savaičių',
'day_ago' => ':count dieną|:count dienas|:count dienų',
'hour_ago' => ':count valandą|:count valandas|:count valandų',
'minute_ago' => ':count minutę|:count minutes|:count minučių',
'second_ago' => ':count sekundę|:count sekundes|:count sekundžių',
'year_from_now' => ':count metų',
'month_from_now' => ':count mėnesio|:count mėnesių|:count mėnesių',
'week_from_now' => ':count savaitės|:count savaičių|:count savaičių',
'day_from_now' => ':count dienos|:count dienų|:count dienų',
'hour_from_now' => ':count valandos|:count valandų|:count valandų',
'minute_from_now' => ':count minutės|:count minučių|:count minučių',
'second_from_now' => ':count sekundės|:count sekundžių|:count sekundžių',
'year_after' => ':count metų',
'month_after' => ':count mėnesio|:count mėnesių|:count mėnesių',
'week_after' => ':count savaitės|:count savaičių|:count savaičių',
'day_after' => ':count dienos|:count dienų|:count dienų',
'hour_after' => ':count valandos|:count valandų|:count valandų',
'minute_after' => ':count minutės|:count minučių|:count minučių',
'second_after' => ':count sekundės|:count sekundžių|:count sekundžių',
'ago' => 'prieš :time',
'from_now' => 'už :time',
'after' => 'po :time',
'before' => ':time nuo dabar',
);
'first_day_of_week' => 1,
'day_of_first_week_of_year' => 4,
'diff_now' => 'ką tik',
'diff_yesterday' => 'vakar',
'diff_tomorrow' => 'rytoj',
'diff_before_yesterday' => 'užvakar',
'diff_after_tomorrow' => 'poryt',
'period_recurrences' => 'kartą|:count kartų',
'period_interval' => 'kiekvieną :interval',
'period_start_date' => 'nuo :date',
'period_end_date' => 'iki :date',
'months' => ['sausis', 'vasaris', 'kovas', 'balandis', 'gegužė', 'birželis', 'liepa', 'rugpjūtis', 'rugsėjis', 'spalis', 'lapkritis', 'gruodis'],
'months_short' => ['sau', 'vas', 'kov', 'bal', 'geg', 'bir', 'lie', 'rgp', 'rgs', 'spa', 'lap', 'gru'],
'weekdays' => ['sekmadienį', 'pirmadienį', 'antradienį', 'trečiadienį', 'ketvirtadienį', 'penktadienį', 'šeštadienį'],
'weekdays_standalone' => ['sekmadienis', 'pirmadienis', 'antradienis', 'trečiadienis', 'ketvirtadienis', 'penktadienis', 'šeštadienis'],
'weekdays_short' => ['sek', 'pir', 'ant', 'tre', 'ket', 'pen', 'šeš'],
'weekdays_min' => ['se', 'pi', 'an', 'tr', 'ke', 'pe', 'še'],
'list' => [', ', ' ir '],
'formats' => [
'LT' => 'HH:mm',
'LTS' => 'HH:mm:ss',
'L' => 'YYYY-MM-DD',
'LL' => 'MMMM DD, YYYY',
'LLL' => 'DD MMM HH:mm',
'LLLL' => 'MMMM DD, YYYY HH:mm',
],
'calendar' => [
'sameDay' => '[Šiandien] LT',
'nextDay' => '[Rytoj] LT',
'nextWeek' => 'dddd LT',
'lastDay' => '[Vakar] LT',
'lastWeek' => '[Paskutinį] dddd LT',
'sameElse' => 'L',
],
'ordinal' => function ($number) {
switch ($number) {
case 0:
return '0-is';
case 3:
return '3-ias';
default:
return "$number-as";
}
},
'meridiem' => ['priešpiet', 'popiet'],
];

View file

@ -1,6 +1,6 @@
<?php
/*
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
@ -9,39 +9,104 @@
* file that was distributed with this source code.
*/
return array(
'year' => '0 gadiem|:count gada|:count gadiem',
'y' => '0 gadiem|:count gada|:count gadiem',
/*
* Authors:
* - Philippe Vaucher
* - pirminis
* - Tsutomu Kuroda
* - tjku
* - Andris Zāģeris
* - Max Melentiev
* - Edgars Beigarts
* - Juanito Fatas
* - Vitauts Stočka
* - Akira Matsuda
* - Christopher Dell
* - Enrique Vidal
* - Simone Carletti
* - Aaron Patterson
* - Kaspars Bankovskis
* - Nicolás Hock Isaza
* - Viesturs Kavacs (Kavacky)
* - zakse
*/
return [
'year' => '0 gadiem|:count gads|:count gadiem',
'y' => '0 gadiem|:count gads|:count gadiem',
'a_year' => '{1}gads|0 gadiem|:count gads|:count gadiem',
'month' => '0 mēnešiem|:count mēneša|:count mēnešiem',
'm' => '0 mēnešiem|:count mēneša|:count mēnešiem',
'm' => ':count mēn.',
'a_month' => '{1}mēneša|0 mēnešiem|:count mēneša|:count mēnešiem',
'week' => '0 nedēļām|:count nedēļas|:count nedēļām',
'w' => '0 nedēļām|:count nedēļas|:count nedēļām',
'w' => ':count ned.',
'a_week' => '{1}nedēļas|0 nedēļām|:count nedēļas|:count nedēļām',
'day' => '0 dienām|:count dienas|:count dienām',
'd' => '0 dienām|:count dienas|:count dienām',
'a_day' => '{1}dienas|0 dienām|:count dienas|:count dienām',
'hour' => '0 stundām|:count stundas|:count stundām',
'h' => '0 stundām|:count stundas|:count stundām',
'h' => ':count st.',
'a_hour' => '{1}stundas|0 stundām|:count stundas|:count stundām',
'minute' => '0 minūtēm|:count minūtes|:count minūtēm',
'min' => '0 minūtēm|:count minūtes|:count minūtēm',
'min' => ':count min.',
'a_minute' => '{1}minūtes|0 minūtēm|:count minūtes|:count minūtēm',
'second' => '0 sekundēm|:count sekundes|:count sekundēm',
's' => '0 sekundēm|:count sekundes|:count sekundēm',
's' => ':count sek.',
'a_second' => '{1}dažas sekundes|0 sekundēm|:count sekundes|:count sekundēm',
'ago' => 'pirms :time',
'from_now' => 'pēc :time',
'after' => ':time vēlāk',
'before' => ':time pirms',
'year_after' => '0 gadus|:count gadu|:count gadus',
'a_year_after' => '{1}gadu|0 gadus|:count gadu|:count gadus',
'month_after' => '0 mēnešus|:count mēnesi|:count mēnešus',
'a_month_after' => '{1}mēnesi|0 mēnešus|:count mēnesi|:count mēnešus',
'week_after' => '0 nedēļas|:count nedēļu|:count nedēļas',
'a_week_after' => '{1}nedēļu|0 nedēļas|:count nedēļu|:count nedēļas',
'day_after' => '0 dienas|:count dienu|:count dienas',
'a_day_after' => '{1}dienu|0 dienas|:count dienu|:count dienas',
'hour_after' => '0 stundas|:count stundu|:count stundas',
'a_hour_after' => '{1}stundu|0 stundas|:count stundu|:count stundas',
'minute_after' => '0 minūtes|:count minūti|:count minūtes',
'a_minute_after' => '{1}minūti|0 minūtes|:count minūti|:count minūtes',
'second_after' => '0 sekundes|:count sekundi|:count sekundes',
'a_second_after' => '{1}sekundi|0 sekundes|:count sekundi|:count sekundes',
'year_before' => '0 gadus|:count gadu|:count gadus',
'a_year_before' => '{1}gadu|0 gadus|:count gadu|:count gadus',
'month_before' => '0 mēnešus|:count mēnesi|:count mēnešus',
'a_month_before' => '{1}mēnesi|0 mēnešus|:count mēnesi|:count mēnešus',
'week_before' => '0 nedēļas|:count nedēļu|:count nedēļas',
'a_week_before' => '{1}nedēļu|0 nedēļas|:count nedēļu|:count nedēļas',
'day_before' => '0 dienas|:count dienu|:count dienas',
'a_day_before' => '{1}dienu|0 dienas|:count dienu|:count dienas',
'hour_before' => '0 stundas|:count stundu|:count stundas',
'a_hour_before' => '{1}stundu|0 stundas|:count stundu|:count stundas',
'minute_before' => '0 minūtes|:count minūti|:count minūtes',
'a_minute_before' => '{1}minūti|0 minūtes|:count minūti|:count minūtes',
'second_before' => '0 sekundes|:count sekundi|:count sekundes',
);
'a_second_before' => '{1}sekundi|0 sekundes|:count sekundi|:count sekundes',
'first_day_of_week' => 1,
'day_of_first_week_of_year' => 4,
'list' => [', ', ' un '],
'diff_now' => 'tagad',
'diff_yesterday' => 'vakar',
'diff_tomorrow' => 'rīt',
'formats' => [
'LT' => 'HH:mm',
'LTS' => 'HH:mm:ss',
'L' => 'DD.MM.YYYY.',
'LL' => 'YYYY. [gada] D. MMMM',
'LLL' => 'DD.MM.YYYY., HH:mm',
'LLLL' => 'YYYY. [gada] D. MMMM, HH:mm',
],
'weekdays' => ['svētdiena', 'pirmdiena', 'otrdiena', 'trešdiena', 'ceturtdiena', 'piektdiena', 'sestdiena'],
'weekdays_short' => ['Sv.', 'P.', 'O.', 'T.', 'C.', 'Pk.', 'S.'],
'weekdays_min' => ['Sv.', 'P.', 'O.', 'T.', 'C.', 'Pk.', 'S.'],
'months' => ['janvārī', 'ferbruārī', 'martā', 'aprīlī', 'maijā', 'jūnijā', 'jūlijā', 'augustā', 'septembrī', 'oktobrī', 'novembrī', 'decembrī'],
'months_short' => ['Janv', 'Febr', 'Marts', 'Apr', 'Maijs', 'Jūn', 'Jūl', 'Aug', 'Sept', 'Okt', 'Nov', 'Dec'],
'meridiem' => ['priekšpusdiena', 'pēcpusdiena'],
];

View file

@ -1,6 +1,6 @@
<?php
/*
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
@ -9,16 +9,101 @@
* file that was distributed with this source code.
*/
return array(
/**
* Authors:
* - Sashko Todorov
* - Josh Soref
* - François B
* - Serhan Apaydın
* - Borislav Mickov
* - JD Isaacks
* - Tomi Atanasoski
*/
return [
'year' => ':count година|:count години',
'a_year' => 'година|:count години',
'y' => ':count год.',
'month' => ':count месец|:count месеци',
'a_month' => 'месец|:count месеци',
'm' => ':count месец|:count месеци',
'week' => ':count седмица|:count седмици',
'a_week' => 'седмица|:count седмици',
'w' => ':count седмица|:count седмици',
'day' => ':count ден|:count дена',
'a_day' => 'ден|:count дена',
'd' => ':count ден|:count дена',
'hour' => ':count час|:count часа',
'a_hour' => 'час|:count часа',
'h' => ':count час|:count часа',
'minute' => ':count минута|:count минути',
'a_minute' => 'минута|:count минути',
'min' => ':count мин.',
'second' => ':count секунда|:count секунди',
'a_second' => 'неколку секунди|:count секунди',
's' => ':count сек.',
'ago' => 'пред :time',
'from_now' => ':time од сега',
'from_now' => 'после :time',
'after' => 'по :time',
'before' => 'пред :time',
);
'diff_now' => 'сега',
'diff_yesterday' => 'вчера',
'diff_tomorrow' => 'утре',
'formats' => [
'LT' => 'H:mm',
'LTS' => 'H:mm:ss',
'L' => 'D.MM.YYYY',
'LL' => 'D MMMM YYYY',
'LLL' => 'D MMMM YYYY H:mm',
'LLLL' => 'dddd, D MMMM YYYY H:mm',
],
'calendar' => [
'sameDay' => '[Денес во] LT',
'nextDay' => '[Утре во] LT',
'nextWeek' => '[Во] dddd [во] LT',
'lastDay' => '[Вчера во] LT',
'lastWeek' => function (\Carbon\CarbonInterface $date) {
switch ($date->dayOfWeek) {
case 0:
case 3:
case 6:
return '[Изминатата] dddd [во] LT';
default:
return '[Изминатиот] dddd [во] LT';
}
},
'sameElse' => 'L',
],
'ordinal' => function ($number) {
$lastDigit = $number % 10;
$last2Digits = $number % 100;
if ($number === 0) {
return $number.'-ев';
}
if ($last2Digits === 0) {
return $number.'-ен';
}
if ($last2Digits > 10 && $last2Digits < 20) {
return $number.'-ти';
}
if ($lastDigit === 1) {
return $number.'-ви';
}
if ($lastDigit === 2) {
return $number.'-ри';
}
if ($lastDigit === 7 || $lastDigit === 8) {
return $number.'-ми';
}
return $number.'-ти';
},
'months' => ['јануари', 'февруари', 'март', 'април', 'мај', 'јуни', 'јули', 'август', 'септември', 'октомври', 'ноември', 'декември'],
'months_short' => ['јан', 'фев', 'мар', 'апр', 'мај', 'јун', 'јул', 'авг', 'сеп', 'окт', 'ное', 'дек'],
'weekdays' => ['недела', 'понеделник', 'вторник', 'среда', 'четврток', 'петок', 'сабота'],
'weekdays_short' => ['нед', 'пон', 'вто', 'сре', 'чет', 'пет', 'саб'],
'weekdays_min' => ['нe', 'пo', 'вт', 'ср', 'че', 'пе', 'сa'],
'first_day_of_week' => 1,
'day_of_first_week_of_year' => 1,
'list' => [', ', ' и '],
'meridiem' => ['АМ', 'ПМ'],
];

View file

@ -1,6 +1,6 @@
<?php
/*
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
@ -9,23 +9,72 @@
* file that was distributed with this source code.
*/
return array(
'year' => ':count tahun',
/**
* Authors:
* - Josh Soref
* - Azri Jamil
* - JD Isaacks
* - Josh Soref
* - Azri Jamil
* - Hariadi Hinta
*/
return [
'year' => '{1}setahun|]1,Inf[:count tahun',
'y' => ':count tahun',
'month' => ':count bulan',
'month' => '{1}sebulan|]1,Inf[:count bulan',
'm' => ':count bulan',
'week' => ':count minggu',
'week' => '{1}seminggu|]1,Inf[:count minggu',
'w' => ':count minggu',
'day' => ':count hari',
'day' => '{1}sehari|]1,Inf[:count hari',
'd' => ':count hari',
'hour' => ':count jam',
'hour' => '{1}sejam|]1,Inf[:count jam',
'h' => ':count jam',
'minute' => ':count minit',
'minute' => '{1}seminit|]1,Inf[:count minit',
'min' => ':count minit',
'second' => ':count saat',
'second' => '{1}beberapa saat|]1,Inf[:count saat',
's' => ':count saat',
'ago' => ':time yang lalu',
'ago' => ':time yang lepas',
'from_now' => ':time dari sekarang',
'after' => ':time selepas',
'before' => ':time sebelum',
);
'diff_now' => 'sekarang',
'diff_yesterday' => 'semalam',
'diff_tomorrow' => 'esok',
'formats' => [
'LT' => 'HH.mm',
'LTS' => 'HH.mm.ss',
'L' => 'DD/MM/YYYY',
'LL' => 'D MMMM YYYY',
'LLL' => 'D MMMM YYYY [pukul] HH.mm',
'LLLL' => 'dddd, D MMMM YYYY [pukul] HH.mm',
],
'calendar' => [
'sameDay' => '[Hari ini pukul] LT',
'nextDay' => '[Esok pukul] LT',
'nextWeek' => 'dddd [pukul] LT',
'lastDay' => '[Kelmarin pukul] LT',
'lastWeek' => 'dddd [lepas pukul] LT',
'sameElse' => 'L',
],
'meridiem' => function ($hour) {
if ($hour < 11) {
return 'pagi';
}
if ($hour < 15) {
return 'tengahari';
}
if ($hour < 19) {
return 'petang';
}
return 'malam';
},
'months' => ['Januari', 'Februari', 'Mac', 'April', 'Mei', 'Jun', 'Julai', 'Ogos', 'September', 'Oktober', 'November', 'Disember'],
'months_short' => ['Jan', 'Feb', 'Mac', 'Apr', 'Mei', 'Jun', 'Jul', 'Ogs', 'Sep', 'Okt', 'Nov', 'Dis'],
'weekdays' => ['Ahad', 'Isnin', 'Selasa', 'Rabu', 'Khamis', 'Jumaat', 'Sabtu'],
'weekdays_short' => ['Ahd', 'Isn', 'Sel', 'Rab', 'Kha', 'Jum', 'Sab'],
'weekdays_min' => ['Ah', 'Is', 'Sl', 'Rb', 'Km', 'Jm', 'Sb'],
'first_day_of_week' => 1,
'day_of_first_week_of_year' => 1,
'list' => [', ', ' dan '],
];

View file

@ -1,6 +1,6 @@
<?php
/*
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
@ -9,21 +9,52 @@
* file that was distributed with this source code.
*/
return array(
'year' => ':count jaar',
'y' => ':count jaar',
/**
* Authors:
* - Roy
* - Stephan
* - François B
* - Tim Fish
* - Kevin Huang
* - Jacob Middag
* - JD Isaacks
* - Roy
* - Stephan
* - François B
* - Tim Fish
* - Jacob Middag
* - JD Isaacks
* - Propaganistas
* - MegaXLR
* - adriaanzon
* - MonkeyPhysics
* - JeroenG
* - RikSomers
* - proclame
* - Rik de Groot (hwdegroot)
*/
return [
'year' => ':count jaar|:count jaar',
'a_year' => 'een jaar|:count jaar',
'y' => ':countj',
'month' => ':count maand|:count maanden',
'm' => ':count maand|:count maanden',
'a_month' => 'een maand|:count maanden',
'm' => ':countmnd',
'week' => ':count week|:count weken',
'w' => ':count week|:count weken',
'a_week' => 'een week|:count weken',
'w' => ':countw',
'day' => ':count dag|:count dagen',
'd' => ':count dag|:count dagen',
'hour' => ':count uur',
'h' => ':count uur',
'a_day' => 'een dag|:count dagen',
'd' => ':countd',
'hour' => ':count uur|:count uur',
'a_hour' => 'een uur|:count uur',
'h' => ':countu',
'minute' => ':count minuut|:count minuten',
'min' => ':count minuut|:count minuten',
'a_minute' => 'een minuut|:count minuten',
'min' => ':countmin',
'second' => ':count seconde|:count seconden',
's' => ':count seconde|:count seconden',
'a_second' => 'een paar seconden|:count seconden',
's' => ':counts',
'ago' => ':time geleden',
'from_now' => 'over :time',
'after' => ':time later',
@ -33,4 +64,46 @@ return array(
'diff_tomorrow' => 'morgen',
'diff_after_tomorrow' => 'overmorgen',
'diff_before_yesterday' => 'eergisteren',
);
'period_recurrences' => ':count keer',
'period_interval' => function ($interval) {
/** @var string $output */
$output = preg_replace('/^(een|één|1)\s+/', '', $interval);
if (preg_match('/^(een|één|1)( jaar|j| uur|u)/', $interval)) {
return "elk $output";
}
return "elke $output";
},
'period_start_date' => 'van :date',
'period_end_date' => 'tot :date',
'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' => '[vandaag om] LT',
'nextDay' => '[morgen om] LT',
'nextWeek' => 'dddd [om] LT',
'lastDay' => '[gisteren om] LT',
'lastWeek' => '[afgelopen] dddd [om] LT',
'sameElse' => 'L',
],
'ordinal' => function ($number) {
return $number.(($number === 1 || $number === 8 || $number >= 20) ? 'ste' : 'de');
},
'months' => ['januari', 'februari', 'maart', 'april', 'mei', 'juni', 'juli', 'augustus', 'september', 'oktober', 'november', 'december'],
'months_short' => ['jan', 'feb', 'mrt', 'apr', 'mei', 'jun', 'jul', 'aug', 'sep', 'okt', 'nov', 'dec'],
'mmm_suffix' => '.',
'weekdays' => ['zondag', 'maandag', 'dinsdag', 'woensdag', 'donderdag', 'vrijdag', 'zaterdag'],
'weekdays_short' => ['zo.', 'ma.', 'di.', 'wo.', 'do.', 'vr.', 'za.'],
'weekdays_min' => ['zo', 'ma', 'di', 'wo', 'do', 'vr', 'za'],
'first_day_of_week' => 1,
'day_of_first_week_of_year' => 4,
'list' => [', ', ' en '],
'meridiem' => ['\'s ochtends', '\'s middags'],
];

View file

@ -1,6 +1,6 @@
<?php
/*
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
@ -9,28 +9,20 @@
* file that was distributed with this source code.
*/
return array(
'year' => ':count år|:count år',
'y' => ':count år|:count år',
'month' => ':count måned|:count måneder',
'm' => ':count måned|:count måneder',
'week' => ':count uke|:count uker',
'w' => ':count uke|:count uker',
'day' => ':count dag|:count dager',
'd' => ':count dag|:count dager',
'hour' => ':count time|:count timer',
'h' => ':count time|:count timer',
'minute' => ':count minutt|:count minutter',
'min' => ':count minutt|:count minutter',
'second' => ':count sekund|:count sekunder',
's' => ':count sekund|:count sekunder',
'ago' => ':time siden',
'from_now' => 'om :time',
'after' => ':time etter',
'before' => ':time før',
'diff_now' => 'akkurat nå',
'diff_yesterday' => 'i går',
'diff_tomorrow' => 'i morgen',
'diff_before_yesterday' => 'i forgårs',
'diff_after_tomorrow' => 'i overmorgen',
);
/*
* Authors:
* - Daniel S. Billing
* - Paul
* - Jimmie Johansson
* - Jens Herlevsen
*/
return array_replace_recursive(require __DIR__.'/nb.php', [
'formats' => [
'LLL' => 'D. MMMM YYYY HH:mm',
'LLLL' => 'dddd, D. MMMM YYYY [kl.] HH:mm',
],
'calendar' => [
'nextWeek' => 'på dddd [kl.] LT',
'lastWeek' => '[i] dddd[s kl.] LT',
],
]);

View file

@ -1,6 +1,6 @@
<?php
/*
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
@ -9,23 +9,47 @@
* file that was distributed with this source code.
*/
return array(
/**
* Authors:
* - Wacław Jacek
* - François B
* - Tim Fish
* - Serhan Apaydın
* - Massimiliano Caniparoli
* - JD Isaacks
* - Jakub Szwacz
* - Jan
* - Paul
* - damlys
* - Marek (marast78)
* - Peter (UnrulyNatives)
* - Qrzysio
* - Jan (aso824)
*/
return [
'year' => ':count rok|:count lata|:count lat',
'y' => ':countr|:countl',
'a_year' => 'rok|:count lata|:count lat',
'y' => ':count r|:count l',
'month' => ':count miesiąc|:count miesiące|:count miesięcy',
'm' => ':countmies',
'a_month' => 'miesiąc|:count miesiące|:count miesięcy',
'm' => ':count mies.',
'week' => ':count tydzień|:count tygodnie|:count tygodni',
'w' => ':counttyg',
'a_week' => 'tydzień|:count tygodnie|:count tygodni',
'w' => ':count tyg.',
'day' => ':count dzień|:count dni|:count dni',
'd' => ':countd',
'a_day' => 'dzień|:count dni|:count dni',
'd' => ':count d',
'hour' => ':count godzina|:count godziny|:count godzin',
'h' => ':countg',
'a_hour' => 'godzina|:count godziny|:count godzin',
'h' => ':count godz.',
'minute' => ':count minuta|:count minuty|:count minut',
'min' => ':countm',
'a_minute' => 'minuta|:count minuty|:count minut',
'min' => ':count min.',
'second' => ':count sekunda|:count sekundy|:count sekund',
's' => ':counts',
'a_second' => '{1}kilka sekund|:count sekunda|:count sekundy|:count sekund',
's' => ':count sek.',
'ago' => ':time temu',
'from_now' => ':time od teraz',
'from_now' => 'za :time',
'after' => ':time po',
'before' => ':time przed',
'diff_now' => 'przed chwilą',
@ -33,4 +57,56 @@ return array(
'diff_tomorrow' => 'jutro',
'diff_before_yesterday' => 'przedwczoraj',
'diff_after_tomorrow' => 'pojutrze',
);
'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' => '[Dziś o] LT',
'nextDay' => '[Jutro o] LT',
'nextWeek' => function (\Carbon\CarbonInterface $date) {
switch ($date->dayOfWeek) {
case 0:
return '[W niedzielę o] LT';
case 2:
return '[We wtorek o] LT';
case 3:
return '[W środę o] LT';
case 6:
return '[W sobotę o] LT';
default:
return '[W] dddd [o] LT';
}
},
'lastDay' => '[Wczoraj o] LT',
'lastWeek' => function (\Carbon\CarbonInterface $date) {
switch ($date->dayOfWeek) {
case 0:
return '[W zeszłą niedzielę o] LT';
case 3:
return '[W zeszłą środę o] LT';
case 6:
return '[W zeszłą sobotę o] LT';
default:
return '[W zeszły] dddd [o] LT';
}
},
'sameElse' => 'L',
],
'ordinal' => ':number.',
'months' => ['stycznia', 'lutego', 'marca', 'kwietnia', 'maja', 'czerwca', 'lipca', 'sierpnia', 'września', 'października', 'listopada', 'grudnia'],
'months_standalone' => ['styczeń', 'luty', 'marzec', 'kwiecień', 'maj', 'czerwiec', 'lipiec', 'sierpień', 'wrzesień', 'październik', 'listopad', 'grudzień'],
'months_short' => ['sty', 'lut', 'mar', 'kwi', 'maj', 'cze', 'lip', 'sie', 'wrz', 'paź', 'lis', 'gru'],
'months_regexp' => '/DD?o?\.?(\[[^\[\]]*\]|\s)+MMMM?/',
'weekdays' => ['niedziela', 'poniedziałek', 'wtorek', 'środa', 'czwartek', 'piątek', 'sobota'],
'weekdays_short' => ['ndz', 'pon', 'wt', 'śr', 'czw', 'pt', 'sob'],
'weekdays_min' => ['Nd', 'Pn', 'Wt', 'Śr', 'Cz', 'Pt', 'So'],
'first_day_of_week' => 1,
'day_of_first_week_of_year' => 4,
'list' => [', ', ' i '],
'meridiem' => ['przed południem', 'po południu'],
];

View file

@ -1,6 +1,6 @@
<?php
/*
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
@ -9,23 +9,86 @@
* file that was distributed with this source code.
*/
return array(
/*
* Authors:
* - Cassiano Montanari
* - Matt Pope
* - François B
* - Prodis
* - JD Isaacks
* - Raphael Amorim
* - João Magalhães
* - victortobias
* - Paulo Freitas
* - Sebastian Thierer
* - Claudson Martins (claudsonm)
*/
return [
'year' => ':count ano|:count anos',
'y' => ':count ano|:count anos',
'a_year' => 'um ano|:count anos',
'y' => ':counta',
'month' => ':count mês|:count meses',
'm' => ':count mês|:count meses',
'a_month' => 'um mês|:count meses',
'm' => ':countm',
'week' => ':count semana|:count semanas',
'w' => ':count semana|:count semanas',
'a_week' => 'uma semana|:count semanas',
'w' => ':countsem',
'day' => ':count dia|:count dias',
'd' => ':count dia|:count dias',
'a_day' => 'um dia|:count dias',
'd' => ':countd',
'hour' => ':count hora|:count horas',
'h' => ':count hora|:count horas',
'a_hour' => 'uma hora|:count horas',
'h' => ':counth',
'minute' => ':count minuto|:count minutos',
'min' => ':count minuto|:count minutos',
'a_minute' => 'um minuto|:count minutos',
'min' => ':countmin',
'second' => ':count segundo|:count segundos',
's' => ':count segundo|:count segundos',
'ago' => ':time atrás',
'a_second' => 'alguns segundos|:count segundos',
's' => ':counts',
'ago' => 'há :time',
'from_now' => 'em :time',
'after' => ':time depois',
'before' => ':time antes',
);
'diff_now' => 'agora',
'diff_yesterday' => 'ontem',
'diff_tomorrow' => 'amanhã',
'diff_before_yesterday' => 'anteontem',
'diff_after_tomorrow' => 'depois de amanhã',
'period_recurrences' => 'uma vez|:count vezes',
'period_interval' => 'cada :interval',
'period_start_date' => 'de :date',
'period_end_date' => 'até :date',
'formats' => [
'LT' => 'HH:mm',
'LTS' => 'HH:mm:ss',
'L' => 'DD/MM/YYYY',
'LL' => 'D [de] MMMM [de] YYYY',
'LLL' => 'D [de] MMMM [de] YYYY HH:mm',
'LLLL' => 'dddd, D [de] MMMM [de] YYYY HH:mm',
],
'calendar' => [
'sameDay' => '[Hoje às] LT',
'nextDay' => '[Amanhã às] LT',
'nextWeek' => 'dddd [às] LT',
'lastDay' => '[Ontem às] LT',
'lastWeek' => function (\Carbon\CarbonInterface $date) {
switch ($date->dayOfWeek) {
case 0:
case 6:
return '[Último] dddd [às] LT';
default:
return '[Última] dddd [às] LT';
}
},
'sameElse' => 'L',
],
'ordinal' => ':numberº',
'months' => ['janeiro', 'fevereiro', 'março', 'abril', 'maio', 'junho', 'julho', 'agosto', 'setembro', 'outubro', 'novembro', 'dezembro'],
'months_short' => ['jan', 'fev', 'mar', 'abr', 'mai', 'jun', 'jul', 'ago', 'set', 'out', 'nov', 'dez'],
'weekdays' => ['domingo', 'segunda-feira', 'terça-feira', 'quarta-feira', 'quinta-feira', 'sexta-feira', 'sábado'],
'weekdays_short' => ['dom', 'seg', 'ter', 'qua', 'qui', 'sex', 'sáb'],
'weekdays_min' => ['Do', '2ª', '3ª', '4ª', '5ª', '6ª', 'Sá'],
'first_day_of_week' => 1,
'day_of_first_week_of_year' => 4,
'list' => [', ', ' e '],
];

View file

@ -1,6 +1,6 @@
<?php
/*
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
@ -9,32 +9,31 @@
* file that was distributed with this source code.
*/
return array(
'year' => ':count ano|:count anos',
'y' => ':counta|:counta',
'month' => ':count mês|:count meses',
'm' => ':countm|:countm',
'week' => ':count semana|:count semanas',
'w' => ':countsem|:countsem',
'day' => ':count dia|:count dias',
'd' => ':countd|:countd',
'hour' => ':count hora|:count horas',
'h' => ':counth|:counth',
'minute' => ':count minuto|:count minutos',
'min' => ':countmin|:countmin',
'second' => ':count segundo|:count segundos',
's' => ':counts|:counts',
'ago' => 'há :time',
'from_now' => 'em :time',
'after' => 'após :time',
'before' => ':time atrás',
'diff_now' => 'agora',
'diff_yesterday' => 'ontem',
'diff_tomorrow' => 'amanhã',
'diff_before_yesterday' => 'anteontem',
'diff_after_tomorrow' => 'depois de amanhã',
/*
* Authors:
* - Cassiano Montanari
* - Eduardo Dalla Vecchia
* - David Rodrigues
* - Matt Pope
* - François B
* - Prodis
* - Marlon Maxwel
* - JD Isaacks
* - Raphael Amorim
* - Rafael Raupp
* - felipeleite1
* - swalker
* - Lucas Macedo
* - Paulo Freitas
* - Sebastian Thierer
*/
return array_replace_recursive(require __DIR__.'/pt.php', [
'period_recurrences' => 'uma|:count vez',
'period_interval' => 'toda :interval',
'period_start_date' => 'de :date',
'period_end_date' => 'até :date',
);
'formats' => [
'LLL' => 'D [de] MMMM [de] YYYY [às] HH:mm',
'LLLL' => 'dddd, D [de] MMMM [de] YYYY [às] HH:mm',
],
'first_day_of_week' => 0,
'day_of_first_week_of_year' => 1,
]);

View file

@ -1,6 +1,6 @@
<?php
/*
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
@ -9,23 +9,65 @@
* file that was distributed with this source code.
*/
return array(
'year' => 'un an|:count ani|:count ani',
'y' => 'un an|:count ani|:count ani',
'month' => 'o lună|:count luni|:count luni',
'm' => 'o lună|:count luni|:count luni',
'week' => 'o săptămână|:count săptămâni|:count săptămâni',
'w' => 'o săptămână|:count săptămâni|:count săptămâni',
'day' => 'o zi|:count zile|:count zile',
'd' => 'o zi|:count zile|:count zile',
'hour' => 'o oră|:count ore|:count ore',
'h' => 'o oră|:count ore|:count ore',
'minute' => 'un minut|:count minute|:count minute',
'min' => 'un minut|:count minute|:count minute',
'second' => 'o secundă|:count secunde|:count secunde',
's' => 'o secundă|:count secunde|:count secunde',
'ago' => 'acum :time',
'from_now' => ':time de acum',
/**
* Authors:
* - Josh Soref
* - JD Isaacks
* - Cătălin Georgescu
* - Valentin Ivaşcu (oriceon)
*/
return [
'year' => ':count an|:count ani|:count ani',
'a_year' => 'un an|:count ani|:count ani',
'y' => ':count a.',
'month' => ':count lună|:count luni|:count luni',
'a_month' => 'o lună|:count luni|:count luni',
'm' => ':count l.',
'week' => ':count săptămână|:count săptămâni|:count săptămâni',
'a_week' => 'o săptămână|:count săptămâni|:count săptămâni',
'w' => ':count săp.',
'day' => ':count zi|:count zile|:count zile',
'a_day' => 'o zi|:count zile|:count zile',
'd' => ':count z.',
'hour' => ':count oră|:count ore|:count ore',
'a_hour' => 'o oră|:count ore|:count ore',
'h' => ':count o.',
'minute' => ':count minut|:count minute|:count minute',
'a_minute' => 'un minut|:count minute|:count minute',
'min' => ':count m.',
'second' => ':count secundă|:count secunde|:count secunde',
'a_second' => 'câteva secunde|:count secunde|:count secunde',
's' => ':count sec.',
'ago' => ':time în urmă',
'from_now' => 'peste :time',
'after' => 'peste :time',
'before' => 'acum :time',
);
'diff_now' => 'acum',
'diff_yesterday' => 'ieri',
'diff_tomorrow' => 'mâine',
'formats' => [
'LT' => 'H:mm',
'LTS' => 'H:mm:ss',
'L' => 'DD.MM.YYYY',
'LL' => 'D MMMM YYYY',
'LLL' => 'D MMMM YYYY H:mm',
'LLLL' => 'dddd, D MMMM YYYY H:mm',
],
'calendar' => [
'sameDay' => '[azi la] LT',
'nextDay' => '[mâine la] LT',
'nextWeek' => 'dddd [la] LT',
'lastDay' => '[ieri la] LT',
'lastWeek' => '[fosta] dddd [la] LT',
'sameElse' => 'L',
],
'months' => ['ianuarie', 'februarie', 'martie', 'aprilie', 'mai', 'iunie', 'iulie', 'august', 'septembrie', 'octombrie', 'noiembrie', 'decembrie'],
'months_short' => ['ian.', 'feb.', 'mar.', 'apr.', 'mai', 'iun.', 'iul.', 'aug.', 'sept.', 'oct.', 'nov.', 'dec.'],
'weekdays' => ['duminică', 'luni', 'marți', 'miercuri', 'joi', 'vineri', 'sâmbătă'],
'weekdays_short' => ['dum', 'lun', 'mar', 'mie', 'joi', 'vin', 'sâm'],
'weekdays_min' => ['du', 'lu', 'ma', 'mi', 'jo', 'vi', 'sâ'],
'first_day_of_week' => 1,
'day_of_first_week_of_year' => 1,
'list' => [', ', ' și '],
'meridiem' => ['a.m.', 'p.m.'],
];

View file

@ -1,6 +1,6 @@
<?php
/*
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
@ -9,23 +9,176 @@
* file that was distributed with this source code.
*/
return array(
/*
* Authors:
* - Bari Badamshin
* - Jørn Ølmheim
* - François B
* - Tim Fish
* - Коренберг Марк (imac)
* - Serhan Apaydın
* - RomeroMsk
* - vsn4ik
* - JD Isaacks
* - Bari Badamshin
* - Jørn Ølmheim
* - François B
* - Коренберг Марк (imac)
* - Serhan Apaydın
* - RomeroMsk
* - vsn4ik
* - JD Isaacks
* - Fellzo
* - andrey-helldar
* - Pavel Skripkin (psxx)
* - AlexWalkerson
* - Vladislav UnsealedOne
* - dima-bzz
*/
$transformDiff = function ($input) {
return strtr($input, [
'неделя' => 'неделю',
'секунда' => 'секунду',
'минута' => 'минуту',
]);
};
return [
'year' => ':count год|:count года|:count лет',
'y' => ':count год|:count года|:count лет',
'y' => ':count г.|:count г.|:count л.',
'a_year' => '{1}год|:count год|:count года|:count лет',
'month' => ':count месяц|:count месяца|:count месяцев',
'm' => ':count месяц|:count месяца|:count месяцев',
'week' => ':count неделю|:count недели|:count недель',
'w' => ':count неделю|:count недели|:count недель',
'm' => ':count мес.',
'a_month' => '{1}месяц|:count месяц|:count месяца|:count месяцев',
'week' => ':count неделя|:count недели|:count недель',
'w' => ':count нед.',
'a_week' => '{1}неделя|:count неделю|:count недели|:count недель',
'day' => ':count день|:count дня|:count дней',
'd' => ':count день|:count дня|:count дней',
'd' => ':count д.',
'a_day' => '{1}день|:count день|:count дня|:count дней',
'hour' => ':count час|:count часа|:count часов',
'h' => ':count час|:count часа|:count часов',
'minute' => ':count минуту|:count минуты|:count минут',
'min' => ':count минуту|:count минуты|:count минут',
'second' => ':count секунду|:count секунды|:count секунд',
's' => ':count секунду|:count секунды|:count секунд',
'ago' => ':time назад',
'from_now' => 'через :time',
'after' => ':time после',
'before' => ':time до',
);
'h' => ':count ч.',
'a_hour' => '{1}час|:count час|:count часа|:count часов',
'minute' => ':count минута|:count минуты|:count минут',
'min' => ':count мин.',
'a_minute' => '{1}минута|:count минута|:count минуты|:count минут',
'second' => ':count секунда|:count секунды|:count секунд',
's' => ':count сек.',
'a_second' => '{1}несколько секунд|:count секунду|:count секунды|:count секунд',
'ago' => function ($time) use ($transformDiff) {
return $transformDiff($time).' назад';
},
'from_now' => function ($time) use ($transformDiff) {
return 'через '.$transformDiff($time);
},
'after' => function ($time) use ($transformDiff) {
return $transformDiff($time).' после';
},
'before' => function ($time) use ($transformDiff) {
return $transformDiff($time).' до';
},
'diff_now' => 'только что',
'diff_yesterday' => 'вчера',
'diff_tomorrow' => 'завтра',
'diff_before_yesterday' => 'позавчера',
'diff_after_tomorrow' => 'послезавтра',
'formats' => [
'LT' => 'H:mm',
'LTS' => 'H:mm:ss',
'L' => 'DD.MM.YYYY',
'LL' => 'D MMMM YYYY г.',
'LLL' => 'D MMMM YYYY г., H:mm',
'LLLL' => 'dddd, D MMMM YYYY г., H:mm',
],
'calendar' => [
'sameDay' => '[Сегодня, в] LT',
'nextDay' => '[Завтра, в] LT',
'nextWeek' => function (\Carbon\CarbonInterface $current, \Carbon\CarbonInterface $other) {
if ($current->week !== $other->week) {
switch ($current->dayOfWeek) {
case 0:
return '[В следующее] dddd, [в] LT';
case 1:
case 2:
case 4:
return '[В следующий] dddd, [в] LT';
case 3:
case 5:
case 6:
return '[В следующую] dddd, [в] LT';
}
}
if ($current->dayOfWeek === 2) {
return '[Во] dddd, [в] LT';
}
return '[В] dddd, [в] LT';
},
'lastDay' => '[Вчера, в] LT',
'lastWeek' => function (\Carbon\CarbonInterface $current, \Carbon\CarbonInterface $other) {
if ($current->week !== $other->week) {
switch ($current->dayOfWeek) {
case 0:
return '[В прошлое] dddd, [в] LT';
case 1:
case 2:
case 4:
return '[В прошлый] dddd, [в] LT';
case 3:
case 5:
case 6:
return '[В прошлую] dddd, [в] LT';
}
}
if ($current->dayOfWeek === 2) {
return '[Во] dddd, [в] LT';
}
return '[В] dddd, [в] LT';
},
'sameElse' => 'L',
],
'ordinal' => function ($number, $period) {
switch ($period) {
case 'M':
case 'd':
case 'DDD':
return $number.'-й';
case 'D':
return $number.'-го';
case 'w':
case 'W':
return $number.'-я';
default:
return $number;
}
},
'meridiem' => function ($hour) {
if ($hour < 4) {
return 'ночи';
}
if ($hour < 12) {
return 'утра';
}
if ($hour < 17) {
return 'дня';
}
return 'вечера';
},
'months' => ['января', 'февраля', 'марта', 'апреля', 'мая', 'июня', 'июля', 'августа', 'сентября', 'октября', 'ноября', 'декабря'],
'months_standalone' => ['январь', 'февраль', 'март', 'апрель', 'май', 'июнь', 'июль', 'август', 'сентябрь', 'октябрь', 'ноябрь', 'декабрь'],
'months_short' => ['янв', 'фев', 'мар', 'апр', 'мая', 'июн', 'июл', 'авг', 'сен', 'окт', 'ноя', 'дек'],
'months_short_standalone' => ['янв', 'фев', 'мар', 'апр', 'май', 'июн', 'июл', 'авг', 'сен', 'окт', 'ноя', 'дек'],
'months_regexp' => '/DD?o?\.?(\[[^\[\]]*\]|\s)+MMMM?/',
'weekdays' => ['воскресенье', 'понедельник', 'вторник', 'среду', 'четверг', 'пятницу', 'субботу'],
'weekdays_standalone' => ['воскресенье', 'понедельник', 'вторник', 'среда', 'четверг', 'пятница', 'суббота'],
'weekdays_short' => ['вск', 'пнд', 'втр', 'срд', 'чтв', 'птн', 'сбт'],
'weekdays_min' => ['вс', 'пн', 'вт', 'ср', 'чт', 'пт', 'сб'],
'weekdays_regexp' => '/\[\s*(В|в)\s*((?:прошлую|следующую|эту)\s*)?\]\s*dddd/',
'first_day_of_week' => 1,
'day_of_first_week_of_year' => 1,
'list' => [', ', ' и '],
];

View file

@ -1,6 +1,6 @@
<?php
/*
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
@ -9,21 +9,44 @@
* file that was distributed with this source code.
*/
return array(
/*
* 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ý
*/
return [
'year' => 'rok|:count roky|:count rokov',
'y' => 'rok|:count roky|:count rokov',
'y' => ':count r',
'month' => 'mesiac|:count mesiace|:count mesiacov',
'm' => 'mesiac|:count mesiace|:count mesiacov',
'm' => ':count m',
'week' => 'týždeň|:count týždne|:count týždňov',
'w' => 'týždeň|:count týždne|:count týždňov',
'w' => ':count t',
'day' => 'deň|:count dni|:count dní',
'd' => 'deň|:count dni|:count dní',
'd' => ':count d',
'hour' => 'hodinu|:count hodiny|:count hodín',
'h' => 'hodinu|:count hodiny|:count hodín',
'h' => ':count h',
'minute' => 'minútu|:count minúty|:count minút',
'min' => 'minútu|:count minúty|:count minút',
'min' => ':count min',
'second' => 'sekundu|:count sekundy|:count sekúnd',
's' => 'sekundu|:count sekundy|:count sekúnd',
's' => ':count s',
'ago' => 'pred :time',
'from_now' => 'za :time',
'after' => 'o :time neskôr',
@ -35,4 +58,24 @@ return array(
'hour_ago' => 'hodinou|:count hodinami|:count hodinami',
'minute_ago' => 'minútou|:count minútami|:count minútami',
'second_ago' => 'sekundou|:count sekundami|:count sekundami',
);
'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',
],
'weekdays' => ['nedeľa', 'pondelok', 'utorok', 'streda', 'štvrtok', 'piatok', 'sobota'],
'weekdays_short' => ['ne', 'po', 'ut', 'st', 'št', 'pi', 'so'],
'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í'],
];

View file

@ -1,6 +1,6 @@
<?php
/*
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
@ -9,35 +9,112 @@
* file that was distributed with this source code.
*/
return array(
/*
* Authors:
* - Philippe Vaucher
* - Tsutomu Kuroda
* - tjku
* - Max Melentiev
* - Juanito Fatas
* - Akira Matsuda
* - Christopher Dell
* - Enrique Vidal
* - Simone Carletti
* - Aaron Patterson
* - Nicolás Hock Isaza
* - Miha Rebernik
* - Gal Jakič (morpheus7CS)
* - Glavić
* - Anže Časar
* - Lovro Tramšek (Lovro1107)
*/
return [
'year' => ':count leto|:count leti|:count leta|:count let',
'y' => ':count leto|:count leti|:count leta|:count let',
'month' => ':count mesec|:count meseca|:count mesece|:count mesecev',
'm' => ':count mesec|:count meseca|:count mesece|:count mesecev',
'm' => ':count mes.',
'week' => ':count teden|:count tedna|:count tedne|:count tednov',
'w' => ':count teden|:count tedna|:count tedne|:count tednov',
'w' => ':count ted.',
'day' => ':count dan|:count dni|:count dni|:count dni',
'd' => ':count dan|:count dni|:count dni|:count dni',
'hour' => ':count uro|:count uri|:count ure|:count ur',
'h' => ':count uro|:count uri|:count ure|:count ur',
'minute' => ':count minuto|:count minuti|:count minute|:count minut',
'min' => ':count minuto|:count minuti|:count minute|:count minut',
'second' => ':count sekundo|:count sekundi|:count sekunde|:count sekund',
's' => ':count sekundo|:count sekundi|:count sekunde|:count sekund',
'hour' => ':count ura|:count uri|:count ure|:count ur',
'h' => ':count h',
'minute' => ':count minuta|:count minuti|:count minute|:count minut',
'min' => ':count min.',
'second' => ':count sekunda|:count sekundi|:count sekunde|:count sekund',
's' => ':count s',
'year_ago' => ':count letom|:count leti|:count leti|:count leti',
'y_ago' => ':count letom|:count leti|:count leti|:count leti',
'month_ago' => ':count mesecem|:count meseci|:count meseci|:count meseci',
'week_ago' => ':count tednom|:count tednoma|:count tedni|:count tedni',
'day_ago' => ':count dnem|:count dnevoma|:count dnevi|:count dnevi',
'd_ago' => ':count dnem|:count dnevoma|:count dnevi|:count dnevi',
'hour_ago' => ':count uro|:count urama|:count urami|:count urami',
'minute_ago' => ':count minuto|:count minutama|:count minutami|:count minutami',
'second_ago' => ':count sekundo|:count sekundama|:count sekundami|:count sekundami',
'day_from_now' => ':count dan|:count dneva|:count dni|:count dni',
'd_from_now' => ':count dan|:count dneva|:count dni|:count dni',
'hour_from_now' => ':count uro|:count uri|:count ure|:count ur',
'minute_from_now' => ':count minuto|:count minuti|:count minute|:count minut',
'second_from_now' => ':count sekundo|:count sekundi|:count sekunde|:count sekund',
'ago' => 'pred :time',
'from_now' => 'čez :time',
'after' => 'čez :time',
'before' => 'pred :time',
'after' => ':time kasneje',
'before' => ':time prej',
'diff_now' => 'ravnokar',
'diff_yesterday' => 'včeraj',
'diff_tomorrow' => 'jutri',
'diff_before_yesterday' => 'predvčerajšnjim',
'diff_after_tomorrow' => 'pojutrišnjem',
);
'first_day_of_week' => 1,
'day_of_first_week_of_year' => 1,
'period_start_date' => 'od :date',
'period_end_date' => 'do :date',
'formats' => [
'LT' => 'H:mm',
'LTS' => 'H:mm:ss',
'L' => 'DD.MM.YYYY',
'LL' => 'D. MMMM YYYY',
'LLL' => 'D. MMMM YYYY H:mm',
'LLLL' => 'dddd, D. MMMM YYYY H:mm',
],
'calendar' => [
'sameDay' => '[danes ob] LT',
'nextDay' => '[jutri ob] LT',
'nextWeek' => 'dddd [ob] LT',
'lastDay' => '[včeraj ob] LT',
'lastWeek' => function (\Carbon\CarbonInterface $date) {
switch ($date->dayOfWeek) {
case 0:
return '[preteklo] [nedeljo] [ob] LT';
case 1:
return '[pretekli] [ponedeljek] [ob] LT';
case 2:
return '[pretekli] [torek] [ob] LT';
case 3:
return '[preteklo] [sredo] [ob] LT';
case 4:
return '[pretekli] [četrtek] [ob] LT';
case 5:
return '[pretekli] [petek] [ob] LT';
case 6:
return '[preteklo] [soboto] [ob] LT';
}
},
'sameElse' => 'L',
],
'months' => ['Januar', 'Februar', 'Marec', 'April', 'Maj', 'Junij', 'Julij', 'Avgust', 'September', 'Oktober', 'November', 'December'],
'months_short' => ['Jan', 'Feb', 'Mar', 'Apr', 'Maj', 'Jun', 'Jul', 'Avg', 'Sep', 'Okt', 'Nov', 'Dec'],
'weekdays' => ['Nedelja', 'Ponedeljek', 'Torek', 'Sreda', 'Četrtek', 'Petek', 'Sobota'],
'weekdays_short' => ['Ned', 'Pon', 'Tor', 'Sre', 'Čet', 'Pet', 'Sob'],
'weekdays_min' => ['Ne', 'Po', 'To', 'Sr', 'Če', 'Pe', 'So'],
'list' => [', ', ' in '],
'meridiem' => ['dopoldan', 'popoldan'],
];

View file

@ -1,6 +1,6 @@
<?php
/*
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
@ -9,23 +9,67 @@
* file that was distributed with this source code.
*/
return array(
/**
* Authors:
* - François B
* - JD Isaacks
* - Fadion Dashi
*/
return [
'year' => ':count vit|:count vjet',
'y' => ':count vit|:count vjet',
'month' => ':count muaj|:count muaj',
'm' => ':count muaj|:count muaj',
'week' => ':count javë|:count javë',
'w' => ':count javë|:count javë',
'day' => ':count ditë|:count ditë',
'd' => ':count ditë|:count ditë',
'hour' => ':count orë|:count orë',
'h' => ':count orë|:count orë',
'a_year' => 'një vit|:count vite',
'y' => ':count v.',
'month' => ':count muaj',
'a_month' => 'një muaj|:count muaj',
'm' => ':count muaj',
'week' => ':count javë',
'a_week' => ':count javë|:count javë',
'w' => ':count j.',
'day' => ':count ditë',
'a_day' => 'një ditë|:count ditë',
'd' => ':count d.',
'hour' => ':count orë',
'a_hour' => 'një orë|:count orë',
'h' => ':count o.',
'minute' => ':count minutë|:count minuta',
'min' => ':count minutë|:count minuta',
'a_minute' => 'një minutë|:count minuta',
'min' => ':count min.',
'second' => ':count sekondë|:count sekonda',
's' => ':count sekondë|:count sekonda',
'a_second' => 'disa sekonda|:count sekonda',
's' => ':count s.',
'ago' => ':time më parë',
'from_now' => ':time nga tani',
'from_now' => 'në :time',
'after' => ':time pas',
'before' => ':time para',
);
'diff_now' => 'tani',
'diff_yesterday' => 'dje',
'diff_tomorrow' => 'nesër',
'diff_before_yesterday' => 'pardje',
'diff_after_tomorrow' => 'pasnesër',
'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' => '[Sot në] LT',
'nextDay' => '[Nesër në] LT',
'nextWeek' => 'dddd [në] LT',
'lastDay' => '[Dje në] LT',
'lastWeek' => 'dddd [e kaluar në] LT',
'sameElse' => 'L',
],
'ordinal' => ':number.',
'meridiem' => ['PD', 'MD'],
'months' => ['janar', 'shkurt', 'mars', 'prill', 'maj', 'qershor', 'korrik', 'gusht', 'shtator', 'tetor', 'nëntor', 'dhjetor'],
'months_short' => ['jan', 'shk', 'mar', 'pri', 'maj', 'qer', 'kor', 'gus', 'sht', 'tet', 'nën', 'dhj'],
'weekdays' => ['e diel', 'e hënë', 'e martë', 'e mërkurë', 'e enjte', 'e premte', 'e shtunë'],
'weekdays_short' => ['die', 'hën', 'mar', 'mër', 'enj', 'pre', 'sht'],
'weekdays_min' => ['d', 'h', 'ma', 'më', 'e', 'p', 'sh'],
'first_day_of_week' => 1,
'day_of_first_week_of_year' => 4,
'list' => [', ', ' dhe '],
];

View file

@ -1,6 +1,6 @@
<?php
/*
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
@ -9,29 +9,97 @@
* file that was distributed with this source code.
*/
return array(
/**
* Authors:
* - Josh Soref
* - François B
* - shaishavgandhi05
* - Serhan Apaydın
* - JD Isaacks
* - Glavić
* - Milos Sakovic
*/
return [
'year' => ':count godina|:count godine|:count godina',
'y' => ':count godina|:count godine|:count godina',
'y' => ':count g.',
'month' => ':count mesec|:count meseca|:count meseci',
'm' => ':count mesec|:count meseca|:count meseci',
'm' => ':count mj.',
'week' => ':count nedelja|:count nedelje|:count nedelja',
'w' => ':count nedelja|:count nedelje|:count nedelja',
'w' => ':count ned.',
'day' => ':count dan|:count dana|:count dana',
'd' => ':count dan|:count dana|:count dana',
'd' => ':count d.',
'hour' => ':count sat|:count sata|:count sati',
'h' => ':count sat|:count sata|:count sati',
'minute' => ':count minut|:count minuta |:count minuta',
'min' => ':count minut|:count minuta |:count minuta',
'second' => ':count sekund|:count sekunde|:count sekunde',
's' => ':count sekund|:count sekunde|:count sekunde',
'h' => ':count č.',
'minute' => ':count minut|:count minuta|:count minuta',
'min' => ':count min.',
'second' => ':count sekundu|:count sekunde|:count sekundi',
's' => ':count sek.',
'ago' => 'pre :time',
'from_now' => ':time od sada',
'from_now' => 'za :time',
'after' => 'nakon :time',
'before' => 'pre :time',
'year_from_now' => '{1,21,31,41,51} :count godinu|{2,3,4,22,23,24,32,33,34,42,43,44,52,53,54} :count godine|[5,Inf[ :count godina',
'year_ago' => '{1,21,31,41,51} :count godinu|{2,3,4,22,23,24,32,33,34,42,43,44,52,53,54} :count godine|[5,Inf[ :count godina',
'year_from_now' => ':count godinu|:count godine|:count godina',
'year_ago' => ':count godinu|:count godine|:count godina',
'week_from_now' => ':count nedelju|:count nedelje|:count nedelja',
'week_ago' => ':count nedelju|:count nedelje|:count nedelja',
'week_from_now' => '{1} :count nedelju|{2,3,4} :count nedelje|[5,Inf[ :count nedelja',
'week_ago' => '{1} :count nedelju|{2,3,4} :count nedelje|[5,Inf[ :count nedelja',
);
'diff_now' => 'upravo sada',
'diff_yesterday' => 'juče',
'diff_tomorrow' => 'sutra',
'diff_before_yesterday' => 'prekjuče',
'diff_after_tomorrow' => 'preksutra',
'formats' => [
'LT' => 'H:mm',
'LTS' => 'H:mm:ss',
'L' => 'DD.MM.YYYY',
'LL' => 'D. MMMM YYYY',
'LLL' => 'D. MMMM YYYY H:mm',
'LLLL' => 'dddd, D. MMMM YYYY H:mm',
],
'calendar' => [
'sameDay' => '[danas u] LT',
'nextDay' => '[sutra u] LT',
'nextWeek' => function (\Carbon\CarbonInterface $date) {
switch ($date->dayOfWeek) {
case 0:
return '[u nedelju u] LT';
case 3:
return '[u sredu u] LT';
case 6:
return '[u subotu u] LT';
default:
return '[u] dddd [u] LT';
}
},
'lastDay' => '[juče u] LT',
'lastWeek' => function (\Carbon\CarbonInterface $date) {
switch ($date->dayOfWeek) {
case 0:
return '[prošle nedelje u] LT';
case 1:
return '[prošlog ponedeljka u] LT';
case 2:
return '[prošlog utorka u] LT';
case 3:
return '[prošle srede u] LT';
case 4:
return '[prošlog četvrtka u] LT';
case 5:
return '[prošlog petka u] LT';
default:
return '[prošle subote u] LT';
}
},
'sameElse' => 'L',
],
'ordinal' => ':number.',
'months' => ['januar', 'februar', 'mart', 'april', 'maj', 'jun', 'jul', 'avgust', 'septembar', 'oktobar', 'novembar', 'decembar'],
'months_short' => ['jan.', 'feb.', 'mar.', 'apr.', 'maj', 'jun', 'jul', 'avg.', 'sep.', 'okt.', 'nov.', 'dec.'],
'weekdays' => ['nedelja', 'ponedeljak', 'utorak', 'sreda', 'četvrtak', 'petak', 'subota'],
'weekdays_short' => ['ned.', 'pon.', 'uto.', 'sre.', 'čet.', 'pet.', 'sub.'],
'weekdays_min' => ['ne', 'po', 'ut', 'sr', 'če', 'pe', 'su'],
'first_day_of_week' => 1,
'day_of_first_week_of_year' => 1,
'list' => [', ', ' i '],
];

View file

@ -1,6 +1,6 @@
<?php
/*
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
@ -9,35 +9,94 @@
* file that was distributed with this source code.
*/
return array(
'year' => '{2,3,4,22,23,24,32,33,34,42,43,44,52,53,54}:count године|[0,Inf[ :count година',
/*
* Authors:
* - Glavić
* - Milos Sakovic
*/
return [
'year' => '{2,3,4,22,23,24,32,33,34,42,43,44,52,53,54}:count године|[0,Inf[:count година',
'y' => ':count г.',
'month' => '{1} :count мјесец|{2,3,4}:count мјесеца|[5,Inf[ :count мјесеци',
'month' => '{1}:count мјесец|{2,3,4}:count мјесеца|[0,Inf[:count мјесеци',
'm' => ':count мј.',
'week' => '{1} :count недјеља|{2,3,4}:count недјеље|[5,Inf[ :count недјеља',
'week' => '{1}:count недјеља|{2,3,4}:count недјеље|[0,Inf[:count недјеља',
'w' => ':count нед.',
'day' => '{1,21,31} :count дан|[2,Inf[ :count дана',
'day' => '{1,21,31}:count дан|[0,Inf[:count дана',
'd' => ':count д.',
'hour' => '{1,21} :count сат|{2,3,4,22,23,24}:count сата|[5,Inf[ :count сати',
'hour' => '{1,21}:count сат|{2,3,4,22,23,24}:count сата|[0,Inf[:count сати',
'h' => ':count ч.',
'minute' => '{1,21,31,41,51} :count минут|[2,Inf[ :count минута',
'minute' => '{1,21,31,41,51}:count минут|[0,Inf[:count минута',
'min' => ':count мин.',
'second' => '{1,21,31,41,51} :count секунд|{2,3,4,22,23,24,32,33,34,42,43,44,52,53,54}:count секунде|[5,Inf[:count секунди',
'second' => '{1,21,31,41,51}:count секунд|{2,3,4,22,23,24,32,33,34,42,43,44,52,53,54}:count секунде|[0,Inf[:count секунди',
's' => ':count сек.',
'ago' => 'прије :time',
'from_now' => 'за :time',
'after' => ':time након',
'before' => ':time прије',
'year_from_now' => '{1,21,31,41,51} :count годину|{2,3,4,22,23,24,32,33,34,42,43,44,52,53,54} :count године|[5,Inf[ :count година',
'year_ago' => '{1,21,31,41,51} :count годину|{2,3,4,22,23,24,32,33,34,42,43,44,52,53,54} :count године|[5,Inf[ :count година',
'year_from_now' => '{1,21,31,41,51}:count годину|{2,3,4,22,23,24,32,33,34,42,43,44,52,53,54}:count године|[0,Inf[:count година',
'year_ago' => '{1,21,31,41,51}:count годину|{2,3,4,22,23,24,32,33,34,42,43,44,52,53,54}:count године|[0,Inf[:count година',
'week_from_now' => '{1} :count недјељу|{2,3,4} :count недјеље|[5,Inf[ :count недјеља',
'week_ago' => '{1} :count недјељу|{2,3,4} :count недјеље|[5,Inf[ :count недјеља',
'week_from_now' => '{1}:count недјељу|{2,3,4}:count недјеље|[0,Inf[:count недјеља',
'week_ago' => '{1}:count недјељу|{2,3,4}:count недјеље|[0,Inf[:count недјеља',
'diff_now' => 'управо сада',
'diff_yesterday' => 'јуче',
'diff_tomorrow' => 'сутра',
'diff_before_yesterday' => 'прекјуче',
'diff_after_tomorrow' => 'прекосјутра',
);
'formats' => [
'LT' => 'H:mm',
'LTS' => 'H:mm:ss',
'L' => 'DD.MM.YYYY',
'LL' => 'D. MMMM YYYY',
'LLL' => 'D. MMMM YYYY H:mm',
'LLLL' => 'dddd, D. MMMM YYYY H:mm',
],
'calendar' => [
'sameDay' => '[данас у] LT',
'nextDay' => '[сутра у] LT',
'nextWeek' => function (\Carbon\CarbonInterface $date) {
switch ($date->dayOfWeek) {
case 0:
return '[у недељу у] LT';
case 3:
return '[у среду у] LT';
case 6:
return '[у суботу у] LT';
default:
return '[у] dddd [у] LT';
}
},
'lastDay' => '[јуче у] LT',
'lastWeek' => function (\Carbon\CarbonInterface $date) {
switch ($date->dayOfWeek) {
case 0:
return '[прошле недеље у] LT';
case 1:
return '[прошлог понедељка у] LT';
case 2:
return '[прошлог уторка у] LT';
case 3:
return '[прошле среде у] LT';
case 4:
return '[прошлог четвртка у] LT';
case 5:
return '[прошлог петка у] LT';
default:
return '[прошле суботе у] LT';
}
},
'sameElse' => 'L',
],
'ordinal' => ':number.',
'months' => ['јануар', 'фебруар', 'март', 'април', 'мај', 'јун', 'јул', 'август', 'септембар', 'октобар', 'новембар', 'децембар'],
'months_short' => ['јан.', 'феб.', 'мар.', 'апр.', 'мај', 'јун', 'јул', 'авг.', 'сеп.', 'окт.', 'нов.', 'дец.'],
'weekdays' => ['недеља', 'понедељак', 'уторак', 'среда', 'четвртак', 'петак', 'субота'],
'weekdays_short' => ['нед.', 'пон.', 'уто.', 'сре.', 'чет.', 'пет.', 'суб.'],
'weekdays_min' => ['не', 'по', 'ут', 'ср', 'че', 'пе', 'су'],
'first_day_of_week' => 1,
'day_of_first_week_of_year' => 1,
'list' => [', ', ' и '],
'meridiem' => ['АМ', 'ПМ'],
];

View file

@ -1,6 +1,6 @@
<?php
/*
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
@ -9,35 +9,55 @@
* file that was distributed with this source code.
*/
return array(
'year' => '{2,3,4,22,23,24,32,33,34,42,43,44,52,53,54}:count godine|[0,Inf[ :count godina',
'y' => ':count g.',
'month' => '{1} :count mjesec|{2,3,4}:count mjeseca|[5,Inf[ :count mjeseci',
'm' => ':count mj.',
'week' => '{1} :count nedjelja|{2,3,4}:count nedjelje|[5,Inf[ :count nedjelja',
'w' => ':count ned.',
'day' => '{1,21,31} :count dan|[2,Inf[ :count dana',
'd' => ':count d.',
'hour' => '{1,21} :count sat|{2,3,4,22,23,24}:count sata|[5,Inf[ :count sati',
'h' => ':count č.',
'minute' => '{1,21,31,41,51} :count minut|[2,Inf[ :count minuta',
'min' => ':count min.',
'second' => '{1,21,31,41,51} :count sekund|{2,3,4,22,23,24,32,33,34,42,43,44,52,53,54}:count sekunde|[5,Inf[:count sekundi',
's' => ':count sek.',
/*
* Authors:
* - Glavić
* - Milos Sakovic
*/
return array_replace_recursive(require __DIR__.'/sr.php', [
'month' => ':count mjesec|:count mjeseca|:count mjeseci',
'week' => ':count nedjelja|:count nedjelje|:count nedjelja',
'second' => ':count sekund|:count sekunde|:count sekundi',
'ago' => 'prije :time',
'from_now' => 'za :time',
'after' => ':time nakon',
'before' => ':time prije',
'year_from_now' => '{1,21,31,41,51} :count godinu|{2,3,4,22,23,24,32,33,34,42,43,44,52,53,54} :count godine|[5,Inf[ :count godina',
'year_ago' => '{1,21,31,41,51} :count godinu|{2,3,4,22,23,24,32,33,34,42,43,44,52,53,54} :count godine|[5,Inf[ :count godina',
'week_from_now' => '{1} :count nedjelju|{2,3,4} :count nedjelje|[5,Inf[ :count nedjelja',
'week_ago' => '{1} :count nedjelju|{2,3,4} :count nedjelje|[5,Inf[ :count nedjelja',
'diff_now' => 'upravo sada',
'diff_yesterday' => 'juče',
'diff_tomorrow' => 'sutra',
'diff_before_yesterday' => 'prekjuče',
'diff_after_tomorrow' => 'preksutra',
);
'week_from_now' => ':count nedjelju|:count nedjelje|:count nedjelja',
'week_ago' => ':count nedjelju|:count nedjelje|:count nedjelja',
'diff_tomorrow' => 'sjutra',
'calendar' => [
'nextDay' => '[sjutra u] LT',
'nextWeek' => function (\Carbon\CarbonInterface $date) {
switch ($date->dayOfWeek) {
case 0:
return '[u nedjelju u] LT';
case 3:
return '[u srijedu u] LT';
case 6:
return '[u subotu u] LT';
default:
return '[u] dddd [u] LT';
}
},
'lastWeek' => function (\Carbon\CarbonInterface $date) {
switch ($date->dayOfWeek) {
case 0:
return '[prošle nedjelje u] LT';
case 1:
return '[prošle nedjelje u] LT';
case 2:
return '[prošlog utorka u] LT';
case 3:
return '[prošle srijede u] LT';
case 4:
return '[prošlog četvrtka u] LT';
case 5:
return '[prošlog petka u] LT';
default:
return '[prošle subote u] LT';
}
},
],
'weekdays' => ['nedjelja', 'ponedjeljak', 'utorak', 'srijeda', 'četvrtak', 'petak', 'subota'],
'weekdays_short' => ['ned.', 'pon.', 'uto.', 'sri.', 'čet.', 'pet.', 'sub.'],
]);

View file

@ -1,6 +1,6 @@
<?php
/*
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
@ -8,5 +8,4 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
return require __DIR__.'/sr_Latn_ME.php';

View file

@ -1,6 +1,6 @@
<?php
/*
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
@ -9,23 +9,76 @@
* file that was distributed with this source code.
*/
return array(
'year' => ':count år|:count år',
'y' => ':count år|:count år',
/*
* Authors:
* - François B
* - Kristoffer Snabb
* - JD Isaacks
* - Jens Herlevsen
* - Nightpine
* - Anders Nygren (litemerafrukt)
*/
return [
'year' => ':count år',
'a_year' => 'ett år|:count år',
'y' => ':count år',
'month' => ':count månad|:count månader',
'm' => ':count månad|:count månader',
'a_month' => 'en månad|:count månader',
'm' => ':count mån',
'week' => ':count vecka|:count veckor',
'w' => ':count vecka|:count veckor',
'a_week' => 'en vecka|:count veckor',
'w' => ':count v',
'day' => ':count dag|:count dagar',
'd' => ':count dag|:count dagar',
'a_day' => 'en dag|:count dagar',
'd' => ':count dgr',
'hour' => ':count timme|:count timmar',
'h' => ':count timme|:count timmar',
'a_hour' => 'en timme|:count timmar',
'h' => ':count tim',
'minute' => ':count minut|:count minuter',
'min' => ':count minut|:count minuter',
'a_minute' => 'en minut|:count minuter',
'min' => ':count min',
'second' => ':count sekund|:count sekunder',
's' => ':count sekund|:count sekunder',
'ago' => ':time sedan',
'a_second' => 'några sekunder|:count sekunder',
's' => ':count s',
'ago' => 'för :time sedan',
'from_now' => 'om :time',
'after' => ':time efter',
'before' => ':time före',
);
'diff_now' => 'nu',
'diff_yesterday' => 'i går',
'diff_tomorrow' => 'i morgon',
'formats' => [
'LT' => 'HH:mm',
'LTS' => 'HH:mm:ss',
'L' => 'YYYY-MM-DD',
'LL' => 'D MMMM YYYY',
'LLL' => 'D MMMM YYYY [kl.] HH:mm',
'LLLL' => 'dddd D MMMM YYYY [kl.] HH:mm',
],
'calendar' => [
'sameDay' => '[I dag] LT',
'nextDay' => '[I morgon] LT',
'nextWeek' => '[På] dddd LT',
'lastDay' => '[I går] LT',
'lastWeek' => '[I] dddd[s] LT',
'sameElse' => 'L',
],
'ordinal' => function ($number) {
$lastDigit = $number % 10;
return $number.(
(~~($number % 100 / 10) === 1) ? 'e' : (
($lastDigit === 1 || $lastDigit === 2) ? 'a' : 'e'
)
);
},
'months' => ['januari', 'februari', 'mars', 'april', 'maj', 'juni', 'juli', 'augusti', 'september', 'oktober', 'november', 'december'],
'months_short' => ['jan', 'feb', 'mar', 'apr', 'maj', 'jun', 'jul', 'aug', 'sep', 'okt', 'nov', 'dec'],
'weekdays' => ['söndag', 'måndag', 'tisdag', 'onsdag', 'torsdag', 'fredag', 'lördag'],
'weekdays_short' => ['sön', 'mån', 'tis', 'ons', 'tors', 'fre', 'lör'],
'weekdays_min' => ['sö', 'må', 'ti', 'on', 'to', 'fr', 'lö'],
'first_day_of_week' => 1,
'day_of_first_week_of_year' => 4,
'list' => [', ', ' och '],
'meridiem' => ['fm', 'em'],
];

View file

@ -1,6 +1,6 @@
<?php
/*
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
@ -9,7 +9,18 @@
* file that was distributed with this source code.
*/
return array(
/**
* Authors:
* - Nate Whittaker
* - John MacAslan
* - Chanintorn Asavavichairoj
* - JD Isaacks
* - ROKAISAKKON
* - RO'KAISAKKON
* - Andreas Möller
* - nithisa
*/
return [
'year' => ':count ปี',
'y' => ':count ปี',
'month' => ':count เดือน',
@ -23,9 +34,36 @@ return array(
'minute' => ':count นาที',
'min' => ':count นาที',
'second' => ':count วินาที',
'a_second' => '{1}ไม่กี่วินาที|]1,Inf[:count วินาที',
's' => ':count วินาที',
'ago' => ':timeที่แล้ว',
'from_now' => ':timeต่อจากนี้',
'from_now' => 'อีก :time',
'after' => ':timeหลังจากนี้',
'before' => ':timeก่อน',
);
'diff_now' => 'ขณะนี้',
'diff_yesterday' => 'เมื่อวาน',
'diff_tomorrow' => 'พรุ่งนี้',
'formats' => [
'LT' => 'H:mm',
'LTS' => 'H:mm:ss',
'L' => 'DD/MM/YYYY',
'LL' => 'D MMMM YYYY',
'LLL' => 'D MMMM YYYY เวลา H:mm',
'LLLL' => 'วันddddที่ D MMMM YYYY เวลา H:mm',
],
'calendar' => [
'sameDay' => '[วันนี้ เวลา] LT',
'nextDay' => '[พรุ่งนี้ เวลา] LT',
'nextWeek' => 'dddd[หน้า เวลา] LT',
'lastDay' => '[เมื่อวานนี้ เวลา] LT',
'lastWeek' => '[วัน]dddd[ที่แล้ว เวลา] LT',
'sameElse' => 'L',
],
'meridiem' => ['ก่อนเที่ยง', 'หลังเที่ยง'],
'months' => ['มกราคม', 'กุมภาพันธ์', 'มีนาคม', 'เมษายน', 'พฤษภาคม', 'มิถุนายน', 'กรกฎาคม', 'สิงหาคม', 'กันยายน', 'ตุลาคม', 'พฤศจิกายน', 'ธันวาคม'],
'months_short' => ['ม.ค.', 'ก.พ.', 'มี.ค.', 'เม.ย.', 'พ.ค.', 'มิ.ย.', 'ก.ค.', 'ส.ค.', 'ก.ย.', 'ต.ค.', 'พ.ย.', 'ธ.ค.'],
'weekdays' => ['อาทิตย์', 'จันทร์', 'อังคาร', 'พุธ', 'พฤหัสบดี', 'ศุกร์', 'เสาร์'],
'weekdays_short' => ['อาทิตย์', 'จันทร์', 'อังคาร', 'พุธ', 'พฤหัส', 'ศุกร์', 'เสาร์'],
'weekdays_min' => ['อา.', 'จ.', 'อ.', 'พ.', 'พฤ.', 'ศ.', 'ส.'],
'list' => [', ', ' และ '],
];

View file

@ -1,6 +1,6 @@
<?php
/*
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
@ -9,23 +9,110 @@
* file that was distributed with this source code.
*/
return array(
/**
* Authors:
* - Josh Soref
* - Alan Agius
* - Erhan Gundogan
* - François B
* - JD Isaacks
* - Murat Yüksel
* - Baran Şengül
* - Selami (selamialtin)
* - TeomanBey
*/
return [
'year' => ':count yıl',
'y' => ':count yıl',
'a_year' => '{1}bir yıl|]1,Inf[:count yıl',
'y' => ':county',
'month' => ':count ay',
'm' => ':count ay',
'a_month' => '{1}bir ay|]1,Inf[:count ay',
'm' => ':countay',
'week' => ':count hafta',
'w' => ':count hafta',
'a_week' => '{1}bir hafta|]1,Inf[:count hafta',
'w' => ':counth',
'day' => ':count gün',
'd' => ':count gün',
'a_day' => '{1}bir gün|]1,Inf[:count gün',
'd' => ':countg',
'hour' => ':count saat',
'h' => ':count saat',
'a_hour' => '{1}bir saat|]1,Inf[:count saat',
'h' => ':countsa',
'minute' => ':count dakika',
'min' => ':count dakika',
'a_minute' => '{1}bir dakika|]1,Inf[:count dakika',
'min' => ':countdk',
'second' => ':count saniye',
's' => ':count saniye',
'a_second' => '{1}birkaç saniye|]1,Inf[:count saniye',
's' => ':countsn',
'ago' => ':time önce',
'from_now' => ':time sonra',
'after' => ':time sonra',
'before' => ':time önce',
);
'diff_now' => 'şimdi',
'diff_yesterday' => 'dün',
'diff_tomorrow' => 'yarın',
'diff_before_yesterday' => 'evvelsi gün',
'diff_after_tomorrow' => 'öbür gün',
'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' => '[bugün saat] LT',
'nextDay' => '[yarın saat] LT',
'nextWeek' => '[gelecek] dddd [saat] LT',
'lastDay' => '[dün] LT',
'lastWeek' => '[geçen] dddd [saat] LT',
'sameElse' => 'L',
],
'ordinal' => function ($number, $period) {
switch ($period) {
case 'd':
case 'D':
case 'Do':
case 'DD':
return $number;
default:
if ($number === 0) { // special case for zero
return "$number'ıncı";
}
static $suffixes = [
1 => '\'inci',
5 => '\'inci',
8 => '\'inci',
70 => '\'inci',
80 => '\'inci',
2 => '\'nci',
7 => '\'nci',
20 => '\'nci',
50 => '\'nci',
3 => '\'üncü',
4 => '\'üncü',
100 => '\'üncü',
6 => '\'ncı',
9 => '\'uncu',
10 => '\'uncu',
30 => '\'uncu',
60 => '\'ıncı',
90 => '\'ıncı',
];
$lastDigit = $number % 10;
return $number.($suffixes[$lastDigit] ?? $suffixes[$number % 100 - $lastDigit] ?? $suffixes[$number >= 100 ? 100 : -1] ?? '');
}
},
'meridiem' => ['ÖÖ', 'ÖS', 'öö', 'ös'],
'months' => ['Ocak', 'Şubat', 'Mart', 'Nisan', 'Mayıs', 'Haziran', 'Temmuz', 'Ağustos', 'Eylül', 'Ekim', 'Kasım', 'Aralık'],
'months_short' => ['Oca', 'Şub', 'Mar', 'Nis', 'May', 'Haz', 'Tem', 'Ağu', 'Eyl', 'Eki', 'Kas', 'Ara'],
'weekdays' => ['Pazar', 'Pazartesi', 'Salı', 'Çarşamba', 'Perşembe', 'Cuma', 'Cumartesi'],
'weekdays_short' => ['Paz', 'Pts', 'Sal', 'Çar', 'Per', 'Cum', 'Cts'],
'weekdays_min' => ['Pz', 'Pt', 'Sa', 'Ça', 'Pe', 'Cu', 'Ct'],
'first_day_of_week' => 1,
'day_of_first_week_of_year' => 1,
'list' => [', ', ' ve '],
];

View file

@ -1,6 +1,6 @@
<?php
/*
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
@ -8,24 +8,101 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
$processHoursFunction = function (\Carbon\CarbonInterface $date, string $format) {
return $format.'о'.($date->hour === 11 ? 'б' : '').'] LT';
};
return array(
/*
* Authors:
* - Kunal Marwaha
* - Josh Soref
* - François B
* - Tim Fish
* - Serhan Apaydın
* - Max Mykhailenko
* - JD Isaacks
* - Max Kovpak
* - AucT
* - Philippe Vaucher
* - Ilya Shaplyko
* - Vadym Ievsieiev
* - Denys Kurets
* - Igor Kasyanchuk
* - Tsutomu Kuroda
* - tjku
* - Max Melentiev
* - Oleh
* - epaminond
* - Juanito Fatas
* - Vitalii Khustochka
* - Akira Matsuda
* - Christopher Dell
* - Enrique Vidal
* - Simone Carletti
* - Aaron Patterson
* - Andriy Tyurnikov
* - Nicolás Hock Isaza
* - Iwakura Taro
* - Andrii Ponomarov
* - alecrabbit
* - vystepanenko
* - AlexWalkerson
* - Andre Havryliuk (Andrend)
* - Max Datsenko (datsenko-md)
*/
return [
'year' => ':count рік|:count роки|:count років',
'y' => ':count рік|:count роки|:count років',
'y' => ':countр',
'a_year' => '{1}рік|:count рік|:count роки|:count років',
'month' => ':count місяць|:count місяці|:count місяців',
'm' => ':count місяць|:count місяці|:count місяців',
'm' => ':countм',
'a_month' => '{1}місяць|:count місяць|:count місяці|:count місяців',
'week' => ':count тиждень|:count тижні|:count тижнів',
'w' => ':count тиждень|:count тижні|:count тижнів',
'w' => ':countт',
'a_week' => '{1}тиждень|:count тиждень|:count тижні|:count тижнів',
'day' => ':count день|:count дні|:count днів',
'd' => ':count день|:count дні|:count днів',
'd' => ':countд',
'a_day' => '{1}день|:count день|:count дні|:count днів',
'hour' => ':count година|:count години|:count годин',
'h' => ':count година|:count години|:count годин',
'minute' => ':count хвилину|:count хвилини|:count хвилин',
'min' => ':count хвилину|:count хвилини|:count хвилин',
'second' => ':count секунду|:count секунди|:count секунд',
's' => ':count секунду|:count секунди|:count секунд',
'h' => ':countг',
'a_hour' => '{1}година|:count година|:count години|:count годин',
'minute' => ':count хвилина|:count хвилини|:count хвилин',
'min' => ':countхв',
'a_minute' => '{1}хвилина|:count хвилина|:count хвилини|:count хвилин',
'second' => ':count секунда|:count секунди|:count секунд',
's' => ':countсек',
'a_second' => '{1}кілька секунд|:count секунда|:count секунди|:count секунд',
'hour_ago' => ':count годину|:count години|:count годин',
'a_hour_ago' => '{1}годину|:count годину|:count години|:count годин',
'minute_ago' => ':count хвилину|:count хвилини|:count хвилин',
'a_minute_ago' => '{1}хвилину|:count хвилину|:count хвилини|:count хвилин',
'second_ago' => ':count секунду|:count секунди|:count секунд',
'a_second_ago' => '{1}кілька секунд|:count секунду|:count секунди|:count секунд',
'hour_from_now' => ':count годину|:count години|:count годин',
'a_hour_from_now' => '{1}годину|:count годину|:count години|:count годин',
'minute_from_now' => ':count хвилину|:count хвилини|:count хвилин',
'a_minute_from_now' => '{1}хвилину|:count хвилину|:count хвилини|:count хвилин',
'second_from_now' => ':count секунду|:count секунди|:count секунд',
'a_second_from_now' => '{1}кілька секунд|:count секунду|:count секунди|:count секунд',
'hour_after' => ':count годину|:count години|:count годин',
'a_hour_after' => '{1}годину|:count годину|:count години|:count годин',
'minute_after' => ':count хвилину|:count хвилини|:count хвилин',
'a_minute_after' => '{1}хвилину|:count хвилину|:count хвилини|:count хвилин',
'second_after' => ':count секунду|:count секунди|:count секунд',
'a_second_after' => '{1}кілька секунд|:count секунду|:count секунди|:count секунд',
'hour_before' => ':count годину|:count години|:count годин',
'a_hour_before' => '{1}годину|:count годину|:count години|:count годин',
'minute_before' => ':count хвилину|:count хвилини|:count хвилин',
'a_minute_before' => '{1}хвилину|:count хвилину|:count хвилини|:count хвилин',
'second_before' => ':count секунду|:count секунди|:count секунд',
'a_second_before' => '{1}кілька секунд|:count секунду|:count секунди|:count секунд',
'ago' => ':time тому',
'from_now' => 'через :time',
'from_now' => 'за :time',
'after' => ':time після',
'before' => ':time до',
'diff_now' => 'щойно',
@ -37,4 +114,91 @@ return array(
'period_interval' => 'кожні :interval',
'period_start_date' => 'з :date',
'period_end_date' => 'до :date',
);
'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' => function (\Carbon\CarbonInterface $date) use ($processHoursFunction) {
return $processHoursFunction($date, '[Сьогодні ');
},
'nextDay' => function (\Carbon\CarbonInterface $date) use ($processHoursFunction) {
return $processHoursFunction($date, '[Завтра ');
},
'nextWeek' => function (\Carbon\CarbonInterface $date) use ($processHoursFunction) {
return $processHoursFunction($date, '[У] dddd [');
},
'lastDay' => function (\Carbon\CarbonInterface $date) use ($processHoursFunction) {
return $processHoursFunction($date, '[Вчора ');
},
'lastWeek' => function (\Carbon\CarbonInterface $date) use ($processHoursFunction) {
switch ($date->dayOfWeek) {
case 0:
case 3:
case 5:
case 6:
return $processHoursFunction($date, '[Минулої] dddd [');
default:
return $processHoursFunction($date, '[Минулого] dddd [');
}
},
'sameElse' => 'L',
],
'ordinal' => function ($number, $period) {
switch ($period) {
case 'M':
case 'd':
case 'DDD':
case 'w':
case 'W':
return $number.'-й';
case 'D':
return $number.'-го';
default:
return $number;
}
},
'meridiem' => function ($hour) {
if ($hour < 4) {
return 'ночі';
}
if ($hour < 12) {
return 'ранку';
}
if ($hour < 17) {
return 'дня';
}
return 'вечора';
},
'months' => ['січня', 'лютого', 'березня', 'квітня', 'травня', 'червня', 'липня', 'серпня', 'вересня', 'жовтня', 'листопада', 'грудня'],
'months_standalone' => ['січень', 'лютий', 'березень', 'квітень', 'травень', 'червень', 'липень', 'серпень', 'вересень', 'жовтень', 'листопад', 'грудень'],
'months_short' => ['січ', 'лют', 'бер', 'кві', 'тра', 'чер', 'лип', 'сер', 'вер', 'жов', 'лис', 'гру'],
'months_regexp' => '/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/',
'weekdays' => function (\Carbon\CarbonInterface $date, $format, $index) {
static $words = [
'nominative' => ['неділя', 'понеділок', 'вівторок', 'середа', 'четвер', 'п’ятниця', 'субота'],
'accusative' => ['неділю', 'понеділок', 'вівторок', 'середу', 'четвер', 'п’ятницю', 'суботу'],
'genitive' => ['неділі', 'понеділка', 'вівторка', 'середи', 'четверга', 'п’ятниці', 'суботи'],
];
$nounCase = preg_match('/(\[(В|в|У|у)\])\s+dddd/', $format)
? 'accusative'
: (
preg_match('/\[?(?:минулої|наступної)?\s*\]\s+dddd/', $format)
? 'genitive'
: 'nominative'
);
return $words[$nounCase][$index] ?? null;
},
'weekdays_short' => ['нд', 'пн', 'вт', 'ср', 'чт', 'пт', 'сб'],
'weekdays_min' => ['нд', 'пн', 'вт', 'ср', 'чт', 'пт', 'сб'],
'first_day_of_week' => 1,
'day_of_first_week_of_year' => 1,
'list' => [', ', ' i '],
];

View file

@ -1,6 +1,6 @@
<?php
/*
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
@ -8,17 +8,82 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
$months = [
'جنوری',
'فروری',
'مارچ',
'اپریل',
'مئی',
'جون',
'جولائی',
'اگست',
'ستمبر',
'اکتوبر',
'نومبر',
'دسمبر',
];
return array(
'year' => ':count سال',
'month' => ':count ماه',
$weekdays = [
'اتوار',
'پیر',
'منگل',
'بدھ',
'جمعرات',
'جمعہ',
'ہفتہ',
];
/*
* Authors:
* - Sawood Alam
* - Mehshan
* - Philippe Vaucher
* - Tsutomu Kuroda
* - tjku
* - Zaid Akram
* - Max Melentiev
* - hafezdivandari
* - Hossein Jabbari
* - nimamo
*/
return [
'year' => 'ایک سال|:count سال',
'month' => 'ایک ماہ|:count ماہ',
'week' => ':count ہفتے',
'day' => ':count روز',
'hour' => ':count گھنٹے',
'minute' => ':count منٹ',
'second' => ':count سیکنڈ',
'ago' => ':time پہلے',
'day' => 'ایک دن|:count دن',
'hour' => 'ایک گھنٹہ|:count گھنٹے',
'minute' => 'ایک منٹ|:count منٹ',
'second' => 'چند سیکنڈ|:count سیکنڈ',
'ago' => ':time قبل',
'from_now' => ':time بعد',
'after' => ':time بعد',
'before' => ':time پہلے',
);
'diff_now' => 'اب',
'diff_yesterday' => 'گزشتہ کل',
'diff_tomorrow' => 'آئندہ کل',
'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',
],
'meridiem' => ['صبح', 'شام'],
'months' => $months,
'months_short' => $months,
'weekdays' => $weekdays,
'weekdays_short' => $weekdays,
'weekdays_min' => $weekdays,
'first_day_of_week' => 1,
'day_of_first_week_of_year' => 4,
'list' => ['، ', ' اور '],
];

View file

@ -1,6 +1,6 @@
<?php
/*
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
@ -9,23 +9,73 @@
* file that was distributed with this source code.
*/
return array(
'year' => ':count yil',
'y' => ':count yil',
'month' => ':count oy',
'm' => ':count oy',
'week' => ':count hafta',
'w' => ':count hafta',
'day' => ':count kun',
'd' => ':count kun',
'hour' => ':count soat',
'h' => ':count soat',
'minute' => ':count daqiqa',
'min' => ':count daq',
'second' => ':count soniya',
's' => ':count s',
'ago' => ':time avval',
'from_now' => ':time dan keyin',
'after' => ':time keyin',
'before' => ':time oldin',
);
/*
* Authors:
* - Dmitriy Shabanov
* - JD Isaacks
* - Inoyatulloh
* - Jamshid
* - aarkhipov
* - Philippe Vaucher
* - felixthemagnificent
* - Tsutomu Kuroda
* - tjku
* - Max Melentiev
* - Juanito Fatas
* - Alisher Ulugbekov
*/
return [
'year' => ':count йил',
'a_year' => '{1}бир йил|:count йил',
'y' => ':count й',
'month' => ':count ой',
'a_month' => '{1}бир ой|:count ой',
'm' => ':count о',
'week' => ':count ҳафта',
'a_week' => '{1}бир ҳафта|:count ҳафта',
'w' => ':count ҳ',
'day' => ':count кун',
'a_day' => '{1}бир кун|:count кун',
'd' => ':count к',
'hour' => ':count соат',
'a_hour' => '{1}бир соат|:count соат',
'h' => ':count с',
'minute' => ':count дакика',
'a_minute' => '{1}бир дакика|:count дакика',
'min' => ':count д',
'second' => ':count фурсат',
'a_second' => '{1}фурсат|:count фурсат',
's' => ':count ф',
'ago' => 'Бир неча :time олдин',
'from_now' => 'Якин :time ичида',
'after' => ':time пас аз он',
'before' => ':time пеш аз он',
'diff_now' => 'hozir',
'diff_yesterday' => 'Кеча',
'diff_tomorrow' => 'Эртага',
'formats' => [
'LT' => 'HH:mm',
'LTS' => 'HH:mm:ss',
'L' => 'DD/MM/YYYY',
'LL' => 'D MMMM YYYY',
'LLL' => 'D MMMM YYYY HH:mm',
'LLLL' => 'D MMMM YYYY, dddd HH:mm',
],
'calendar' => [
'sameDay' => '[Бугун соат] LT [да]',
'nextDay' => '[Эртага] LT [да]',
'nextWeek' => 'dddd [куни соат] LT [да]',
'lastDay' => '[Кеча соат] LT [да]',
'lastWeek' => '[Утган] dddd [куни соат] LT [да]',
'sameElse' => 'L',
],
'months' => ['январ', 'феврал', 'март', 'апрел', 'май', 'июн', 'июл', 'август', 'сентябр', 'октябр', 'ноябр', 'декабр'],
'months_short' => ['янв', 'фев', 'мар', 'апр', 'май', 'июн', 'июл', 'авг', 'сен', 'окт', 'ноя', 'дек'],
'weekdays' => ['якшанба', 'душанба', 'сешанба', 'чоршанба', 'пайшанба', 'жума', 'шанба'],
'weekdays_short' => ['якш', 'душ', 'сеш', 'чор', 'пай', 'жум', 'шан'],
'weekdays_min' => ['як', 'ду', 'се', 'чо', 'па', 'жу', 'ша'],
'first_day_of_week' => 1,
'day_of_first_week_of_year' => 1,
'meridiem' => ['ertalab', 'kechasi'],
'list' => [', ', ' va '],
];

View file

@ -1,6 +1,6 @@
<?php
/*
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
@ -9,23 +9,64 @@
* file that was distributed with this source code.
*/
return array(
/**
* Authors:
* - François B
* - Andre Polykanine A.K.A. Menelion Elensúlë
* - JD Isaacks
*/
return [
'year' => ':count năm',
'a_year' => '{1}một năm|]1, Inf[:count năm',
'y' => ':count năm',
'month' => ':count tháng',
'a_month' => '{1}một tháng|]1, Inf[:count tháng',
'm' => ':count tháng',
'week' => ':count tuần',
'a_week' => '{1}một tuần|]1, Inf[:count tuần',
'w' => ':count tuần',
'day' => ':count ngày',
'a_day' => '{1}một ngày|]1, Inf[:count ngày',
'd' => ':count ngày',
'hour' => ':count giờ',
'a_hour' => '{1}một giờ|]1, Inf[:count giờ',
'h' => ':count giờ',
'minute' => ':count phút',
'a_minute' => '{1}một phút|]1, Inf[:count phút',
'min' => ':count phút',
'second' => ':count giây',
'a_second' => '{1}vài giây|]1, Inf[:count giây',
's' => ':count giây',
'ago' => ':time trước',
'from_now' => ':time từ bây giờ',
'from_now' => ':time tới',
'after' => ':time sau',
'before' => ':time trước',
);
'diff_now' => 'bây giờ',
'diff_yesterday' => 'Hôm qua',
'diff_tomorrow' => 'Ngày mai',
'formats' => [
'LT' => 'HH:mm',
'LTS' => 'HH:mm:ss',
'L' => 'DD/MM/YYYY',
'LL' => 'D MMMM [năm] YYYY',
'LLL' => 'D MMMM [năm] YYYY HH:mm',
'LLLL' => 'dddd, D MMMM [năm] YYYY HH:mm',
],
'calendar' => [
'sameDay' => '[Hôm nay lúc] LT',
'nextDay' => '[Ngày mai lúc] LT',
'nextWeek' => 'dddd [tuần tới lúc] LT',
'lastDay' => '[Hôm qua lúc] LT',
'lastWeek' => 'dddd [tuần trước lúc] LT',
'sameElse' => 'L',
],
'meridiem' => ['SA', 'CH'],
'months' => ['tháng 1', 'tháng 2', 'tháng 3', 'tháng 4', 'tháng 5', 'tháng 6', 'tháng 7', 'tháng 8', 'tháng 9', 'tháng 10', 'tháng 11', 'tháng 12'],
'months_short' => ['Th01', 'Th02', 'Th03', 'Th04', 'Th05', 'Th06', 'Th07', 'Th08', 'Th09', 'Th10', 'Th11', 'Th12'],
'weekdays' => ['chủ nhật', 'thứ hai', 'thứ ba', 'thứ tư', 'thứ năm', 'thứ sáu', 'thứ bảy'],
'weekdays_short' => ['CN', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7'],
'weekdays_min' => ['CN', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7'],
'first_day_of_week' => 1,
'day_of_first_week_of_year' => 4,
'list' => [', ', ' và '],
];

View file

@ -1,6 +1,6 @@
<?php
/*
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
@ -9,23 +9,21 @@
* file that was distributed with this source code.
*/
return array(
'year' => ':count年',
'y' => ':count年',
'month' => ':count个月',
'm' => ':count个月',
'week' => ':count周',
'w' => ':count周',
'day' => ':count天',
'd' => ':count天',
'hour' => ':count小时',
'h' => ':count小时',
'minute' => ':count分钟',
'min' => ':count分钟',
'second' => ':count秒',
's' => ':count秒',
'ago' => ':time前',
'from_now' => '距现在:time',
'after' => ':time后',
'before' => ':time前',
);
/*
* Authors:
* - xuri
* - sycuato
* - bokideckonja
* - Luo Ning
* - William Yang (williamyang233)
*/
return array_merge(require __DIR__.'/zh_Hans.php', [
'formats' => [
'LT' => 'HH:mm',
'LTS' => 'HH:mm:ss',
'L' => 'YYYY/MM/DD',
'LL' => 'YYYY年M月D日',
'LLL' => 'YYYY年M月D日 A h点mm分',
'LLLL' => 'YYYY年M月D日dddd A h点mm分',
],
]);

View file

@ -1,6 +1,6 @@
<?php
/*
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
@ -9,23 +9,4 @@
* file that was distributed with this source code.
*/
return array(
'year' => ':count年',
'y' => ':count年',
'month' => ':count月',
'm' => ':count月',
'week' => ':count週',
'w' => ':count週',
'day' => ':count天',
'd' => ':count天',
'hour' => ':count小時',
'h' => ':count小時',
'minute' => ':count分鐘',
'min' => ':count分鐘',
'second' => ':count秒',
's' => ':count秒',
'ago' => ':time前',
'from_now' => '距現在:time',
'after' => ':time後',
'before' => ':time前',
);
return require __DIR__.'/zh_Hant_TW.php';