脤艘/晤憮 測鎢
囀
<?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 Stoka * - 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 = ['svtdiena', 'pirmdiena', 'otrdiena', 'tre禳diena', 'ceturtdiena', 'piektdiena', 'sestdiena']; $daysOfWeekLocativum = ['svtdien', 'pirmdien', 'otrdien', 'tre禳dien', 'ceturtdien', 'piektdien', 'sestdien']; $transformDiff = function ($input) { return strtr($input, [ // Nominative => "pirms/pc" Dative 'gads' => 'gada', 'gadi' => 'gadiem', 'gadu' => 'gadiem', 'mnesis' => 'mne禳a', 'mne禳i' => 'mne禳iem', 'mne禳u' => 'mne禳iem', 'ned躁a' => 'ned躁as', 'ned躁as' => 'ned躁m', 'ned躁u' => 'ned躁m', 'diena' => 'dienas', 'dienas' => 'dienm', 'dienu' => 'dienm', 'stunda' => 'stundas', 'stundas' => 'stundm', 'stundu' => 'stundm', 'min贖te' => 'min贖tes', 'min贖tes' => 'min贖tm', 'min贖禳u' => 'min贖tm', 'sekunde' => 'sekundes', 'sekundes' => 'sekundm', 'sekun鱉u' => 'sekundm', ]); }; return [ 'ago' => function ($time) use ($transformDiff) { return 'pirms '.$transformDiff($time); }, 'from_now' => function ($time) use ($transformDiff) { return 'pc '.$transformDiff($time); }, 'year' => '0 gadu|:count gads|:count gadi', 'y' => ':count g.', 'a_year' => '{1}gads|0 gadu|:count gads|:count gadi', 'month' => '0 mne禳u|:count mnesis|:count mne禳i', 'm' => ':count mn.', 'a_month' => '{1}mnesis|0 mne禳u|:count mnesis|:count mne禳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 vlk', 'year_after' => '0 gadus|:count gadu|:count gadus', 'a_year_after' => '{1}gadu|0 gadus|:count gadu|:count gadus', 'month_after' => '0 mne禳us|:count mnesi|:count mne禳us', 'a_month_after' => '{1}mnesi|0 mne禳us|:count mnesi|:count mne禳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 agrk', 'year_before' => '0 gadus|:count gadu|:count gadus', 'a_year_before' => '{1}gadu|0 gadus|:count gadu|:count gadus', 'month_before' => '0 mne禳us|:count mnesi|:count mne禳us', 'a_month_before' => '{1}mnesi|0 mne禳us|:count mnesi|:count mne禳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 '[nko禳o] ['.$daysOfWeekLocativum[$current->dayOfWeek].'] [plkst.] LT'; } return '['.$daysOfWeekLocativum[$current->dayOfWeek].'] [plkst.] LT'; }, 'lastDay' => '[vakar] [plkst.] LT', 'lastWeek' => function (CarbonInterface $current) use ($daysOfWeekLocativum) { return '[pagju禳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' => ['janvris', 'februris', 'marts', 'apr蘋lis', 'maijs', 'j贖nijs', 'j贖lijs', 'augusts', 'septembris', 'oktobris', 'novembris', 'decembris'], 'months_standalone' => ['janvr蘋', 'februr蘋', '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', 'pcpusdiena'], ];