first commit

This commit is contained in:
2024-11-05 12:22:50 +01:00
commit e5682a3912
19641 changed files with 2948548 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
Copyright (C) Brian Nesbitt
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished
to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

View File

@@ -0,0 +1,11 @@
<?php
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;

View File

@@ -0,0 +1,34 @@
#!/usr/bin/env php
<?php
$dir = __DIR__.'/..';
if (!file_exists($dir.'/autoload.php')) {
$dir = __DIR__.'/../vendor';
}
if (!file_exists($dir.'/autoload.php')) {
$dir = __DIR__.'/../../..';
}
if (!file_exists($dir.'/autoload.php')) {
echo 'Autoload not found.';
exit(1);
}
$composerInstalled = false;
if (!file_exists($dir.'/composer/composer')) {
$composerInstalled = true;
shell_exec('composer require --dev composer/composer');
}
include $dir.'/autoload.php';
Carbon\Upgrade::upgrade();
if ($composerInstalled) {
shell_exec('composer remove --dev composer/composer');
}
exit(0);

View File

@@ -0,0 +1,4 @@
@ECHO OFF
setlocal DISABLEDELAYEDEXPANSION
SET BIN_TARGET=%~dp0/upgrade-carbon
php "%BIN_TARGET%" %*

View File

@@ -0,0 +1,70 @@
{
"name": "nesbot/carbon",
"type": "library",
"description": "A simple API extension for DateTime.",
"keywords": [
"date",
"time",
"DateTime"
],
"homepage": "http://carbon.nesbot.com",
"support": {
"issues": "https://github.com/briannesbitt/Carbon/issues",
"source": "https://github.com/briannesbitt/Carbon"
},
"license": "MIT",
"authors": [
{
"name": "Brian Nesbitt",
"email": "brian@nesbot.com",
"homepage": "http://nesbot.com"
}
],
"bin": ["bin/upgrade-carbon"],
"require": {
"php": ">=5.3.9",
"kylekatarnls/update-helper": "^1.1",
"symfony/translation": "~2.6 || ~3.0 || ~4.0"
},
"require-dev": {
"composer/composer": "^1.2",
"friendsofphp/php-cs-fixer": "~2",
"phpunit/phpunit": "^4.8.35 || ^5.7"
},
"autoload": {
"psr-4": {
"": "src/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"config": {
"sort-packages": true
},
"scripts": {
"test": [
"@phpunit",
"@phpcs"
],
"phpunit": "phpunit --verbose --coverage-clover=coverage.xml",
"phpcs": "php-cs-fixer fix -v --diff --dry-run",
"phpstan": "phpstan analyse --configuration phpstan.neon --level 3 src tests",
"post-autoload-dump": [
"UpdateHelper\\UpdateHelper::check"
],
"upgrade-carbon": [
"Carbon\\Upgrade::upgrade"
]
},
"extra": {
"update-helper": "Carbon\\Upgrade",
"laravel": {
"providers": [
"Carbon\\Laravel\\ServiceProvider"
]
}
}
}

View File

@@ -0,0 +1,11 @@
<?php
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;

View File

@@ -0,0 +1,94 @@
# 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)
A simple PHP API extension for DateTime. [http://carbon.nesbot.com](http://carbon.nesbot.com)
```php
use Carbon\Carbon;
printf("Right now is %s", Carbon::now()->toDateTimeString());
printf("Right now in Vancouver is %s", Carbon::now('America/Vancouver')); //implicit __toString()
$tomorrow = Carbon::now()->addDay();
$lastWeek = Carbon::now()->subWeek();
$nextSummerOlympics = Carbon::createFromDate(2016)->addYears(4);
$officialDate = Carbon::now()->toRfc2822String();
$howOldAmI = Carbon::createFromDate(1975, 5, 21)->age;
$noonTodayLondonTime = Carbon::createFromTime(12, 0, 0, 'Europe/London');
$internetWillBlowUpOn = Carbon::create(2038, 01, 19, 3, 14, 7, 'GMT');
// Don't really want this to happen so mock now
Carbon::setTestNow(Carbon::createFromDate(2000, 1, 1));
// comparisons are always done in UTC
if (Carbon::now()->gte($internetWillBlowUpOn)) {
die();
}
// Phew! Return to normal behaviour
Carbon::setTestNow();
if (Carbon::now()->isWeekend()) {
echo 'Party!';
}
echo Carbon::now()->subMinutes(2)->diffForHumans(); // '2 minutes ago'
// ... but also does 'from now', 'after' and 'before'
// rolling up to seconds, minutes, hours, days, months, years
$daysSinceEpoch = Carbon::createFromTimestamp(0)->diffInDays();
```
## Installation
### With Composer
```
$ composer require nesbot/carbon
```
```json
{
"require": {
"nesbot/carbon": "~1.21"
}
}
```
```php
<?php
require 'vendor/autoload.php';
use Carbon\Carbon;
printf("Now: %s", Carbon::now());
```
<a name="install-nocomposer"/>
### 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.
```php
<?php
require 'path/to/Carbon.php';
use Carbon\Carbon;
printf("Now: %s", Carbon::now());
```
## Docs
[http://carbon.nesbot.com/docs](http://carbon.nesbot.com/docs)

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,67 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Carbon\Exceptions;
use Exception;
use InvalidArgumentException;
class InvalidDateException extends InvalidArgumentException
{
/**
* The invalid field.
*
* @var string
*/
private $field;
/**
* The invalid value.
*
* @var mixed
*/
private $value;
/**
* Constructor.
*
* @param string $field
* @param mixed $value
* @param int $code
* @param \Exception|null $previous
*/
public function __construct($field, $value, $code = 0, Exception $previous = null)
{
$this->field = $field;
$this->value = $value;
parent::__construct($field.' : '.$value.' is not a valid value.', $code, $previous);
}
/**
* Get the invalid field.
*
* @return string
*/
public function getField()
{
return $this->field;
}
/**
* Get the invalid value.
*
* @return mixed
*/
public function getValue()
{
return $this->value;
}
}

View File

@@ -0,0 +1,11 @@
<?php
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;

View File

@@ -0,0 +1,31 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
return array(
'year' => ':count jaar|:count jare',
'y' => ':count jaar|:count jare',
'month' => ':count maand|:count maande',
'm' => ':count maand|:count maande',
'week' => ':count week|:count weke',
'w' => ':count week|:count weke',
'day' => ':count dag|:count dae',
'd' => ':count dag|:count dae',
'hour' => ':count uur|:count ure',
'h' => ':count uur|:count ure',
'minute' => ':count minuut|:count minute',
'min' => ':count minuut|:count minute',
'second' => ':count sekond|:count sekondes',
's' => ':count sekond|:count sekondes',
'ago' => ':time terug',
'from_now' => ':time van nou af',
'after' => ':time na',
'before' => ':time voor',
);

View File

@@ -0,0 +1,31 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
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 ثانية',
'ago' => 'منذ :time',
'from_now' => ':time من الآن',
'after' => 'بعد :time',
'before' => 'قبل :time',
);

View File

@@ -0,0 +1,31 @@
<?php
/**
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
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 ثَانِيَة',
'ago' => 'مُنْذُ :time',
'from_now' => 'مِنَ الْآن :time',
'after' => 'بَعْدَ :time',
'before' => 'قَبْلَ :time',
);

View File

@@ -0,0 +1,40 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
return array(
'year' => ':count il',
'y' => ':count il',
'month' => ':count ay',
'm' => ':count ay',
'week' => ':count həftə',
'w' => ':count həftə',
'day' => ':count gün',
'd' => ':count gün',
'hour' => ':count saat',
'h' => ':count saat',
'minute' => ':count dəqiqə',
'min' => ':count dəqiqə',
'second' => ':count saniyə',
's' => ':count saniyə',
'ago' => ':time əvvəl',
'from_now' => ':time sonra',
'after' => ':time sonra',
'before' => ':time əvvəl',
'diff_now' => 'indi',
'diff_yesterday' => 'dünən',
'diff_tomorrow' => 'sabah',
'diff_before_yesterday' => 'srağagün',
'diff_after_tomorrow' => 'birisi gün',
'period_recurrences' => ':count dəfədən bir',
'period_interval' => 'hər :interval',
'period_start_date' => ':date tarixindən başlayaraq',
'period_end_date' => ':date tarixinədək',
);

View File

@@ -0,0 +1,31 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
return array(
'year' => ':count година|:count години',
'y' => ':count година|:count години',
'month' => ':count месец|:count месеца',
'm' => ':count месец|:count месеца',
'week' => ':count седмица|:count седмици',
'w' => ':count седмица|:count седмици',
'day' => ':count ден|:count дни',
'd' => ':count ден|:count дни',
'hour' => ':count час|:count часа',
'h' => ':count час|:count часа',
'minute' => ':count минута|:count минути',
'min' => ':count минута|:count минути',
'second' => ':count секунда|:count секунди',
's' => ':count секунда|:count секунди',
'ago' => 'преди :time',
'from_now' => ':time от сега',
'after' => 'след :time',
'before' => 'преди :time',
);

View File

@@ -0,0 +1,38 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
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 আগে',
'diff_now' => 'এখন',
'diff_yesterday' => 'গতকাল',
'diff_tomorrow' => 'আগামীকাল',
'period_recurrences' => ':count বার|:count বার',
'period_interval' => 'প্রতি :interval',
'period_start_date' => ':date থেকে',
'period_end_date' => ':date পর্যন্ত',
);

View File

@@ -0,0 +1,31 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
return array(
'year' => ':count godina|:count godine|:count godina',
'y' => ':count godina|:count godine|:count godina',
'month' => ':count mjesec|:count mjeseca|:count mjeseci',
'm' => ':count mjesec|:count mjeseca|:count mjeseci',
'week' => ':count nedjelja|:count nedjelje|:count nedjelja',
'w' => ':count nedjelja|:count nedjelje|:count nedjelja',
'day' => ':count dan|:count dana|:count dana',
'd' => ':count dan|:count dana|:count dana',
'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 sekunda|:count sekundi',
's' => ':count sekund|:count sekunda|:count sekundi',
'ago' => 'prije :time',
'from_now' => 'za :time',
'after' => 'nakon :time',
'before' => ':time ranije',
);

View File

@@ -0,0 +1,40 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
return array(
'year' => ':count any|:count anys',
'y' => ':count any|:count anys',
'month' => ':count mes|:count mesos',
'm' => ':count mes|:count mesos',
'week' => ':count setmana|:count setmanes',
'w' => ':count setmana|:count setmanes',
'day' => ':count dia|:count dies',
'd' => ':count dia|:count dies',
'hour' => ':count hora|:count hores',
'h' => ':count hora|:count hores',
'minute' => ':count minut|:count minuts',
'min' => ':count minut|:count minuts',
'second' => ':count segon|:count segons',
's' => ':count segon|:count segons',
'ago' => 'fa :time',
'from_now' => 'd\'aquí :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_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',
);

View File

@@ -0,0 +1,31 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
return array(
'year' => ':count rok|:count roky|:count let',
'y' => ':count 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ů',
'week' => ':count týden|:count týdny|:count týdnů',
'w' => ':count 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',
);

View File

@@ -0,0 +1,29 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
return array(
'year' => '1 flwyddyn|:count blynedd',
'y' => ':countbl',
'month' => '1 mis|:count fis',
'm' => ':countmi',
'week' => ':count wythnos',
'w' => ':countw',
'day' => ':count diwrnod',
'd' => ':countd',
'hour' => ':count awr',
'h' => ':counth',
'minute' => ':count munud',
'min' => ':countm',
'second' => ':count eiliad',
's' => ':counts',
'ago' => ':time yn ôl',
'from_now' => ':time o hyn ymlaen',
'after' => ':time ar ôl',
'before' => ':time o\'r blaen',
);

View File

@@ -0,0 +1,31 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
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 uge|:count uger',
'w' => ':count uge|:count uger',
'day' => ':count dag|:count dage',
'd' => ':count dag|:count dage',
'hour' => ':count time|:count timer',
'h' => ':count time|:count timer',
'minute' => ':count minut|:count minutter',
'min' => ':count minut|:count minutter',
'second' => ':count sekund|:count sekunder',
's' => ':count sekund|:count sekunder',
'ago' => ':time siden',
'from_now' => 'om :time',
'after' => ':time efter',
'before' => ':time før',
);

View File

@@ -0,0 +1,46 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
return array(
'year' => ':count Jahr|:count Jahre',
'y' => ':countJ|:countJ',
'month' => ':count Monat|:count Monate',
'm' => ':countMon|:countMon',
'week' => ':count Woche|:count Wochen',
'w' => ':countWo|:countWo',
'day' => ':count Tag|:count Tage',
'd' => ':countTg|:countTg',
'hour' => ':count Stunde|:count Stunden',
'h' => ':countStd|:countStd',
'minute' => ':count Minute|:count Minuten',
'min' => ':countMin|:countMin',
'second' => ':count Sekunde|:count Sekunden',
's' => ':countSek|:countSek',
'ago' => 'vor :time',
'from_now' => 'in :time',
'after' => ':time später',
'before' => ':time zuvor',
'year_from_now' => ':count Jahr|:count Jahren',
'month_from_now' => ':count Monat|:count Monaten',
'week_from_now' => ':count Woche|:count Wochen',
'day_from_now' => ':count Tag|:count Tagen',
'year_ago' => ':count Jahr|:count Jahren',
'month_ago' => ':count Monat|:count Monaten',
'week_ago' => ':count Woche|:count Wochen',
'day_ago' => ':count Tag|:count Tagen',
'diff_now' => 'Gerade eben',
'diff_yesterday' => 'Gestern',
'diff_tomorrow' => 'Heute',
'diff_before_yesterday' => 'Vorgestern',
'diff_after_tomorrow' => 'Übermorgen',
);

View File

@@ -0,0 +1,31 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Ahmed Ali <ajaaibu@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
return array(
'year' => '{0}އަހަރެއް|[1,Inf]:count އަހަރު',
'y' => '{0}އަހަރެއް|[1,Inf]:count އަހަރު',
'month' => '{0}މައްސަރެއް|[1,Inf]:count މަސް',
'm' => '{0}މައްސަރެއް|[1,Inf]:count މަސް',
'week' => '{0}ހަފްތާއެއް|[1,Inf]:count ހަފްތާ',
'w' => '{0}ހަފްތާއެއް|[1,Inf]:count ހަފްތާ',
'day' => '{0}ދުވަސް|[1,Inf]:count ދުވަސް',
'd' => '{0}ދުވަސް|[1,Inf]:count ދުވަސް',
'hour' => '{0}ގަޑިއިރެއް|[1,Inf]:count ގަޑި',
'h' => '{0}ގަޑިއިރެއް|[1,Inf]:count ގަޑި',
'minute' => '{0}މިނެޓެއް|[1,Inf]:count މިނެޓް',
'min' => '{0}މިނެޓެއް|[1,Inf]:count މިނެޓް',
'second' => '{0}ސިކުންތެއް|[1,Inf]:count ސިކުންތު',
's' => '{0}ސިކުންތެއް|[1,Inf]:count ސިކުންތު',
'ago' => ':time ކުރިން',
'from_now' => ':time ފަހުން',
'after' => ':time ފަހުން',
'before' => ':time ކުރި',
);

View File

@@ -0,0 +1,31 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
return array(
'year' => ':count χρόνος|:count χρόνια',
'y' => ':count χρόνος|:count χρόνια',
'month' => ':count μήνας|:count μήνες',
'm' => ':count μήνας|:count μήνες',
'week' => ':count εβδομάδα|:count εβδομάδες',
'w' => ':count εβδομάδα|:count εβδομάδες',
'day' => ':count μέρα|:count μέρες',
'd' => ':count μέρα|:count μέρες',
'hour' => ':count ώρα|:count ώρες',
'h' => ':count ώρα|:count ώρες',
'minute' => ':count λεπτό|:count λεπτά',
'min' => ':count λεπτό|:count λεπτά',
'second' => ':count δευτερόλεπτο|:count δευτερόλεπτα',
's' => ':count δευτερόλεπτο|:count δευτερόλεπτα',
'ago' => 'πριν από :time',
'from_now' => 'σε :time από τώρα',
'after' => ':time μετά',
'before' => ':time πριν',
);

View File

@@ -0,0 +1,40 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
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',
'ago' => ':time ago',
'from_now' => ':time from now',
'after' => ':time after',
'before' => ':time before',
'diff_now' => 'just now',
'diff_yesterday' => 'yesterday',
'diff_tomorrow' => 'tomorrow',
'diff_before_yesterday' => 'before yesterday',
'diff_after_tomorrow' => 'after tomorrow',
'period_recurrences' => 'once|:count times',
'period_interval' => 'every :interval',
'period_start_date' => 'from :date',
'period_end_date' => 'to :date',
);

View File

@@ -0,0 +1,31 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
return array(
'year' => ':count jaro|:count jaroj',
'y' => ':count jaro|:count jaroj',
'month' => ':count monato|:count monatoj',
'm' => ':count monato|:count monatoj',
'week' => ':count semajno|:count semajnoj',
'w' => ':count semajno|:count semajnoj',
'day' => ':count tago|:count tagoj',
'd' => ':count tago|:count tagoj',
'hour' => ':count horo|:count horoj',
'h' => ':count horo|:count horoj',
'minute' => ':count minuto|:count minutoj',
'min' => ':count minuto|:count minutoj',
'second' => ':count sekundo|:count sekundoj',
's' => ':count sekundo|:count sekundoj',
'ago' => 'antaŭ :time',
'from_now' => 'je :time',
'after' => ':time poste',
'before' => ':time antaŭe',
);

View File

@@ -0,0 +1,36 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
return array(
'year' => ':count año|:count años',
'y' => ':count año|:count años',
'month' => ':count mes|:count meses',
'm' => ':count mes|:count meses',
'week' => ':count semana|:count semanas',
'w' => ':count semana|:count semanas',
'day' => ':count día|:count días',
'd' => ':count día|:count días',
'hour' => ':count hora|:count horas',
'h' => ':count hora|:count horas',
'minute' => ':count minuto|:count minutos',
'min' => ':count minuto|:count minutos',
'second' => ':count segundo|:count segundos',
's' => ':count segundo|:count segundos',
'ago' => 'hace :time',
'from_now' => 'dentro de :time',
'after' => ':time después',
'before' => ':time antes',
'diff_now' => 'ahora mismo',
'diff_yesterday' => 'ayer',
'diff_tomorrow' => 'mañana',
'diff_before_yesterday' => 'antier',
'diff_after_tomorrow' => 'pasado mañana',
);

View File

@@ -0,0 +1,38 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
return array(
'year' => ':count aasta|:count aastat',
'y' => ':count aasta|:count aastat',
'month' => ':count kuu|:count kuud',
'm' => ':count kuu|:count kuud',
'week' => ':count nädal|:count nädalat',
'w' => ':count nädal|:count nädalat',
'day' => ':count päev|:count päeva',
'd' => ':count päev|:count päeva',
'hour' => ':count tund|:count tundi',
'h' => ':count tund|:count tundi',
'minute' => ':count minut|:count minutit',
'min' => ':count minut|:count minutit',
'second' => ':count sekund|:count sekundit',
's' => ':count sekund|:count sekundit',
'ago' => ':time tagasi',
'from_now' => ':time pärast',
'after' => ':time pärast',
'before' => ':time enne',
'year_from_now' => ':count aasta',
'month_from_now' => ':count kuu',
'week_from_now' => ':count nädala',
'day_from_now' => ':count päeva',
'hour_from_now' => ':count tunni',
'minute_from_now' => ':count minuti',
'second_from_now' => ':count sekundi',
);

View File

@@ -0,0 +1,31 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
return array(
'year' => 'Urte 1|:count urte',
'y' => 'Urte 1|:count urte',
'month' => 'Hile 1|:count hile',
'm' => 'Hile 1|:count hile',
'week' => 'Aste 1|:count aste',
'w' => 'Aste 1|:count aste',
'day' => 'Egun 1|:count egun',
'd' => 'Egun 1|:count egun',
'hour' => 'Ordu 1|:count ordu',
'h' => 'Ordu 1|:count ordu',
'minute' => 'Minutu 1|:count minutu',
'min' => 'Minutu 1|:count minutu',
'second' => 'Segundu 1|:count segundu',
's' => 'Segundu 1|:count segundu',
'ago' => 'Orain dela :time',
'from_now' => ':time barru',
'after' => ':time geroago',
'before' => ':time lehenago',
);

View File

@@ -0,0 +1,31 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
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 پیش از',
);

View File

@@ -0,0 +1,31 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
return array(
'year' => ':count vuosi|:count vuotta',
'y' => ':count vuosi|:count vuotta',
'month' => ':count kuukausi|:count kuukautta',
'm' => ':count kuukausi|:count kuukautta',
'week' => ':count viikko|:count viikkoa',
'w' => ':count viikko|:count viikkoa',
'day' => ':count päivä|:count päivää',
'd' => ':count päivä|:count päivää',
'hour' => ':count tunti|:count tuntia',
'h' => ':count tunti|:count tuntia',
'minute' => ':count minuutti|:count minuuttia',
'min' => ':count minuutti|:count minuuttia',
'second' => ':count sekunti|:count sekuntia',
's' => ':count sekunti|:count sekuntia',
'ago' => ':time sitten',
'from_now' => ':time tästä hetkestä',
'after' => ':time sen jälkeen',
'before' => ':time ennen',
);

View File

@@ -0,0 +1,31 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
return array(
'year' => ':count ár|:count ár',
'y' => ':count ár|:count ár',
'month' => ':count mánaður|: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',
'd' => ':count dag|:count dagar',
'hour' => ':count tími|:count tímar',
'h' => ':count tími|:count tímar',
'minute' => ':count minutt|:count minuttir',
'min' => ':count minutt|:count minuttir',
'second' => ':count sekund|:count sekundir',
's' => ':count sekund|:count sekundir',
'ago' => ':time síðan',
'from_now' => 'um :time',
'after' => ':time aftaná',
'before' => ':time áðrenn',
);

View File

@@ -0,0 +1,40 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
return array(
'year' => ':count an|:count ans',
'y' => ':count an|:count ans',
'month' => ':count mois',
'm' => ':count mois',
'week' => ':count semaine|:count semaines',
'w' => ':count sem.',
'day' => ':count jour|:count jours',
'd' => ':count j.',
'hour' => ':count heure|:count heures',
'h' => ':count h.',
'minute' => ':count minute|:count minutes',
'min' => ':count min.',
'second' => ':count seconde|:count secondes',
's' => ':count sec.',
'ago' => 'il y a :time',
'from_now' => 'dans :time',
'after' => ':time après',
'before' => ':time avant',
'diff_now' => "à l'instant",
'diff_yesterday' => 'hier',
'diff_tomorrow' => 'demain',
'diff_before_yesterday' => 'avant-hier',
'diff_after_tomorrow' => 'après-demain',
'period_recurrences' => ':count fois',
'period_interval' => 'tous les :interval',
'period_start_date' => 'de :date',
'period_end_date' => 'à :date',
);

View File

@@ -0,0 +1,24 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
return array(
'year' => ':count ano|:count anos',
'month' => ':count mes|:count meses',
'week' => ':count semana|:count semanas',
'day' => ':count día|:count días',
'hour' => ':count hora|:count horas',
'minute' => ':count minuto|:count minutos',
'second' => ':count segundo|:count segundos',
'ago' => 'fai :time',
'from_now' => 'dentro de :time',
'after' => ':time despois',
'before' => ':time antes',
);

View File

@@ -0,0 +1,31 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
return array(
'year' => ':count વર્ષ|:count વર્ષો',
'y' => ':countવર્ષ|:countવર્ષો',
'month' => ':count મહિનો|:count મહિના',
'm' => ':countમહિનો|:countમહિના',
'week' => ':count અઠવાડિયું|:count અઠવાડિયા',
'w' => ':countઅઠ.|:countઅઠ.',
'day' => ':count દિવસ|:count દિવસો',
'd' => ':countદિ.|:countદિ.',
'hour' => ':count કલાક|:count કલાકો',
'h' => ':countક.|:countક.',
'minute' => ':count મિનિટ|:count મિનિટ',
'min' => ':countમિ.|:countમિ.',
'second' => ':count સેકેન્ડ|:count સેકેન્ડ',
's' => ':countસે.|:countસે.',
'ago' => ':time પહેલા',
'from_now' => ':time અત્યારથી',
'after' => ':time પછી',
'before' => ':time પહેલા',
);

View File

@@ -0,0 +1,31 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
return array(
'year' => 'שנה|{2}שנתיים|:count שנים',
'y' => 'שנה|{2}שנתיים|:count שנים',
'month' => 'חודש|{2}חודשיים|:count חודשים',
'm' => 'חודש|{2}חודשיים|:count חודשים',
'week' => 'שבוע|{2}שבועיים|:count שבועות',
'w' => 'שבוע|{2}שבועיים|:count שבועות',
'day' => 'יום|{2}יומיים|:count ימים',
'd' => 'יום|{2}יומיים|:count ימים',
'hour' => 'שעה|{2}שעתיים|:count שעות',
'h' => 'שעה|{2}שעתיים|:count שעות',
'minute' => 'דקה|{2}דקותיים|:count דקות',
'min' => 'דקה|{2}דקותיים|:count דקות',
'second' => 'שניה|:count שניות',
's' => 'שניה|:count שניות',
'ago' => 'לפני :time',
'from_now' => 'בעוד :time',
'after' => 'אחרי :time',
'before' => 'לפני :time',
);

View File

@@ -0,0 +1,31 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
return array(
'year' => '1 वर्ष|:count वर्षों',
'y' => '1 वर्ष|:count वर्षों',
'month' => '1 माह|:count महीने',
'm' => '1 माह|:count महीने',
'week' => '1 सप्ताह|:count सप्ताह',
'w' => '1 सप्ताह|:count सप्ताह',
'day' => '1 दिन|:count दिनों',
'd' => '1 दिन|:count दिनों',
'hour' => '1 घंटा|:count घंटे',
'h' => '1 घंटा|:count घंटे',
'minute' => '1 मिनट|:count मिनटों',
'min' => '1 मिनट|:count मिनटों',
'second' => '1 सेकंड|:count सेकंड',
's' => '1 सेकंड|:count सेकंड',
'ago' => ':time पूर्व',
'from_now' => ':time से',
'after' => ':time के बाद',
'before' => ':time के पहले',
);

View File

@@ -0,0 +1,31 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
return array(
'year' => ':count godinu|:count godine|:count godina',
'y' => ':count godinu|:count godine|:count godina',
'month' => ':count mjesec|:count mjeseca|:count mjeseci',
'm' => ':count mjesec|:count mjeseca|:count mjeseci',
'week' => ':count tjedan|:count tjedna|:count tjedana',
'w' => ':count tjedan|:count tjedna|:count tjedana',
'day' => ':count dan|:count dana|:count dana',
'd' => ':count dan|:count dana|:count dana',
'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',
'second' => ':count sekundu|:count sekunde|:count sekundi',
's' => ':count sekundu|:count sekunde|:count sekundi',
'ago' => 'prije :time',
'from_now' => 'za :time',
'after' => 'za :time',
'before' => 'prije :time',
);

View File

@@ -0,0 +1,52 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
return array(
'year' => ':count év',
'y' => ':count év',
'month' => ':count hónap',
'm' => ':count hónap',
'week' => ':count hét',
'w' => ':count hét',
'day' => ':count nap',
'd' => ':count nap',
'hour' => ':count óra',
'h' => ':count óra',
'minute' => ':count perc',
'min' => ':count perc',
'second' => ':count másodperc',
's' => ':count másodperc',
'ago' => ':time',
'from_now' => ':time múlva',
'after' => ':time később',
'before' => ':time korábban',
'year_ago' => ':count éve',
'month_ago' => ':count hónapja',
'week_ago' => ':count hete',
'day_ago' => ':count napja',
'hour_ago' => ':count órája',
'minute_ago' => ':count perce',
'second_ago' => ':count másodperce',
'year_after' => ':count évvel',
'month_after' => ':count hónappal',
'week_after' => ':count héttel',
'day_after' => ':count nappal',
'hour_after' => ':count órával',
'minute_after' => ':count perccel',
'second_after' => ':count másodperccel',
'year_before' => ':count évvel',
'month_before' => ':count hónappal',
'week_before' => ':count héttel',
'day_before' => ':count nappal',
'hour_before' => ':count órával',
'minute_before' => ':count perccel',
'second_before' => ':count másodperccel',
);

View File

@@ -0,0 +1,31 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
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 առաջ',
);

View File

@@ -0,0 +1,31 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
return array(
'year' => ':count tahun',
'y' => ':count tahun',
'month' => ':count bulan',
'm' => ':count bulan',
'week' => ':count minggu',
'w' => ':count minggu',
'day' => ':count hari',
'd' => ':count hari',
'hour' => ':count jam',
'h' => ':count jam',
'minute' => ':count menit',
'min' => ':count menit',
'second' => ':count detik',
's' => ':count detik',
'ago' => ':time yang lalu',
'from_now' => ':time dari sekarang',
'after' => ':time setelah',
'before' => ':time sebelum',
);

View File

@@ -0,0 +1,11 @@
<?php
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;

View File

@@ -0,0 +1,31 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
return array(
'year' => '1 ár|:count ár',
'y' => '1 ár|:count ár',
'month' => '1 mánuður|:count mánuðir',
'm' => '1 mánuður|:count mánuðir',
'week' => '1 vika|:count vikur',
'w' => '1 vika|:count vikur',
'day' => '1 dagur|:count dagar',
'd' => '1 dagur|:count dagar',
'hour' => '1 klukkutími|:count klukkutímar',
'h' => '1 klukkutími|:count klukkutímar',
'minute' => '1 mínúta|:count mínútur',
'min' => '1 mínúta|:count mínútur',
'second' => '1 sekúnda|:count sekúndur',
's' => '1 sekúnda|:count sekúndur',
'ago' => ':time síðan',
'from_now' => ':time síðan',
'after' => ':time eftir',
'before' => ':time fyrir',
);

View File

@@ -0,0 +1,36 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
return array(
'year' => ':count anno|:count anni',
'y' => ':count anno|:count anni',
'month' => ':count mese|:count mesi',
'm' => ':count mese|:count mesi',
'week' => ':count settimana|:count settimane',
'w' => ':count settimana|:count settimane',
'day' => ':count giorno|:count giorni',
'd' => ':count giorno|:count giorni',
'hour' => ':count ora|:count ore',
'h' => ':count ora|:count ore',
'minute' => ':count minuto|:count minuti',
'min' => ':count minuto|:count minuti',
'second' => ':count secondo|:count secondi',
's' => ':count secondo|:count secondi',
'ago' => ':time fa',
'from_now' => 'tra :time',
'after' => ':time dopo',
'before' => ':time prima',
'diff_now' => 'proprio ora',
'diff_yesterday' => 'ieri',
'diff_tomorrow' => 'domani',
'diff_before_yesterday' => "l'altro ieri",
'diff_after_tomorrow' => 'dopodomani',
);

View File

@@ -0,0 +1,31 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
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前',
);

View File

@@ -0,0 +1,31 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
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 უკან',
);

View File

@@ -0,0 +1,29 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
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 бұрын',
);

View File

@@ -0,0 +1,31 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
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',
);

View File

@@ -0,0 +1,31 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
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 이전',
);

View File

@@ -0,0 +1,38 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
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ų',
'year_from_now' => ':count metų',
'ago' => 'prieš :time',
'from_now' => 'už :time',
'after' => 'po :time',
'before' => ':time nuo dabar',
);

View File

@@ -0,0 +1,47 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
return array(
'year' => '0 gadiem|:count gada|:count gadiem',
'y' => '0 gadiem|:count gada|: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',
'week' => '0 nedēļām|:count nedēļas|:count nedēļām',
'w' => '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',
'hour' => '0 stundām|:count stundas|:count stundām',
'h' => '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',
'second' => '0 sekundēm|:count sekundes|:count sekundēm',
's' => '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',
'month_after' => '0 mēnešus|:count mēnesi|:count mēnešus',
'week_after' => '0 nedēļas|:count nedēļu|:count nedēļas',
'day_after' => '0 dienas|:count dienu|:count dienas',
'hour_after' => '0 stundas|:count stundu|:count stundas',
'minute_after' => '0 minūtes|:count minūti|:count minūtes',
'second_after' => '0 sekundes|:count sekundi|:count sekundes',
'year_before' => '0 gadus|:count gadu|:count gadus',
'month_before' => '0 mēnešus|:count mēnesi|:count mēnešus',
'week_before' => '0 nedēļas|:count nedēļu|:count nedēļas',
'day_before' => '0 dienas|:count dienu|:count dienas',
'hour_before' => '0 stundas|:count stundu|:count stundas',
'minute_before' => '0 minūtes|:count minūti|:count minūtes',
'second_before' => '0 sekundes|:count sekundi|:count sekundes',
);

View File

@@ -0,0 +1,24 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
return array(
'year' => ':count година|:count години',
'month' => ':count месец|:count месеци',
'week' => ':count седмица|:count седмици',
'day' => ':count ден|:count дена',
'hour' => ':count час|:count часа',
'minute' => ':count минута|:count минути',
'second' => ':count секунда|:count секунди',
'ago' => 'пред :time',
'from_now' => ':time од сега',
'after' => 'по :time',
'before' => 'пред :time',
);

View File

@@ -0,0 +1,62 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*
* @translator Batmandakh Erdenebileg <batmandakh.e@icloud.com>
*/
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н өмнө',
'year_ago' => ':count жилий',
'month_ago' => ':count сары',
'day_ago' => ':count хоногий',
'hour_ago' => ':count цагий',
'minute_ago' => ':count минуты',
'second_ago' => ':count секунды',
'from_now' => 'одоогоос :time',
'year_from_now' => ':count жилийн дараа',
'month_from_now' => ':count сарын дараа',
'day_from_now' => ':count хоногийн дараа',
'hour_from_now' => ':count цагийн дараа',
'minute_from_now' => ':count минутын дараа',
'second_from_now' => ':count секундын дараа',
// Does it required to make translation for before, after as follows? hmm, I think we've made it with ago and from now keywords already. Anyway, I've included it just in case of undesired action...
'after' => ':timeн дараа',
'year_after' => ':count жилий',
'month_after' => ':count сары',
'day_after' => ':count хоногий',
'hour_after' => ':count цагий',
'minute_after' => ':count минуты',
'second_after' => ':count секунды',
'before' => ':timeн өмнө',
'year_before' => ':count жилий',
'month_before' => ':count сары',
'day_before' => ':count хоногий',
'hour_before' => ':count цагий',
'minute_before' => ':count минуты',
'second_before' => ':count секунды',
);

View File

@@ -0,0 +1,31 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
return array(
'year' => ':count tahun',
'y' => ':count tahun',
'month' => ':count bulan',
'm' => ':count bulan',
'week' => ':count minggu',
'w' => ':count minggu',
'day' => ':count hari',
'd' => ':count hari',
'hour' => ':count jam',
'h' => ':count jam',
'minute' => ':count minit',
'min' => ':count minit',
'second' => ':count saat',
's' => ':count saat',
'ago' => ':time yang lalu',
'from_now' => ':time dari sekarang',
'after' => ':time selepas',
'before' => ':time sebelum',
);

View File

@@ -0,0 +1,37 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
return array(
'year' => ':count နှစ်|:count နှစ်',
'y' => ':count နှစ်|:count နှစ်',
'month' => ':count လ|:count လ',
'm' => ':count လ|:count လ',
'week' => ':count ပတ်|:count ပတ်',
'w' => ':count ပတ်|:count ပတ်',
'day' => ':count ရက်|:count ရက်',
'd' => ':count ရက်|:count ရက်',
'hour' => ':count နာရီ|:count နာရီ',
'h' => ':count နာရီ|:count နာရီ',
'minute' => ':count မိနစ်|:count မိနစ်',
'min' => ':count မိနစ်|:count မိနစ်',
'second' => ':count စက္ကန့်|:count စက္ကန့်',
's' => ':count စက္ကန့်|:count စက္ကန့်',
'ago' => 'လွန်ခဲ့သော :time က',
'from_now' => 'ယခုမှစ၍နောက် :time အကြာ',
'after' => ':time ကြာပြီးနောက်',
'before' => ':time မတိုင်ခင်',
'diff_now' => 'အခုလေးတင်',
'diff_yesterday' => 'မနေ့က',
'diff_tomorrow' => 'မနက်ဖြန်',
'diff_before_yesterday' => 'တမြန်နေ့က',
'diff_after_tomorrow' => 'တဘက်ခါ',
'period_recurrences' => ':count ကြိမ်',
);

View File

@@ -0,0 +1,31 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
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 अघि',
);

View File

@@ -0,0 +1,36 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
return array(
'year' => ':count jaar',
'y' => ':count jaar',
'month' => ':count maand|:count maanden',
'm' => ':count maand|:count maanden',
'week' => ':count week|:count weken',
'w' => ':count week|:count weken',
'day' => ':count dag|:count dagen',
'd' => ':count dag|:count dagen',
'hour' => ':count uur',
'h' => ':count uur',
'minute' => ':count minuut|:count minuten',
'min' => ':count minuut|:count minuten',
'second' => ':count seconde|:count seconden',
's' => ':count seconde|:count seconden',
'ago' => ':time geleden',
'from_now' => 'over :time',
'after' => ':time later',
'before' => ':time eerder',
'diff_now' => 'nu',
'diff_yesterday' => 'gisteren',
'diff_tomorrow' => 'morgen',
'diff_after_tomorrow' => 'overmorgen',
'diff_before_yesterday' => 'eergisteren',
);

View File

@@ -0,0 +1,36 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
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',
);

View File

@@ -0,0 +1,44 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
\Symfony\Component\Translation\PluralizationRules::set(function ($number) {
return $number == 1 ? 0 : 1;
}, 'oc');
return array(
'year' => ':count an|:count ans',
'y' => ':count an|:count ans',
'month' => ':count mes|:count meses',
'm' => ':count mes|:count meses',
'week' => ':count setmana|:count setmanas',
'w' => ':count setmana|:count setmanas',
'day' => ':count jorn|:count jorns',
'd' => ':count jorn|:count jorns',
'hour' => ':count ora|:count oras',
'h' => ':count ora|:count oras',
'minute' => ':count minuta|:count minutas',
'min' => ':count minuta|:count minutas',
'second' => ':count segonda|:count segondas',
's' => ':count segonda|:count segondas',
'ago' => 'fa :time',
'from_now' => 'dins :time',
'after' => ':time aprèp',
'before' => ':time abans',
'diff_now' => 'ara meteis',
'diff_yesterday' => 'ièr',
'diff_tomorrow' => 'deman',
'diff_before_yesterday' => 'ièr delà',
'diff_after_tomorrow' => 'deman passat',
'period_recurrences' => ':count còp|:count còps',
'period_interval' => 'cada :interval',
'period_start_date' => 'de :date',
'period_end_date' => 'fins a :date',
);

View File

@@ -0,0 +1,36 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
return array(
'year' => ':count rok|:count lata|:count lat',
'y' => ':countr|:countl',
'month' => ':count miesiąc|:count miesiące|:count miesięcy',
'm' => ':countmies',
'week' => ':count tydzień|:count tygodnie|:count tygodni',
'w' => ':counttyg',
'day' => ':count dzień|:count dni|:count dni',
'd' => ':countd',
'hour' => ':count godzina|:count godziny|:count godzin',
'h' => ':countg',
'minute' => ':count minuta|:count minuty|:count minut',
'min' => ':countm',
'second' => ':count sekunda|:count sekundy|:count sekund',
's' => ':counts',
'ago' => ':time temu',
'from_now' => ':time od teraz',
'after' => ':time po',
'before' => ':time przed',
'diff_now' => 'przed chwilą',
'diff_yesterday' => 'wczoraj',
'diff_tomorrow' => 'jutro',
'diff_before_yesterday' => 'przedwczoraj',
'diff_after_tomorrow' => 'pojutrze',
);

View File

@@ -0,0 +1,31 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
return array(
'year' => ':count کال|:count کاله',
'y' => ':countکال|:countکاله',
'month' => ':count مياشت|:count مياشتي',
'm' => ':countمياشت|:countمياشتي',
'week' => ':count اونۍ|:count اونۍ',
'w' => ':countاونۍ|:countاونۍ',
'day' => ':count ورځ|:count ورځي',
'd' => ':countورځ|:countورځي',
'hour' => ':count ساعت|:count ساعته',
'h' => ':countساعت|:countساعته',
'minute' => ':count دقيقه|:count دقيقې',
'min' => ':countدقيقه|:countدقيقې',
'second' => ':count ثانيه|:count ثانيې',
's' => ':countثانيه|:countثانيې',
'ago' => ':time دمخه',
'from_now' => ':time له اوس څخه',
'after' => ':time وروسته',
'before' => ':time دمخه',
);

View File

@@ -0,0 +1,31 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
return array(
'year' => ':count ano|:count anos',
'y' => ':count ano|:count anos',
'month' => ':count mês|:count meses',
'm' => ':count mês|:count meses',
'week' => ':count semana|:count semanas',
'w' => ':count semana|:count semanas',
'day' => ':count dia|:count dias',
'd' => ':count dia|:count dias',
'hour' => ':count hora|:count horas',
'h' => ':count hora|:count horas',
'minute' => ':count minuto|:count minutos',
'min' => ':count minuto|:count minutos',
'second' => ':count segundo|:count segundos',
's' => ':count segundo|:count segundos',
'ago' => ':time atrás',
'from_now' => 'em :time',
'after' => ':time depois',
'before' => ':time antes',
);

View File

@@ -0,0 +1,40 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
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ã',
'period_recurrences' => 'uma|:count vez',
'period_interval' => 'toda :interval',
'period_start_date' => 'de :date',
'period_end_date' => 'até :date',
);

View File

@@ -0,0 +1,31 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
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',
'after' => 'peste :time',
'before' => 'acum :time',
);

View File

@@ -0,0 +1,31 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
return array(
'year' => ':count год|:count года|:count лет',
'y' => ':count г|:count г|:count л',
'month' => ':count месяц|:count месяца|:count месяцев',
'm' => ':count м|:count м|:count м',
'week' => ':count неделю|:count недели|:count недель',
'w' => ':count н|:count н|:count н',
'day' => ':count день|:count дня|:count дней',
'd' => ':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 до',
);

View File

@@ -0,0 +1,35 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
\Symfony\Component\Translation\PluralizationRules::set(function ($number) {
return ((1 == $number % 10) && (11 != $number % 100)) ? 0 : ((($number % 10 >= 2) && ($number % 10 <= 4) && (($number % 100 < 10) || ($number % 100 >= 20))) ? 1 : 2);
}, 'sh');
return array(
'year' => ':count godina|:count godine|:count godina',
'y' => ':count godina|:count godine|:count godina',
'month' => ':count mesec|:count meseca|:count meseci',
'm' => ':count mesec|:count meseca|:count meseci',
'week' => ':count nedelja|:count nedelje|:count nedelja',
'w' => ':count nedelja|:count nedelje|:count nedelja',
'day' => ':count dan|:count dana|:count dana',
'd' => ':count dan|:count dana|:count dana',
'hour' => ':count čas|:count časa|:count časova',
'h' => ':count čas|:count časa|:count časova',
'minute' => ':count minut|:count minuta|:count minuta',
'min' => ':count minut|:count minuta|:count minuta',
'second' => ':count sekund|:count sekunda|:count sekundi',
's' => ':count sekund|:count sekunda|:count sekundi',
'ago' => 'pre :time',
'from_now' => 'za :time',
'after' => 'nakon :time',
'before' => ':time raniјe',
);

View File

@@ -0,0 +1,38 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
return array(
'year' => 'rok|:count roky|:count rokov',
'y' => 'rok|:count roky|:count rokov',
'month' => 'mesiac|:count mesiace|:count mesiacov',
'm' => 'mesiac|:count mesiace|:count mesiacov',
'week' => 'týždeň|:count týždne|:count týždňov',
'w' => 'týždeň|:count týždne|:count týždňov',
'day' => 'deň|:count dni|:count dní',
'd' => 'deň|:count dni|:count dní',
'hour' => 'hodinu|:count hodiny|:count hodín',
'h' => 'hodinu|:count hodiny|:count hodín',
'minute' => 'minútu|:count minúty|:count minút',
'min' => 'minútu|:count minúty|:count minút',
'second' => 'sekundu|:count sekundy|:count sekúnd',
's' => 'sekundu|:count sekundy|:count sekúnd',
'ago' => 'pred :time',
'from_now' => 'za :time',
'after' => 'o :time neskôr',
'before' => ':time predtým',
'year_ago' => 'rokom|:count rokmi|:count rokmi',
'month_ago' => 'mesiacom|:count mesiacmi|:count mesiacmi',
'week_ago' => 'týždňom|:count týždňami|:count týždňami',
'day_ago' => 'dňom|:count dňami|:count dňami',
'hour_ago' => 'hodinou|:count hodinami|:count hodinami',
'minute_ago' => 'minútou|:count minútami|:count minútami',
'second_ago' => 'sekundou|:count sekundami|:count sekundami',
);

View File

@@ -0,0 +1,43 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
return array(
'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',
'week' => ':count teden|:count tedna|:count tedne|:count tednov',
'w' => ':count teden|:count tedna|:count tedne|:count tednov',
'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',
'year_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',
'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',
'ago' => 'pred :time',
'from_now' => 'čez :time',
'after' => 'čez :time',
'before' => 'pred :time',
'diff_now' => 'ravnokar',
'diff_yesterday' => 'včeraj',
'diff_tomorrow' => 'jutri',
'diff_before_yesterday' => 'predvčerajšnjim',
'diff_after_tomorrow' => 'pojutrišnjem',
);

View File

@@ -0,0 +1,31 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
return array(
'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ë',
'minute' => ':count minutë|:count minuta',
'min' => ':count minutë|:count minuta',
'second' => ':count sekondë|:count sekonda',
's' => ':count sekondë|:count sekonda',
'ago' => ':time më parë',
'from_now' => ':time nga tani',
'after' => ':time pas',
'before' => ':time para',
);

View File

@@ -0,0 +1,37 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
return array(
'year' => ':count godina|:count godine|:count godina',
'y' => ':count godina|:count godine|:count godina',
'month' => ':count mesec|:count meseca|:count meseci',
'm' => ':count mesec|:count meseca|:count meseci',
'week' => ':count nedelja|:count nedelje|:count nedelja',
'w' => ':count nedelja|:count nedelje|:count nedelja',
'day' => ':count dan|:count dana|:count dana',
'd' => ':count dan|:count dana|:count dana',
'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',
'ago' => 'pre :time',
'from_now' => ':time od sada',
'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',
'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',
);

View File

@@ -0,0 +1,43 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Nikola Zeravcic <office@bytenet.rs>
*
* For the full copyright and license information, please view the LICENSE
* 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 година',
'y' => ':count г.',
'month' => '{1} :count месец|{2,3,4}:count месеца|[5,Inf[ :count месеци',
'm' => ':count м.',
'week' => '{1} :count недеља|{2,3,4}:count недеље|[5,Inf[ :count недеља',
'w' => ':count нед.',
'day' => '{1,21,31} :count дан|[2,Inf[ :count дана',
'd' => ':count д.',
'hour' => '{1,21} :count сат|{2,3,4,22,23,24}:count сата|[5,Inf[ :count сати',
'h' => ':count ч.',
'minute' => '{1,21,31,41,51} :count минут|[2,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 секунди',
'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 година',
'week_from_now' => '{1} :count недељу|{2,3,4} :count недеље|[5,Inf[ :count недеља',
'week_ago' => '{1} :count недељу|{2,3,4} :count недеље|[5,Inf[ :count недеља',
'diff_now' => 'управо сада',
'diff_yesterday' => 'јуче',
'diff_tomorrow' => 'сутра',
'diff_before_yesterday' => 'прекјуче',
'diff_after_tomorrow' => 'прекосутра',
);

View File

@@ -0,0 +1,43 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
return array(
'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 мјесеци',
'm' => ':count мј.',
'week' => '{1} :count недјеља|{2,3,4}:count недјеље|[5,Inf[ :count недјеља',
'w' => ':count нед.',
'day' => '{1,21,31} :count дан|[2,Inf[ :count дана',
'd' => ':count д.',
'hour' => '{1,21} :count сат|{2,3,4,22,23,24}:count сата|[5,Inf[ :count сати',
'h' => ':count ч.',
'minute' => '{1,21,31,41,51} :count минут|[2,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 секунди',
'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 година',
'week_from_now' => '{1} :count недјељу|{2,3,4} :count недјеље|[5,Inf[ :count недјеља',
'week_ago' => '{1} :count недјељу|{2,3,4} :count недјеље|[5,Inf[ :count недјеља',
'diff_now' => 'управо сада',
'diff_yesterday' => 'јуче',
'diff_tomorrow' => 'сутра',
'diff_before_yesterday' => 'прекјуче',
'diff_after_tomorrow' => 'прекосјутра',
);

View File

@@ -0,0 +1,43 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
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.',
'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',
);

View File

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

View File

@@ -0,0 +1,31 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
return array(
'year' => ':count år|:count år',
'y' => ':count år|:count år',
'month' => ':count månad|:count månader',
'm' => ':count månad|:count månader',
'week' => ':count vecka|:count veckor',
'w' => ':count vecka|:count veckor',
'day' => ':count dag|:count dagar',
'd' => ':count dag|:count dagar',
'hour' => ':count timme|:count timmar',
'h' => ':count timme|:count timmar',
'minute' => ':count minut|:count minuter',
'min' => ':count minut|:count minuter',
'second' => ':count sekund|:count sekunder',
's' => ':count sekund|:count sekunder',
'ago' => ':time sedan',
'from_now' => 'om :time',
'after' => ':time efter',
'before' => ':time före',
);

View File

@@ -0,0 +1,31 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
return array(
'year' => 'mwaka 1|miaka :count',
'y' => 'mwaka 1|miaka :count',
'month' => 'mwezi 1|miezi :count',
'm' => 'mwezi 1|miezi :count',
'week' => 'wiki 1|wiki :count',
'w' => 'wiki 1|wiki :count',
'day' => 'siku 1|siku :count',
'd' => 'siku 1|siku :count',
'hour' => 'saa 1|masaa :count',
'h' => 'saa 1|masaa :count',
'minute' => 'dakika 1|dakika :count',
'min' => 'dakika 1|dakika :count',
'second' => 'sekunde 1|sekunde :count',
's' => 'sekunde 1|sekunde :count',
'ago' => ':time ziliyopita',
'from_now' => ':time kwanzia sasa',
'after' => ':time baada',
'before' => ':time kabla',
);

View File

@@ -0,0 +1,31 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
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ก่อน',
);

View File

@@ -0,0 +1,31 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
return array(
'year' => ':count yıl',
'y' => ':count yıl',
'month' => ':count ay',
'm' => ':count ay',
'week' => ':count hafta',
'w' => ':count hafta',
'day' => ':count gün',
'd' => ':count gün',
'hour' => ':count saat',
'h' => ':count saat',
'minute' => ':count dakika',
'min' => ':count dakika',
'second' => ':count saniye',
's' => ':count saniye',
'ago' => ':time önce',
'from_now' => ':time sonra',
'after' => ':time sonra',
'before' => ':time önce',
);

View File

@@ -0,0 +1,40 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
return array(
'year' => ':count рік|:count роки|:count років',
'y' => ':count рік|:count роки|:count років',
'month' => ':count місяць|:count місяці|:count місяців',
'm' => ':count місяць|:count місяці|:count місяців',
'week' => ':count тиждень|:count тижні|:count тижнів',
'w' => ':count тиждень|:count тижні|:count тижнів',
'day' => ':count день|:count дні|:count днів',
'd' => ':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 до',
'diff_now' => 'щойно',
'diff_yesterday' => 'вчора',
'diff_tomorrow' => 'завтра',
'diff_before_yesterday' => 'позавчора',
'diff_after_tomorrow' => 'післязавтра',
'period_recurrences' => 'один раз|:count рази|:count разів',
'period_interval' => 'кожні :interval',
'period_start_date' => 'з :date',
'period_end_date' => 'до :date',
);

View File

@@ -0,0 +1,24 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
return array(
'year' => ':count سال',
'month' => ':count ماه',
'week' => ':count ہفتے',
'day' => ':count روز',
'hour' => ':count گھنٹے',
'minute' => ':count منٹ',
'second' => ':count سیکنڈ',
'ago' => ':time پہلے',
'from_now' => ':time بعد',
'after' => ':time بعد',
'before' => ':time پہلے',
);

View File

@@ -0,0 +1,31 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
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',
);

View File

@@ -0,0 +1,31 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
return array(
'year' => ':count năm',
'y' => ':count năm',
'month' => ':count tháng',
'm' => ':count tháng',
'week' => ':count tuần',
'w' => ':count tuần',
'day' => ':count ngày',
'd' => ':count ngày',
'hour' => ':count giờ',
'h' => ':count giờ',
'minute' => ':count phút',
'min' => ':count phút',
'second' => ':count giây',
's' => ':count giây',
'ago' => ':time trước',
'from_now' => ':time từ bây giờ',
'after' => ':time sau',
'before' => ':time trước',
);

View File

@@ -0,0 +1,31 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
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前',
);

View File

@@ -0,0 +1,31 @@
<?php
/*
* This file is part of the Carbon package.
*
* (c) Brian Nesbitt <brian@nesbot.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
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前',
);

View File

@@ -0,0 +1,37 @@
<?php
namespace Carbon\Laravel;
use Carbon\Carbon;
use Illuminate\Events\Dispatcher;
use Illuminate\Events\EventDispatcher;
use Illuminate\Translation\Translator as IlluminateTranslator;
use Symfony\Component\Translation\Translator;
class ServiceProvider extends \Illuminate\Support\ServiceProvider
{
public function boot()
{
$service = $this;
$events = $this->app['events'];
if ($events instanceof EventDispatcher || $events instanceof Dispatcher) {
$events->listen(class_exists('Illuminate\Foundation\Events\LocaleUpdated') ? 'Illuminate\Foundation\Events\LocaleUpdated' : 'locale.changed', function () use ($service) {
$service->updateLocale();
});
$service->updateLocale();
}
}
public function updateLocale()
{
$translator = $this->app['translator'];
if ($translator instanceof Translator || $translator instanceof IlluminateTranslator) {
Carbon::setLocale($translator->getLocale());
}
}
public function register()
{
// Needed for Laravel < 5.3 compatibility
}
}

View File

@@ -0,0 +1,11 @@
<?php
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;

View File

@@ -0,0 +1,143 @@
<?php
namespace Carbon;
use Symfony\Component\Translation;
class Translator extends Translation\Translator
{
/**
* Singleton for Translator.
*
* @var static
*/
protected static $singleton;
/**
* List of custom localized messages.
*
* @var array
*/
protected static $messages = array();
/**
* Return a singleton instance of Translator.
*
* @param string|null $locale optional initial locale ("en" - english by default)
*
* @return static
*/
public static function get($locale = null)
{
if (static::$singleton === null) {
static::$singleton = new static($locale ?: 'en');
}
return static::$singleton;
}
public function __construct($locale, Translation\Formatter\MessageFormatterInterface $formatter = null, $cacheDir = null, $debug = false)
{
$this->addLoader('array', new Translation\Loader\ArrayLoader());
parent::__construct($locale, $formatter, $cacheDir, $debug);
}
/**
* Reset messages of a locale (all locale if no locale passed).
* Remove custom messages and reload initial messages from matching
* file in Lang directory.
*
* @param string|null $locale
*
* @return bool
*/
public function resetMessages($locale = null)
{
if ($locale === null) {
static::$messages = array();
return true;
}
if (file_exists($filename = __DIR__.'/Lang/'.$locale.'.php')) {
static::$messages[$locale] = require $filename;
$this->addResource('array', static::$messages[$locale], $locale);
return true;
}
return false;
}
/**
* Init messages language from matching file in Lang directory.
*
* @param string $locale
*
* @return bool
*/
protected function loadMessagesFromFile($locale)
{
if (isset(static::$messages[$locale])) {
return true;
}
return $this->resetMessages($locale);
}
/**
* Set messages of a locale and take file first if present.
*
* @param string $locale
* @param array $messages
*
* @return $this
*/
public function setMessages($locale, $messages)
{
$this->loadMessagesFromFile($locale);
$this->addResource('array', $messages, $locale);
static::$messages[$locale] = array_merge(
isset(static::$messages[$locale]) ? static::$messages[$locale] : array(),
$messages
);
return $this;
}
/**
* Get messages of a locale, if none given, return all the
* languages.
*
* @param string|null $locale
*
* @return array
*/
public function getMessages($locale = null)
{
return $locale === null ? static::$messages : static::$messages[$locale];
}
/**
* Set the current translator locale and indicate if the source locale file exists
*
* @param string $locale locale ex. en
*
* @return bool
*/
public function setLocale($locale)
{
$locale = preg_replace_callback('/[-_]([a-z]{2,})/', function ($matches) {
// _2-letters is a region, _3+-letters is a variant
return '_'.call_user_func(strlen($matches[1]) > 2 ? 'ucfirst' : 'strtoupper', $matches[1]);
}, strtolower($locale));
if ($this->loadMessagesFromFile($locale)) {
parent::setLocale($locale);
return true;
}
return false;
}
}

View File

@@ -0,0 +1,150 @@
<?php
namespace Carbon;
use Composer\Composer;
use Composer\Config;
use Composer\IO\ConsoleIO;
use Composer\Script\Event as ScriptEvent;
use Symfony\Component\Console\Helper\HelperSet;
use Symfony\Component\Console\Helper\QuestionHelper;
use Symfony\Component\Console\Input\StringInput;
use Symfony\Component\Console\Output\ConsoleOutput;
use UpdateHelper\UpdateHelper;
use UpdateHelper\UpdateHelperInterface;
class Upgrade implements UpdateHelperInterface
{
const ASK_ON_UPDATE = false;
const SUGGEST_ON_UPDATE = false;
protected static $laravelLibraries = array(
'laravel/framework' => '5.8.0',
'laravel/cashier' => '9.0.1',
'illuminate/support' => '5.8.0',
'laravel/dusk' => '5.0.0',
);
protected static $otherLibraries = array(
'spatie/laravel-analytics' => '3.6.4',
'jenssegers/date' => '3.5.0',
);
/**
* @param \UpdateHelper\UpdateHelper $helper
*/
public function check(UpdateHelper $helper)
{
$helper->write(array(
'Carbon 1 is deprecated, see how to migrate to Carbon 2.',
'https://carbon.nesbot.com/docs/#api-carbon-2',
));
if (static::SUGGEST_ON_UPDATE || static::ASK_ON_UPDATE || $helper->getIo()->isVerbose()) {
$laravelUpdate = array();
foreach (static::$laravelLibraries as $name => $version) {
if ($helper->hasAsDependency($name) && $helper->isDependencyLesserThan($name, $version)) {
$laravelUpdate[$name] = $version;
}
}
if (count($laravelUpdate)) {
$output = array(
' Please consider upgrading your Laravel dependencies to be compatible with Carbon 2:',
);
foreach ($laravelUpdate as $name => $version) {
$output[] = " - $name at least to version $version";
}
$output[] = '';
$output[] = " If you can't update Laravel, check https://carbon.nesbot.com/ to see how to";
$output[] = ' install Carbon 2 using alias version and our adapter kylekatarnls/laravel-carbon-2';
$output[] = '';
$helper->write($output);
}
foreach (static::$otherLibraries as $name => $version) {
if ($helper->hasAsDependency($name) && $helper->isDependencyLesserThan($name, $version)) {
$helper->write(" Please consider upgrading $name at least to $version to be compatible with Carbon 2.\n");
}
}
if (static::ASK_ON_UPDATE) {
static::askForUpgrade($helper);
return;
}
}
$path = implode(DIRECTORY_SEPARATOR, array('.', 'vendor', 'bin', 'upgrade-carbon'));
if (!file_exists($path)) {
$path = realpath(__DIR__.'/../../bin/upgrade-carbon');
}
$helper->write(
' You can run '.escapeshellarg($path).
' to get help in updating carbon and other frameworks and libraries that depend on it.'
);
}
private static function getUpgradeQuestion($upgrades)
{
$message = "Do you want us to try the following upgrade:\n";
foreach ($upgrades as $name => $version) {
$message .= " - $name: $version\n";
}
return $message.'[Y/N] ';
}
public static function askForUpgrade(UpdateHelper $helper, $upgradeIfNotInteractive = false)
{
$upgrades = array(
'nesbot/carbon' => '^2.0.0',
);
foreach (array(static::$laravelLibraries, static::$otherLibraries) as $libraries) {
foreach ($libraries as $name => $version) {
if ($helper->hasAsDependency($name) && $helper->isDependencyLesserThan($name, $version)) {
$upgrades[$name] = "^$version";
}
}
}
$shouldUpgrade = $helper->isInteractive()
? $helper->getIo()->askConfirmation(static::getUpgradeQuestion($upgrades))
: $upgradeIfNotInteractive;
if ($shouldUpgrade) {
$helper->setDependencyVersions($upgrades)->update();
}
}
public static function upgrade(ScriptEvent $event = null)
{
if (!$event) {
$composer = new Composer();
$baseDir = __DIR__.'/../..';
if (file_exists("$baseDir/autoload.php")) {
$baseDir .= '/..';
}
$composer->setConfig(new Config(true, $baseDir));
$event = new ScriptEvent(
'upgrade-carbon',
$composer,
new ConsoleIO(new StringInput(''), new ConsoleOutput(), new HelperSet(array(
new QuestionHelper(),
)))
);
}
static::askForUpgrade(new UpdateHelper($event), true);
}
}

View File

@@ -0,0 +1,11 @@
<?php
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;

View File

@@ -0,0 +1,18 @@
<?php
if (!interface_exists('JsonSerializable')) {
interface JsonSerializable
{
/**
* Specify data which should be serialized to JSON.
*
* @link http://php.net/manual/en/jsonserializable.jsonserialize.php
*
* @return mixed data which can be serialized by <b>json_encode</b>,
* which is a value of any type other than a resource.
*
* @since 5.4.0
*/
public function jsonSerialize();
}
}

View File

@@ -0,0 +1,11 @@
<?php
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;

View File

@@ -0,0 +1,11 @@
<?php
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: ".gmdate("D, d M Y H:i:s")." GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
header("Location: ../");
exit;