Merge "Revert "Use display name in category page subheadings if provided""
[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 // Comment out broken wrapper, see T145382
7 /*if (typeof define === 'function' && define.amd) {
8 define(['moment'], factory); // AMD
9 } else if (typeof exports === 'object') {
10 module.exports = factory(require('../moment')); // Node
11 } else {
12 factory((typeof global !== 'undefined' ? global : this).moment); // node or other global
13 }*/
14 factory(this.moment);
15 }(function (moment) {
16 return moment.defineLocale('el', {
17 monthsNominativeEl : 'Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος'.split('_'),
18 monthsGenitiveEl : 'Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου'.split('_'),
19 months : function (momentToFormat, format) {
20 if (/D/.test(format.substring(0, format.indexOf('MMMM')))) { // if there is a day number before 'MMMM'
21 return this._monthsGenitiveEl[momentToFormat.month()];
22 } else {
23 return this._monthsNominativeEl[momentToFormat.month()];
24 }
25 },
26 monthsShort : 'Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ'.split('_'),
27 weekdays : 'Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο'.split('_'),
28 weekdaysShort : 'Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ'.split('_'),
29 weekdaysMin : 'Κυ_Δε_Τρ_Τε_Πε_Πα_Σα'.split('_'),
30 meridiem : function (hours, minutes, isLower) {
31 if (hours > 11) {
32 return isLower ? 'μμ' : 'ΜΜ';
33 } else {
34 return isLower ? 'πμ' : 'ΠΜ';
35 }
36 },
37 isPM : function (input) {
38 return ((input + '').toLowerCase()[0] === 'μ');
39 },
40 meridiemParse : /[ΠΜ]\.?Μ?\.?/i,
41 longDateFormat : {
42 LT : 'h:mm A',
43 LTS : 'h:mm:ss A',
44 L : 'DD/MM/YYYY',
45 LL : 'D MMMM YYYY',
46 LLL : 'D MMMM YYYY LT',
47 LLLL : 'dddd, D MMMM YYYY LT'
48 },
49 calendarEl : {
50 sameDay : '[Σήμερα {}] LT',
51 nextDay : '[Αύριο {}] LT',
52 nextWeek : 'dddd [{}] LT',
53 lastDay : '[Χθες {}] LT',
54 lastWeek : function () {
55 switch (this.day()) {
56 case 6:
57 return '[το προηγούμενο] dddd [{}] LT';
58 default:
59 return '[την προηγούμενη] dddd [{}] LT';
60 }
61 },
62 sameElse : 'L'
63 },
64 calendar : function (key, mom) {
65 var output = this._calendarEl[key],
66 hours = mom && mom.hours();
67
68 if (typeof output === 'function') {
69 output = output.apply(mom);
70 }
71
72 return output.replace('{}', (hours % 12 === 1 ? 'στη' : 'στις'));
73 },
74 relativeTime : {
75 future : 'σε %s',
76 past : '%s πριν',
77 s : 'λίγα δευτερόλεπτα',
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 ordinalParse: /\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 }));