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