[ Index ]

PHP Cross Reference of BuddyPress

title

Body

[close]

/src/bp-core/js/vendor/moment-js/locale/ -> el.js (source)

   1  //! moment.js locale configuration
   2  //! locale : Greek [el]
   3  //! author : Aggelos Karalias : https://github.com/mehiel
   4  
   5  ;(function (global, factory) {
   6     typeof exports === 'object' && typeof module !== 'undefined'
   7         && typeof require === 'function' ? factory(require('../moment')) :
   8     typeof define === 'function' && define.amd ? define(['../moment'], factory) :
   9     factory(global.moment)
  10  }(this, function (moment) { 'use strict';
  11  
  12      function isFunction(input) {
  13          return input instanceof Function || Object.prototype.toString.call(input) === '[object Function]';
  14      }
  15  
  16  
  17      var el = moment.defineLocale('el', {
  18          monthsNominativeEl : 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split('_'),
  19          monthsGenitiveEl : 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split('_'),
  20          months : function (momentToFormat, format) {
  21              if (/D/.test(format.substring(0, format.indexOf('MMMM')))) { // if there is a day number before 'MMMM'
  22                  return this._monthsGenitiveEl[momentToFormat.month()];
  23              } else {
  24                  return this._monthsNominativeEl[momentToFormat.month()];
  25              }
  26          },
  27          monthsShort : 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split('_'),
  28          weekdays : 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split('_'),
  29          weekdaysShort : 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'),
  30          weekdaysMin : 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'),
  31          meridiem : function (hours, minutes, isLower) {
  32              if (hours > 11) {
  33                  return isLower ? 'μμ' : 'ΜΜ';
  34              } else {
  35                  return isLower ? 'πμ' : 'ΠΜ';
  36              }
  37          },
  38          isPM : function (input) {
  39              return ((input + '').toLowerCase()[0] === 'μ');
  40          },
  41          meridiemParse : /[ΠΜ]\.?Μ?\.?/i,
  42          longDateFormat : {
  43              LT : 'h:mm A',
  44              LTS : 'h:mm:ss A',
  45              L : 'DD/MM/YYYY',
  46              LL : 'D MMMM YYYY',
  47              LLL : 'D MMMM YYYY h:mm A',
  48              LLLL : 'dddd, D MMMM YYYY h:mm A'
  49          },
  50          calendarEl : {
  51              sameDay : '[Σήμερα {}] LT',
  52              nextDay : '[Αύριο {}] LT',
  53              nextWeek : 'dddd [{}] LT',
  54              lastDay : '[Χθες {}] LT',
  55              lastWeek : function () {
  56                  switch (this.day()) {
  57                      case 6:
  58                          return '[το προηγούμενο] dddd [{}] LT';
  59                      default:
  60                          return '[την προηγούμενη] dddd [{}] LT';
  61                  }
  62              },
  63              sameElse : 'L'
  64          },
  65          calendar : function (key, mom) {
  66              var output = this._calendarEl[key],
  67                  hours = mom && mom.hours();
  68              if (isFunction(output)) {
  69                  output = output.apply(mom);
  70              }
  71              return output.replace('{}', (hours % 12 === 1 ? 'στη' : 'στις'));
  72          },
  73          relativeTime : {
  74              future : 'σε %s',
  75              past : '%s πριν',
  76              s : 'λίγα δευτερόλεπτα',
  77              m : 'ένα λεπτό',
  78              mm : '%d λεπτά',
  79              h : 'μία ώρα',
  80              hh : '%d ώρες',
  81              d : 'μία μέρα',
  82              dd : '%d μέρες',
  83              M : 'ένας μήνας',
  84              MM : '%d μήνες',
  85              y : 'ένας χρόνος',
  86              yy : '%d χρόνια'
  87          },
  88          ordinalParse: /\d{1,2}η/,
  89          ordinal: '%dη',
  90          week : {
  91              dow : 1, // Monday is the first day of the week.
  92              doy : 4  // The week that contains Jan 4st is the first week of the year.
  93          }
  94      });
  95  
  96      return el;
  97  
  98  }));


Generated: Thu Aug 24 01:01:27 2023 Cross-referenced by PHPXref 0.7.1