he.php 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <?php
  2. /**
  3. * This file is part of the Carbon package.
  4. *
  5. * (c) Brian Nesbitt <brian@nesbot.com>
  6. *
  7. * For the full copyright and license information, please view the LICENSE
  8. * file that was distributed with this source code.
  9. */
  10. /*
  11. * Authors:
  12. * - Daniel Cohen Gindi
  13. * - JD Isaacks
  14. * - Itai Nathaniel
  15. * - GabMic
  16. * - Yaakov Dahan (yakidahan)
  17. */
  18. return [
  19. 'year' => 'שנה|{2}שנתיים|:count שנים',
  20. 'y' => 'שנה|:count שנ׳',
  21. 'month' => 'חודש|{2}חודשיים|:count חודשים',
  22. 'm' => 'חודש|:count חו׳',
  23. 'week' => 'שבוע|{2}שבועיים|:count שבועות',
  24. 'w' => 'שבוע|:count שב׳',
  25. 'day' => 'יום|{2}יומיים|:count ימים',
  26. 'd' => 'יום|:count ימ׳',
  27. 'hour' => 'שעה|{2}שעתיים|:count שעות',
  28. 'h' => 'שעה|:count שע׳',
  29. 'minute' => 'דקה|{2}שתי דקות|:count דקות',
  30. 'min' => 'דקה|:count דק׳',
  31. 'second' => 'שנייה|:count שניות',
  32. 'a_second' => 'כמה שניות|:count שניות',
  33. 's' => 'שניה|:count שנ׳',
  34. 'ago' => 'לפני :time',
  35. 'from_now' => 'בעוד :time מעכשיו',
  36. 'after' => 'אחרי :time',
  37. 'before' => 'לפני :time',
  38. 'diff_now' => 'עכשיו',
  39. 'diff_today' => 'היום',
  40. 'diff_today_regexp' => 'היום(?:\\s+ב־)?',
  41. 'diff_yesterday' => 'אתמול',
  42. 'diff_yesterday_regexp' => 'אתמול(?:\\s+ב־)?',
  43. 'diff_tomorrow' => 'מחר',
  44. 'diff_tomorrow_regexp' => 'מחר(?:\\s+ב־)?',
  45. 'formats' => [
  46. 'LT' => 'HH:mm',
  47. 'LTS' => 'HH:mm:ss',
  48. 'L' => 'DD/MM/YYYY',
  49. 'LL' => 'D [ב]MMMM YYYY',
  50. 'LLL' => 'D [ב]MMMM YYYY HH:mm',
  51. 'LLLL' => 'dddd, D [ב]MMMM YYYY HH:mm',
  52. ],
  53. 'calendar' => [
  54. 'sameDay' => '[היום ב־]LT',
  55. 'nextDay' => '[מחר ב־]LT',
  56. 'nextWeek' => 'dddd [בשעה] LT',
  57. 'lastDay' => '[אתמול ב־]LT',
  58. 'lastWeek' => '[ביום] dddd [האחרון בשעה] LT',
  59. 'sameElse' => 'L',
  60. ],
  61. 'meridiem' => function ($hour, $minute, $isLower) {
  62. if ($hour < 5) {
  63. return 'לפנות בוקר';
  64. }
  65. if ($hour < 10) {
  66. return 'בבוקר';
  67. }
  68. if ($hour < 12) {
  69. return $isLower ? 'לפנה"צ' : 'לפני הצהריים';
  70. }
  71. if ($hour < 18) {
  72. return $isLower ? 'אחה"צ' : 'אחרי הצהריים';
  73. }
  74. return 'בערב';
  75. },
  76. 'months' => ['ינואר', 'פברואר', 'מרץ', 'אפריל', 'מאי', 'יוני', 'יולי', 'אוגוסט', 'ספטמבר', 'אוקטובר', 'נובמבר', 'דצמבר'],
  77. 'months_short' => ['ינו׳', 'פבר׳', 'מרץ', 'אפר׳', 'מאי', 'יוני', 'יולי', 'אוג׳', 'ספט׳', 'אוק׳', 'נוב׳', 'דצמ׳'],
  78. 'weekdays' => ['ראשון', 'שני', 'שלישי', 'רביעי', 'חמישי', 'שישי', 'שבת'],
  79. 'weekdays_short' => ['א׳', 'ב׳', 'ג׳', 'ד׳', 'ה׳', 'ו׳', 'ש׳'],
  80. 'weekdays_min' => ['א', 'ב', 'ג', 'ד', 'ה', 'ו', 'ש'],
  81. 'list' => [', ', ' ו -'],
  82. 'weekend' => [5, 6],
  83. ];