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