Merge "Fix escaping for MSSQL LIKE queries."
[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 (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((typeof global !== 'undefined' ? global : this).moment); // node or other global
12 }
13 }(function (moment) {
14 return moment.defineLocale('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 LTS : 'LT:ss',
23 L : 'DD/MM/YYYY',
24 LL : 'D MMMM YYYY',
25 LLL : 'D MMMM YYYY LT',
26 LLLL : 'dddd D MMMM YYYY LT'
27 },
28 calendar : {
29 sameDay : function () {
30 return '[avui a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
31 },
32 nextDay : function () {
33 return '[demà a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
34 },
35 nextWeek : function () {
36 return 'dddd [a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
37 },
38 lastDay : function () {
39 return '[ahir a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
40 },
41 lastWeek : function () {
42 return '[el] dddd [passat a ' + ((this.hours() !== 1) ? 'les' : 'la') + '] LT';
43 },
44 sameElse : 'L'
45 },
46 relativeTime : {
47 future : 'en %s',
48 past : 'fa %s',
49 s : 'uns segons',
50 m : 'un minut',
51 mm : '%d minuts',
52 h : 'una hora',
53 hh : '%d hores',
54 d : 'un dia',
55 dd : '%d dies',
56 M : 'un mes',
57 MM : '%d mesos',
58 y : 'un any',
59 yy : '%d anys'
60 },
61 ordinalParse: /\d{1,2}(r|n|t|è|a)/,
62 ordinal : function (number, period) {
63 var output = (number === 1) ? 'r' :
64 (number === 2) ? 'n' :
65 (number === 3) ? 'r' :
66 (number === 4) ? 't' : 'è';
67 if (period === 'w' || period === 'W') {
68 output = 'a';
69 }
70 return number + output;
71 },
72 week : {
73 dow : 1, // Monday is the first day of the week.
74 doy : 4 // The week that contains Jan 4th is the first week of the year.
75 }
76 });
77 }));