Merge "Revert "Use display name in category page subheadings if provided""
[lhc/web/wiklou.git] / resources / lib / moment / locale / es.js
1 // moment.js locale configuration
2 // locale : spanish (es)
3 // author : Julio Napurí : https://github.com/julionc
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 var monthsShortDot = 'ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.'.split('_'),
17 monthsShort = 'ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic'.split('_');
18
19 return moment.defineLocale('es', {
20 months : 'enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre'.split('_'),
21 monthsShort : function (m, format) {
22 if (/-MMM-/.test(format)) {
23 return monthsShort[m.month()];
24 } else {
25 return monthsShortDot[m.month()];
26 }
27 },
28 weekdays : 'domingo_lunes_martes_miércoles_jueves_viernes_sábado'.split('_'),
29 weekdaysShort : 'dom._lun._mar._mié._jue._vie._sáb.'.split('_'),
30 weekdaysMin : 'Do_Lu_Ma_Mi_Ju_Vi_Sá'.split('_'),
31 longDateFormat : {
32 LT : 'H:mm',
33 LTS : 'LT:ss',
34 L : 'DD/MM/YYYY',
35 LL : 'D [de] MMMM [de] YYYY',
36 LLL : 'D [de] MMMM [de] YYYY LT',
37 LLLL : 'dddd, D [de] MMMM [de] YYYY LT'
38 },
39 calendar : {
40 sameDay : function () {
41 return '[hoy a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
42 },
43 nextDay : function () {
44 return '[mañana a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
45 },
46 nextWeek : function () {
47 return 'dddd [a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
48 },
49 lastDay : function () {
50 return '[ayer a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
51 },
52 lastWeek : function () {
53 return '[el] dddd [pasado a la' + ((this.hours() !== 1) ? 's' : '') + '] LT';
54 },
55 sameElse : 'L'
56 },
57 relativeTime : {
58 future : 'en %s',
59 past : 'hace %s',
60 s : 'unos segundos',
61 m : 'un minuto',
62 mm : '%d minutos',
63 h : 'una hora',
64 hh : '%d horas',
65 d : 'un día',
66 dd : '%d días',
67 M : 'un mes',
68 MM : '%d meses',
69 y : 'un año',
70 yy : '%d años'
71 },
72 ordinalParse : /\d{1,2}º/,
73 ordinal : '%dº',
74 week : {
75 dow : 1, // Monday is the first day of the week.
76 doy : 4 // The week that contains Jan 4th is the first week of the year.
77 }
78 });
79 }));