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