ÿØÿÛ C 

ÿØÿÛ C 

<?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.
 */

use Carbon\CarbonInterface;

/**
 * This file is part of the Carbon package.
 *
 * (c) Brian Nesbitt <brian@nesbot.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

/*
 * Authors:
 * - Philippe Vaucher
 * - pirminis
 * - Tsutomu Kuroda
 * - tjku
 * - Andris ZÄÄ£eris
 * - Max Melentiev
 * - Edgars Beigarts
 * - Juanito Fatas
 * - Vitauts StoÄka
 * - Akira Matsuda
 * - Christopher Dell
 * - Enrique Vidal
 * - Simone Carletti
 * - Aaron Patterson
 * - Kaspars Bankovskis
 * - NicolÃ¡s Hock Isaza
 * - Viesturs Kavacs (Kavacky)
 * - zakse
 * - Janis Eglitis (janiseglitis)
 * - Guntars
 * - Juris Sudmalis
 */
$daysOfWeek = ['svÄ“tdiena', 'pirmdiena', 'otrdiena', 'treÅ¡diena', 'ceturtdiena', 'piektdiena', 'sestdiena'];
$daysOfWeekLocativum = ['svÄ“tdien', 'pirmdien', 'otrdien', 'treÅ¡dien', 'ceturtdien', 'piektdien', 'sestdien'];

$transformDiff = function ($input) {
    return strtr($input, [
        // Nominative => "pirms/pÄ“c" Dative
        'gads' => 'gada',
        'gadi' => 'gadiem',
        'gadu' => 'gadiem',
        'mÄ“nesis' => 'mÄ“neÅ¡a',
        'mÄ“neÅ¡i' => 'mÄ“neÅ¡iem',
        'mÄ“neÅ¡u' => 'mÄ“neÅ¡iem',
        'nedÄ“Ä¼a' => 'nedÄ“Ä¼as',
        'nedÄ“Ä¼as' => 'nedÄ“Ä¼Äm',
        'nedÄ“Ä¼u' => 'nedÄ“Ä¼Äm',
        'diena' => 'dienas',
        'dienas' => 'dienÄm',
        'dienu' => 'dienÄm',
        'stunda' => 'stundas',
        'stundas' => 'stundÄm',
        'stundu' => 'stundÄm',
        'minÅ«te' => 'minÅ«tes',
        'minÅ«tes' => 'minÅ«tÄ“m',
        'minÅ«Å¡u' => 'minÅ«tÄ“m',
        'sekunde' => 'sekundes',
        'sekundes' => 'sekundÄ“m',
        'sekunÅ¾u' => 'sekundÄ“m',
    ]);
};

return [
    'ago' => function ($time) use ($transformDiff) {
        return 'pirms '.$transformDiff($time);
    },
    'from_now' => function ($time) use ($transformDiff) {
        return 'pÄ“c '.$transformDiff($time);
    },

    'year' => '0 gadu|:count gads|:count gadi',
    'y' => ':count g.',
    'a_year' => '{1}gads|0 gadu|:count gads|:count gadi',
    'month' => '0 mÄ“neÅ¡u|:count mÄ“nesis|:count mÄ“neÅ¡i',
    'm' => ':count mÄ“n.',
    'a_month' => '{1}mÄ“nesis|0 mÄ“neÅ¡u|:count mÄ“nesis|:count mÄ“neÅ¡i',
    'week' => '0 nedÄ“Ä¼u|:count nedÄ“Ä¼a|:count nedÄ“Ä¼as',
    'w' => ':count ned.',
    'a_week' => '{1}nedÄ“Ä¼a|0 nedÄ“Ä¼u|:count nedÄ“Ä¼a|:count nedÄ“Ä¼as',
    'day' => '0 dienu|:count diena|:count dienas',
    'd' => ':count d.',
    'a_day' => '{1}diena|0 dienu|:count diena|:count dienas',
    'hour' => '0 stundu|:count stunda|:count stundas',
    'h' => ':count st.',
    'a_hour' => '{1}stunda|0 stundu|:count stunda|:count stundas',
    'minute' => '0 minÅ«Å¡u|:count minÅ«te|:count minÅ«tes',
    'min' => ':count min.',
    'a_minute' => '{1}minÅ«te|0 minÅ«Å¡u|:count minÅ«te|:count minÅ«tes',
    'second' => '0 sekunÅ¾u|:count sekunde|:count sekundes',
    's' => ':count sek.',
    'a_second' => '{1}sekunde|0 sekunÅ¾u|:count sekunde|:count sekundes',

    'after' => ':time vÄ“lÄk',
    'year_after' => '0 gadus|:count gadu|:count gadus',
    'a_year_after' => '{1}gadu|0 gadus|:count gadu|:count gadus',
    'month_after' => '0 mÄ“neÅ¡us|:count mÄ“nesi|:count mÄ“neÅ¡us',
    'a_month_after' => '{1}mÄ“nesi|0 mÄ“neÅ¡us|:count mÄ“nesi|:count mÄ“neÅ¡us',
    'week_after' => '0 nedÄ“Ä¼as|:count nedÄ“Ä¼u|:count nedÄ“Ä¼as',
    'a_week_after' => '{1}nedÄ“Ä¼u|0 nedÄ“Ä¼as|:count nedÄ“Ä¼u|:count nedÄ“Ä¼as',
    'day_after' => '0 dienas|:count dienu|:count dienas',
    'a_day_after' => '{1}dienu|0 dienas|:count dienu|:count dienas',
    'hour_after' => '0 stundas|:count stundu|:count stundas',
    'a_hour_after' => '{1}stundu|0 stundas|:count stundu|:count stundas',
    'minute_after' => '0 minÅ«tes|:count minÅ«ti|:count minÅ«tes',
    'a_minute_after' => '{1}minÅ«ti|0 minÅ«tes|:count minÅ«ti|:count minÅ«tes',
    'second_after' => '0 sekundes|:count sekundi|:count sekundes',
    'a_second_after' => '{1}sekundi|0 sekundes|:count sekundi|:count sekundes',

    'before' => ':time agrÄk',
    'year_before' => '0 gadus|:count gadu|:count gadus',
    'a_year_before' => '{1}gadu|0 gadus|:count gadu|:count gadus',
    'month_before' => '0 mÄ“neÅ¡us|:count mÄ“nesi|:count mÄ“neÅ¡us',
    'a_month_before' => '{1}mÄ“nesi|0 mÄ“neÅ¡us|:count mÄ“nesi|:count mÄ“neÅ¡us',
    'week_before' => '0 nedÄ“Ä¼as|:count nedÄ“Ä¼u|:count nedÄ“Ä¼as',
    'a_week_before' => '{1}nedÄ“Ä¼u|0 nedÄ“Ä¼as|:count nedÄ“Ä¼u|:count nedÄ“Ä¼as',
    'day_before' => '0 dienas|:count dienu|:count dienas',
    'a_day_before' => '{1}dienu|0 dienas|:count dienu|:count dienas',
    'hour_before' => '0 stundas|:count stundu|:count stundas',
    'a_hour_before' => '{1}stundu|0 stundas|:count stundu|:count stundas',
    'minute_before' => '0 minÅ«tes|:count minÅ«ti|:count minÅ«tes',
    'a_minute_before' => '{1}minÅ«ti|0 minÅ«tes|:count minÅ«ti|:count minÅ«tes',
    'second_before' => '0 sekundes|:count sekundi|:count sekundes',
    'a_second_before' => '{1}sekundi|0 sekundes|:count sekundi|:count sekundes',

    'first_day_of_week' => 1,
    'day_of_first_week_of_year' => 4,
    'list' => [', ', ' un '],

    'diff_now' => 'tagad',
    'diff_today' => 'Å¡odien',
    'diff_yesterday' => 'vakar',
    'diff_before_yesterday' => 'aizvakar',
    'diff_tomorrow' => 'rÄ«t',
    'diff_after_tomorrow' => 'parÄ«t',

    'formats' => [
        'LT' => 'HH:mm',
        'LTS' => 'HH:mm:ss',
        'L' => 'DD.MM.YYYY.',
        'LL' => 'YYYY. [gada] D. MMMM',
        'LLL' => 'DD.MM.YYYY., HH:mm',
        'LLLL' => 'YYYY. [gada] D. MMMM, HH:mm',
    ],

    'calendar' => [
        'sameDay' => '[Å¡odien] [plkst.] LT',
        'nextDay' => '[rÄ«t] [plkst.] LT',
        'nextWeek' => function (CarbonInterface $current, CarbonInterface $other) use ($daysOfWeekLocativum) {
            if ($current->week !== $other->week) {
                return '[nÄkoÅ¡o] ['.$daysOfWeekLocativum[$current->dayOfWeek].'] [plkst.] LT';
            }

            return '['.$daysOfWeekLocativum[$current->dayOfWeek].'] [plkst.] LT';
        },
        'lastDay' => '[vakar] [plkst.] LT',
        'lastWeek' => function (CarbonInterface $current) use ($daysOfWeekLocativum) {
            return '[pagÄjuÅ¡o] ['.$daysOfWeekLocativum[$current->dayOfWeek].'] [plkst.] LT';
        },
        'sameElse' => 'L',
    ],

    'weekdays' => $daysOfWeek,
    'weekdays_short' => ['Sv.', 'P.', 'O.', 'T.', 'C.', 'Pk.', 'S.'],
    'weekdays_min' => ['Sv.', 'P.', 'O.', 'T.', 'C.', 'Pk.', 'S.'],
    'months' => ['janvÄris', 'februÄris', 'marts', 'aprÄ«lis', 'maijs', 'jÅ«nijs', 'jÅ«lijs', 'augusts', 'septembris', 'oktobris', 'novembris', 'decembris'],
    'months_standalone' => ['janvÄrÄ«', 'februÄrÄ«', 'martÄ', 'aprÄ«lÄ«', 'maijÄ', 'jÅ«nijÄ', 'jÅ«lijÄ', 'augustÄ', 'septembrÄ«', 'oktobrÄ«', 'novembrÄ«', 'decembrÄ«'],
    'months_short' => ['janv.', 'febr.', 'martÄ', 'apr.', 'maijÄ', 'jÅ«n.', 'jÅ«l.', 'aug.', 'sept.', 'okt.', 'nov.', 'dec.'],
    'meridiem' => ['priekÅ¡pusdiena', 'pÄ“cpusdiena'],
];
