Merge "objectcache: use INTERIM_KEY_TTL constant in WANObjectCache for readability"
[lhc/web/wiklou.git] / resources / lib / moment / locale / ca.js
1 //! moment.js locale configuration
2 //! locale : Catalan [ca]
3 //! author : Juan G. Hurtado : https://github.com/juanghurtado
4
5 ;(function (global, factory) {
6 typeof exports === 'object' && typeof module !== 'undefined'
7 && typeof require === 'function' ? factory(require('../moment')) :
8 typeof define === 'function' && define.amd ? define(['../moment'], factory) :
9 factory(global.moment)
10 }(this, (function (moment) { 'use strict';
11
12
13 var ca = moment.defineLocale('ca', {
14 months : {
15 standalone: 'gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre'.split('_'),
16 format: 'de gener_de febrer_de març_d\'abril_de maig_de juny_de juliol_d\'agost_de setembre_d\'octubre_de novembre_de desembre'.split('_'),
17 isFormat: /D[oD]?(\s)+MMMM/
18 },
19 monthsShort : 'gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.'.split('_'),
20 monthsParseExact : true,
21 weekdays : 'diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte'.split('_'),
22 weekdaysShort : 'dg._dl._dt._dc._dj._dv._ds.'.split('_'),
23 weekdaysMin : 'dg_dl_dt_dc_dj_dv_ds'.split('_'),
24 weekdaysParseExact : true,
25 longDateFormat : {
26 LT : 'H:mm',
27 LTS : 'H:mm:ss',
28 L : 'DD/MM/YYYY',
29 LL : 'D MMMM [de] YYYY',
30 ll : 'D MMM YYYY',
31 LLL : 'D MMMM [de] YYYY [a les] H:mm',
32 lll : 'D MMM YYYY, H:mm',
33 LLLL : 'dddd D MMMM [de] YYYY [a les] H:mm',
34 llll : 'ddd D MMM YYYY, H:mm'
35 },
36 calendar : {
37 sameDay : function () {
38 return '[avui a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
39 },
40 nextDay : function () {
41 return '[demà a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
42 },
43 nextWeek : function () {
44 return 'dddd [a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
45 },
46 lastDay : function () {
47 return '[ahir a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
48 },
49 lastWeek : function () {
50 return '[el] dddd [passat a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
51 },
52 sameElse : 'L'
53 },
54 relativeTime : {
55 future : 'd\'aquí %s',
56 past : 'fa %s',
57 s : 'uns segons',
58 m : 'un minut',
59 mm : '%d minuts',
60 h : 'una hora',
61 hh : '%d hores',
62 d : 'un dia',
63 dd : '%d dies',
64 M : 'un mes',
65 MM : '%d mesos',
66 y : 'un any',
67 yy : '%d anys'
68 },
69 dayOfMonthOrdinalParse: /\d{1,2}(r|n|t|è|a)/,
70 ordinal : function (number, period) {
71 var output = (number === 1) ? 'r' :
72 (number === 2) ? 'n' :
73 (number === 3) ? 'r' :
74 (number === 4) ? 't' : 'è';
75 if (period === 'w' || period === 'W') {
76 output = 'a';
77 }
78 return number + output;
79 },
80 week : {
81 dow : 1, // Monday is the first day of the week.
82 doy : 4 // The week that contains Jan 4th is the first week of the year.
83 }
84 });
85
86 return ca;
87
88 })));