bootstrap3-datetimepicker-rails 2.1.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (69) hide show
  1. data/LICENSE.txt +22 -0
  2. data/README.md +67 -0
  3. data/lib/bootstrap3-datetimepicker-rails.rb +8 -0
  4. data/lib/bootstrap3-datetimepicker-rails/version.rb +5 -0
  5. data/vendor/assets/javascripts/bootstrap-datetimepicker.js +1084 -0
  6. data/vendor/assets/javascripts/bootstrap-datetimepicker.min.js +28 -0
  7. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ar-ma.js +56 -0
  8. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ar.js +56 -0
  9. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.bg.js +86 -0
  10. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.br.js +107 -0
  11. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.bs.js +139 -0
  12. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ca.js +66 -0
  13. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.cs.js +155 -0
  14. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.cv.js +59 -0
  15. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.da.js +56 -0
  16. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.de.js +71 -0
  17. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.el.js +79 -0
  18. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.en-au.js +62 -0
  19. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.en-ca.js +59 -0
  20. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.en-gb.js +63 -0
  21. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.eo.js +65 -0
  22. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.es.js +66 -0
  23. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.et.js +60 -0
  24. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.eu.js +60 -0
  25. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.fa.js +97 -0
  26. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.fi.js +103 -0
  27. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.fr-ca.js +54 -0
  28. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.fr.js +58 -0
  29. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.gl.js +71 -0
  30. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.he.js +77 -0
  31. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.hi.js +105 -0
  32. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.hr.js +140 -0
  33. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.hu.js +98 -0
  34. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.id.js +67 -0
  35. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.is.js +124 -0
  36. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.it.js +59 -0
  37. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ja.js +58 -0
  38. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ka.js +108 -0
  39. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ko.js +56 -0
  40. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.lt.js +118 -0
  41. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.lv.js +77 -0
  42. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ml.js +64 -0
  43. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.mr.js +104 -0
  44. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ms-my.js +66 -0
  45. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.nb.js +57 -0
  46. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ne.js +105 -0
  47. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.nl.js +67 -0
  48. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.nn.js +56 -0
  49. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.pl.js +98 -0
  50. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.pt-BR.js +56 -0
  51. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.pt.js +60 -0
  52. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ro.js +56 -0
  53. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.ru.js +163 -0
  54. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.sk.js +156 -0
  55. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.sl.js +144 -0
  56. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.sq.js +57 -0
  57. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.sv.js +63 -0
  58. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.th.js +58 -0
  59. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.tr.js +93 -0
  60. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.tzm-la.js +55 -0
  61. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.tzm.js +55 -0
  62. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.uk.js +157 -0
  63. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.uz.js +55 -0
  64. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.vn.js +62 -0
  65. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.zh-CN.js +108 -0
  66. data/vendor/assets/javascripts/locales/bootstrap-datetimepicker.zh-TW.js +84 -0
  67. data/vendor/assets/stylesheets/bootstrap-datetimepicker.css +174 -0
  68. data/vendor/assets/stylesheets/bootstrap-datetimepicker.min.css +8 -0
  69. metadata +163 -0
@@ -0,0 +1,66 @@
1
+ // moment.js language configuration
2
+ // language : catalan (ca)
3
+ // author : Juan G. Hurtado : https://github.com/juanghurtado
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.lang('ca', {
15
+ months : "Gener_Febrer_Març_Abril_Maig_Juny_Juliol_Agost_Setembre_Octubre_Novembre_Desembre".split("_"),
16
+ monthsShort : "Gen._Febr._Mar._Abr._Mai._Jun._Jul._Ag._Set._Oct._Nov._Des.".split("_"),
17
+ weekdays : "Diumenge_Dilluns_Dimarts_Dimecres_Dijous_Divendres_Dissabte".split("_"),
18
+ weekdaysShort : "Dg._Dl._Dt._Dc._Dj._Dv._Ds.".split("_"),
19
+ weekdaysMin : "Dg_Dl_Dt_Dc_Dj_Dv_Ds".split("_"),
20
+ longDateFormat : {
21
+ LT : "H:mm",
22
+ L : "DD/MM/YYYY",
23
+ LL : "D MMMM YYYY",
24
+ LLL : "D MMMM YYYY LT",
25
+ LLLL : "dddd D MMMM YYYY LT"
26
+ },
27
+ calendar : {
28
+ sameDay : function () {
29
+ return '[avui a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
30
+ },
31
+ nextDay : function () {
32
+ return '[demà a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
33
+ },
34
+ nextWeek : function () {
35
+ return 'dddd [a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
36
+ },
37
+ lastDay : function () {
38
+ return '[ahir a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
39
+ },
40
+ lastWeek : function () {
41
+ return '[el] dddd [passat a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
42
+ },
43
+ sameElse : 'L'
44
+ },
45
+ relativeTime : {
46
+ future : "en %s",
47
+ past : "fa %s",
48
+ s : "uns segons",
49
+ m : "un minut",
50
+ mm : "%d minuts",
51
+ h : "una hora",
52
+ hh : "%d hores",
53
+ d : "un dia",
54
+ dd : "%d dies",
55
+ M : "un mes",
56
+ MM : "%d mesos",
57
+ y : "un any",
58
+ yy : "%d anys"
59
+ },
60
+ ordinal : '%dº',
61
+ week : {
62
+ dow : 1, // Monday is the first day of the week.
63
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
64
+ }
65
+ });
66
+ }));
@@ -0,0 +1,155 @@
1
+ // moment.js language configuration
2
+ // language : czech (cs)
3
+ // author : petrbela : https://github.com/petrbela
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
+ var months = "leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),
15
+ monthsShort = "led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_");
16
+
17
+ function plural(n) {
18
+ return (n > 1) && (n < 5) && (~~(n / 10) !== 1);
19
+ }
20
+
21
+ function translate(number, withoutSuffix, key, isFuture) {
22
+ var result = number + " ";
23
+ switch (key) {
24
+ case 's': // a few seconds / in a few seconds / a few seconds ago
25
+ return (withoutSuffix || isFuture) ? 'pár vteřin' : 'pár vteřinami';
26
+ case 'm': // a minute / in a minute / a minute ago
27
+ return withoutSuffix ? 'minuta' : (isFuture ? 'minutu' : 'minutou');
28
+ case 'mm': // 9 minutes / in 9 minutes / 9 minutes ago
29
+ if (withoutSuffix || isFuture) {
30
+ return result + (plural(number) ? 'minuty' : 'minut');
31
+ } else {
32
+ return result + 'minutami';
33
+ }
34
+ break;
35
+ case 'h': // an hour / in an hour / an hour ago
36
+ return withoutSuffix ? 'hodina' : (isFuture ? 'hodinu' : 'hodinou');
37
+ case 'hh': // 9 hours / in 9 hours / 9 hours ago
38
+ if (withoutSuffix || isFuture) {
39
+ return result + (plural(number) ? 'hodiny' : 'hodin');
40
+ } else {
41
+ return result + 'hodinami';
42
+ }
43
+ break;
44
+ case 'd': // a day / in a day / a day ago
45
+ return (withoutSuffix || isFuture) ? 'den' : 'dnem';
46
+ case 'dd': // 9 days / in 9 days / 9 days ago
47
+ if (withoutSuffix || isFuture) {
48
+ return result + (plural(number) ? 'dny' : 'dní');
49
+ } else {
50
+ return result + 'dny';
51
+ }
52
+ break;
53
+ case 'M': // a month / in a month / a month ago
54
+ return (withoutSuffix || isFuture) ? 'měsíc' : 'měsícem';
55
+ case 'MM': // 9 months / in 9 months / 9 months ago
56
+ if (withoutSuffix || isFuture) {
57
+ return result + (plural(number) ? 'měsíce' : 'měsíců');
58
+ } else {
59
+ return result + 'měsíci';
60
+ }
61
+ break;
62
+ case 'y': // a year / in a year / a year ago
63
+ return (withoutSuffix || isFuture) ? 'rok' : 'rokem';
64
+ case 'yy': // 9 years / in 9 years / 9 years ago
65
+ if (withoutSuffix || isFuture) {
66
+ return result + (plural(number) ? 'roky' : 'let');
67
+ } else {
68
+ return result + 'lety';
69
+ }
70
+ break;
71
+ }
72
+ }
73
+
74
+ return moment.lang('cs', {
75
+ months : months,
76
+ monthsShort : monthsShort,
77
+ monthsParse : (function (months, monthsShort) {
78
+ var i, _monthsParse = [];
79
+ for (i = 0; i < 12; i++) {
80
+ // use custom parser to solve problem with July (červenec)
81
+ _monthsParse[i] = new RegExp('^' + months[i] + '$|^' + monthsShort[i] + '$', 'i');
82
+ }
83
+ return _monthsParse;
84
+ }(months, monthsShort)),
85
+ weekdays : "neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),
86
+ weekdaysShort : "ne_po_út_st_čt_pá_so".split("_"),
87
+ weekdaysMin : "ne_po_út_st_čt_pá_so".split("_"),
88
+ longDateFormat : {
89
+ LT: "H:mm",
90
+ L : "DD.MM.YYYY",
91
+ LL : "D. MMMM YYYY",
92
+ LLL : "D. MMMM YYYY LT",
93
+ LLLL : "dddd D. MMMM YYYY LT"
94
+ },
95
+ calendar : {
96
+ sameDay: "[dnes v] LT",
97
+ nextDay: '[zítra v] LT',
98
+ nextWeek: function () {
99
+ switch (this.day()) {
100
+ case 0:
101
+ return '[v neděli v] LT';
102
+ case 1:
103
+ case 2:
104
+ return '[v] dddd [v] LT';
105
+ case 3:
106
+ return '[ve středu v] LT';
107
+ case 4:
108
+ return '[ve čtvrtek v] LT';
109
+ case 5:
110
+ return '[v pátek v] LT';
111
+ case 6:
112
+ return '[v sobotu v] LT';
113
+ }
114
+ },
115
+ lastDay: '[včera v] LT',
116
+ lastWeek: function () {
117
+ switch (this.day()) {
118
+ case 0:
119
+ return '[minulou neděli v] LT';
120
+ case 1:
121
+ case 2:
122
+ return '[minulé] dddd [v] LT';
123
+ case 3:
124
+ return '[minulou středu v] LT';
125
+ case 4:
126
+ case 5:
127
+ return '[minulý] dddd [v] LT';
128
+ case 6:
129
+ return '[minulou sobotu v] LT';
130
+ }
131
+ },
132
+ sameElse: "L"
133
+ },
134
+ relativeTime : {
135
+ future : "za %s",
136
+ past : "před %s",
137
+ s : translate,
138
+ m : translate,
139
+ mm : translate,
140
+ h : translate,
141
+ hh : translate,
142
+ d : translate,
143
+ dd : translate,
144
+ M : translate,
145
+ MM : translate,
146
+ y : translate,
147
+ yy : translate
148
+ },
149
+ ordinal : '%d.',
150
+ week : {
151
+ dow : 1, // Monday is the first day of the week.
152
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
153
+ }
154
+ });
155
+ }));
@@ -0,0 +1,59 @@
1
+ // moment.js language configuration
2
+ // language : chuvash (cv)
3
+ // author : Anatoly Mironov : https://github.com/mirontoli
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.lang('cv', {
15
+ months : "кăрлач_нарăс_пуш_ака_май_çĕртме_утă_çурла_авăн_юпа_чӳк_раштав".split("_"),
16
+ monthsShort : "кăр_нар_пуш_ака_май_çĕр_утă_çур_ав_юпа_чӳк_раш".split("_"),
17
+ weekdays : "вырсарникун_тунтикун_ытларикун_юнкун_кĕçнерникун_эрнекун_шăматкун".split("_"),
18
+ weekdaysShort : "выр_тун_ытл_юн_кĕç_эрн_шăм".split("_"),
19
+ weekdaysMin : "вр_тн_ыт_юн_кç_эр_шм".split("_"),
20
+ longDateFormat : {
21
+ LT : "HH:mm",
22
+ L : "DD-MM-YYYY",
23
+ LL : "YYYY [çулхи] MMMM [уйăхĕн] D[-мĕшĕ]",
24
+ LLL : "YYYY [çулхи] MMMM [уйăхĕн] D[-мĕшĕ], LT",
25
+ LLLL : "dddd, YYYY [çулхи] MMMM [уйăхĕн] D[-мĕшĕ], LT"
26
+ },
27
+ calendar : {
28
+ sameDay: '[Паян] LT [сехетре]',
29
+ nextDay: '[Ыран] LT [сехетре]',
30
+ lastDay: '[Ĕнер] LT [сехетре]',
31
+ nextWeek: '[Çитес] dddd LT [сехетре]',
32
+ lastWeek: '[Иртнĕ] dddd LT [сехетре]',
33
+ sameElse: 'L'
34
+ },
35
+ relativeTime : {
36
+ future : function (output) {
37
+ var affix = /сехет$/i.exec(output) ? "рен" : /çул$/i.exec(output) ? "тан" : "ран";
38
+ return output + affix;
39
+ },
40
+ past : "%s каялла",
41
+ s : "пĕр-ик çеккунт",
42
+ m : "пĕр минут",
43
+ mm : "%d минут",
44
+ h : "пĕр сехет",
45
+ hh : "%d сехет",
46
+ d : "пĕр кун",
47
+ dd : "%d кун",
48
+ M : "пĕр уйăх",
49
+ MM : "%d уйăх",
50
+ y : "пĕр çул",
51
+ yy : "%d çул"
52
+ },
53
+ ordinal : '%d-мĕш',
54
+ week : {
55
+ dow : 1, // Monday is the first day of the week.
56
+ doy : 7 // The week that contains Jan 1st is the first week of the year.
57
+ }
58
+ });
59
+ }));
@@ -0,0 +1,56 @@
1
+ // moment.js language configuration
2
+ // language : danish (da)
3
+ // author : Ulrik Nielsen : https://github.com/mrbase
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.lang('da', {
15
+ months : "januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),
16
+ monthsShort : "jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),
17
+ weekdays : "søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),
18
+ weekdaysShort : "søn_man_tir_ons_tor_fre_lør".split("_"),
19
+ weekdaysMin : "sø_ma_ti_on_to_fr_lø".split("_"),
20
+ longDateFormat : {
21
+ LT : "HH:mm",
22
+ L : "DD/MM/YYYY",
23
+ LL : "D MMMM YYYY",
24
+ LLL : "D MMMM YYYY LT",
25
+ LLLL : "dddd D. MMMM, YYYY LT"
26
+ },
27
+ calendar : {
28
+ sameDay : '[I dag kl.] LT',
29
+ nextDay : '[I morgen kl.] LT',
30
+ nextWeek : 'dddd [kl.] LT',
31
+ lastDay : '[I går kl.] LT',
32
+ lastWeek : '[sidste] dddd [kl] LT',
33
+ sameElse : 'L'
34
+ },
35
+ relativeTime : {
36
+ future : "om %s",
37
+ past : "%s siden",
38
+ s : "få sekunder",
39
+ m : "et minut",
40
+ mm : "%d minutter",
41
+ h : "en time",
42
+ hh : "%d timer",
43
+ d : "en dag",
44
+ dd : "%d dage",
45
+ M : "en måned",
46
+ MM : "%d måneder",
47
+ y : "et år",
48
+ yy : "%d år"
49
+ },
50
+ ordinal : '%d.',
51
+ week : {
52
+ dow : 1, // Monday is the first day of the week.
53
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
54
+ }
55
+ });
56
+ }));
@@ -0,0 +1,71 @@
1
+ // moment.js language configuration
2
+ // language : german (de)
3
+ // author : lluchs : https://github.com/lluchs
4
+ // author: Menelion Elensúle: https://github.com/Oire
5
+
6
+ (function (factory) {
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(window.moment); // Browser global
13
+ }
14
+ }(function (moment) {
15
+ function processRelativeTime(number, withoutSuffix, key, isFuture) {
16
+ var format = {
17
+ 'm': ['eine Minute', 'einer Minute'],
18
+ 'h': ['eine Stunde', 'einer Stunde'],
19
+ 'd': ['ein Tag', 'einem Tag'],
20
+ 'dd': [number + ' Tage', number + ' Tagen'],
21
+ 'M': ['ein Monat', 'einem Monat'],
22
+ 'MM': [number + ' Monate', number + ' Monaten'],
23
+ 'y': ['ein Jahr', 'einem Jahr'],
24
+ 'yy': [number + ' Jahre', number + ' Jahren']
25
+ };
26
+ return withoutSuffix ? format[key][0] : format[key][1];
27
+ }
28
+
29
+ return moment.lang('de', {
30
+ months : "Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),
31
+ monthsShort : "Jan._Febr._Mrz._Apr._Mai_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),
32
+ weekdays : "Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),
33
+ weekdaysShort : "So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),
34
+ weekdaysMin : "So_Mo_Di_Mi_Do_Fr_Sa".split("_"),
35
+ longDateFormat : {
36
+ LT: "H:mm [Uhr]",
37
+ L : "DD.MM.YYYY",
38
+ LL : "D. MMMM YYYY",
39
+ LLL : "D. MMMM YYYY LT",
40
+ LLLL : "dddd, D. MMMM YYYY LT"
41
+ },
42
+ calendar : {
43
+ sameDay: "[Heute um] LT",
44
+ sameElse: "L",
45
+ nextDay: '[Morgen um] LT',
46
+ nextWeek: 'dddd [um] LT',
47
+ lastDay: '[Gestern um] LT',
48
+ lastWeek: '[letzten] dddd [um] LT'
49
+ },
50
+ relativeTime : {
51
+ future : "in %s",
52
+ past : "vor %s",
53
+ s : "ein paar Sekunden",
54
+ m : processRelativeTime,
55
+ mm : "%d Minuten",
56
+ h : processRelativeTime,
57
+ hh : "%d Stunden",
58
+ d : processRelativeTime,
59
+ dd : processRelativeTime,
60
+ M : processRelativeTime,
61
+ MM : processRelativeTime,
62
+ y : processRelativeTime,
63
+ yy : processRelativeTime
64
+ },
65
+ ordinal : '%d.',
66
+ week : {
67
+ dow : 1, // Monday is the first day of the week.
68
+ doy : 4 // The week that contains Jan 4th is the first week of the year.
69
+ }
70
+ });
71
+ }));
@@ -0,0 +1,79 @@
1
+ // moment.js language configuration
2
+ // language : 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.lang('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
+ longDateFormat : {
36
+ LT : "h:mm A",
37
+ L : "DD/MM/YYYY",
38
+ LL : "D MMMM YYYY",
39
+ LLL : "D MMMM YYYY LT",
40
+ LLLL : "dddd, D MMMM YYYY LT"
41
+ },
42
+ calendarEl : {
43
+ sameDay : '[Σήμερα {}] LT',
44
+ nextDay : '[Αύριο {}] LT',
45
+ nextWeek : 'dddd [{}] LT',
46
+ lastDay : '[Χθες {}] LT',
47
+ lastWeek : '[την προηγούμενη] dddd [{}] LT',
48
+ sameElse : 'L'
49
+ },
50
+ calendar : function (key, mom) {
51
+ var output = this._calendarEl[key],
52
+ hours = mom && mom.hours();
53
+
54
+ return output.replace("{}", (hours % 12 === 1 ? "στη" : "στις"));
55
+ },
56
+ relativeTime : {
57
+ future : "σε %s",
58
+ past : "%s πριν",
59
+ s : "δευτερόλεπτα",
60
+ m : "ένα λεπτό",
61
+ mm : "%d λεπτά",
62
+ h : "μία ώρα",
63
+ hh : "%d ώρες",
64
+ d : "μία μέρα",
65
+ dd : "%d μέρες",
66
+ M : "ένας μήνας",
67
+ MM : "%d μήνες",
68
+ y : "ένας χρόνος",
69
+ yy : "%d χρόνια"
70
+ },
71
+ ordinal : function (number) {
72
+ return number + 'η';
73
+ },
74
+ week : {
75
+ dow : 1, // Monday is the first day of the week.
76
+ doy : 4 // The week that contains Jan 4st is the first week of the year.
77
+ }
78
+ });
79
+ }));