Merge "objectcache: use INTERIM_KEY_TTL constant in WANObjectCache for readability"
[lhc/web/wiklou.git] / resources / lib / moment / locale / ta.js
1 //! moment.js locale configuration
2 //! locale : Tamil [ta]
3 //! author : Arjunkumar Krishnamoorthy : https://github.com/tk120404
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 symbolMap = {
14 '1': '௧',
15 '2': '௨',
16 '3': '௩',
17 '4': '௪',
18 '5': '௫',
19 '6': '௬',
20 '7': '௭',
21 '8': '௮',
22 '9': '௯',
23 '0': '௦'
24 };
25 var numberMap = {
26 '௧': '1',
27 '௨': '2',
28 '௩': '3',
29 '௪': '4',
30 '௫': '5',
31 '௬': '6',
32 '௭': '7',
33 '௮': '8',
34 '௯': '9',
35 '௦': '0'
36 };
37
38 var ta = moment.defineLocale('ta', {
39 months : 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),
40 monthsShort : 'ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்'.split('_'),
41 weekdays : 'ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை'.split('_'),
42 weekdaysShort : 'ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி'.split('_'),
43 weekdaysMin : 'ஞா_தி_செ_பு_வி_வெ_ச'.split('_'),
44 longDateFormat : {
45 LT : 'HH:mm',
46 LTS : 'HH:mm:ss',
47 L : 'DD/MM/YYYY',
48 LL : 'D MMMM YYYY',
49 LLL : 'D MMMM YYYY, HH:mm',
50 LLLL : 'dddd, D MMMM YYYY, HH:mm'
51 },
52 calendar : {
53 sameDay : '[இன்று] LT',
54 nextDay : '[நாளை] LT',
55 nextWeek : 'dddd, LT',
56 lastDay : '[நேற்று] LT',
57 lastWeek : '[கடந்த வாரம்] dddd, LT',
58 sameElse : 'L'
59 },
60 relativeTime : {
61 future : '%s இல்',
62 past : '%s முன்',
63 s : 'ஒரு சில விநாடிகள்',
64 m : 'ஒரு நிமிடம்',
65 mm : '%d நிமிடங்கள்',
66 h : 'ஒரு மணி நேரம்',
67 hh : '%d மணி நேரம்',
68 d : 'ஒரு நாள்',
69 dd : '%d நாட்கள்',
70 M : 'ஒரு மாதம்',
71 MM : '%d மாதங்கள்',
72 y : 'ஒரு வருடம்',
73 yy : '%d ஆண்டுகள்'
74 },
75 dayOfMonthOrdinalParse: /\d{1,2}வது/,
76 ordinal : function (number) {
77 return number + 'வது';
78 },
79 preparse: function (string) {
80 return string.replace(/[௧௨௩௪௫௬௭௮௯௦]/g, function (match) {
81 return numberMap[match];
82 });
83 },
84 postformat: function (string) {
85 return string.replace(/\d/g, function (match) {
86 return symbolMap[match];
87 });
88 },
89 // refer http://ta.wikipedia.org/s/1er1
90 meridiemParse: /யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,
91 meridiem : function (hour, minute, isLower) {
92 if (hour < 2) {
93 return ' யாமம்';
94 } else if (hour < 6) {
95 return ' வைகறை'; // வைகறை
96 } else if (hour < 10) {
97 return ' காலை'; // காலை
98 } else if (hour < 14) {
99 return ' நண்பகல்'; // நண்பகல்
100 } else if (hour < 18) {
101 return ' எற்பாடு'; // எற்பாடு
102 } else if (hour < 22) {
103 return ' மாலை'; // மாலை
104 } else {
105 return ' யாமம்';
106 }
107 },
108 meridiemHour : function (hour, meridiem) {
109 if (hour === 12) {
110 hour = 0;
111 }
112 if (meridiem === 'யாமம்') {
113 return hour < 2 ? hour : hour + 12;
114 } else if (meridiem === 'வைகறை' || meridiem === 'காலை') {
115 return hour;
116 } else if (meridiem === 'நண்பகல்') {
117 return hour >= 10 ? hour : hour + 12;
118 } else {
119 return hour + 12;
120 }
121 },
122 week : {
123 dow : 0, // Sunday is the first day of the week.
124 doy : 6 // The week that contains Jan 1st is the first week of the year.
125 }
126 });
127
128 return ta;
129
130 })));