Merge "Improve docs for Title::getInternalURL/getCanonicalURL"
[lhc/web/wiklou.git] / resources / lib / moment / locale / el.js
1 //! moment.js locale configuration
2
3 ;(function (global, factory) {
4 typeof exports === 'object' && typeof module !== 'undefined'
5 && typeof require === 'function' ? factory(require('../moment')) :
6 typeof define === 'function' && define.amd ? define(['../moment'], factory) :
7 factory(global.moment)
8 }(this, (function (moment) { 'use strict';
9
10 function isFunction(input) {
11 return input instanceof Function || Object.prototype.toString.call(input) === '[object Function]';
12 }
13
14
15 var el = moment.defineLocale('el', {
16 monthsNominativeEl : 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split('_'),
17 monthsGenitiveEl : 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split('_'),
18 months : function (momentToFormat, format) {
19 if (!momentToFormat) {
20 return this._monthsNominativeEl;
21 } else if (typeof format === 'string' && /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 ss : '%d δευτερόλεπτα',
78 m : 'ένα λεπτό',
79 mm : '%d λεπτά',
80 h : 'μία ώρα',
81 hh : '%d ώρες',
82 d : 'μία μέρα',
83 dd : '%d μέρες',
84 M : 'ένας μήνας',
85 MM : '%d μήνες',
86 y : 'ένας χρόνος',
87 yy : '%d χρόνια'
88 },
89 dayOfMonthOrdinalParse: /\d{1,2}η/,
90 ordinal: '%dη',
91 week : {
92 dow : 1, // Monday is the first day of the week.
93 doy : 4 // The week that contains Jan 4st is the first week of the year.
94 }
95 });
96
97 return el;
98
99 })));