Merge "OutputPage: Use PageViewLanguage instead of PageLanguage for mw.config"
[lhc/web/wiklou.git] / resources / lib / moment / locale / tr.js
1 // moment.js locale configuration
2 // locale : turkish (tr)
3 // authors : Erhan Gundogan : https://github.com/erhangundogan,
4 // Burak Yiğit Kaya: https://github.com/BYK
5
6 (function (factory) {
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 }(function (moment) {
15 var suffixes = {
16 1: '\'inci',
17 5: '\'inci',
18 8: '\'inci',
19 70: '\'inci',
20 80: '\'inci',
21
22 2: '\'nci',
23 7: '\'nci',
24 20: '\'nci',
25 50: '\'nci',
26
27 3: '\'üncü',
28 4: '\'üncü',
29 100: '\'üncü',
30
31 6: '\'ncı',
32
33 9: '\'uncu',
34 10: '\'uncu',
35 30: '\'uncu',
36
37 60: '\'ıncı',
38 90: '\'ıncı'
39 };
40
41 return moment.defineLocale('tr', {
42 months : 'Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık'.split('_'),
43 monthsShort : 'Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara'.split('_'),
44 weekdays : 'Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi'.split('_'),
45 weekdaysShort : 'Paz_Pts_Sal_Çar_Per_Cum_Cts'.split('_'),
46 weekdaysMin : 'Pz_Pt_Sa_Ça_Pe_Cu_Ct'.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 : '[bugün saat] LT',
57 nextDay : '[yarın saat] LT',
58 nextWeek : '[haftaya] dddd [saat] LT',
59 lastDay : '[dün] LT',
60 lastWeek : '[geçen hafta] dddd [saat] LT',
61 sameElse : 'L'
62 },
63 relativeTime : {
64 future : '%s sonra',
65 past : '%s önce',
66 s : 'birkaç saniye',
67 m : 'bir dakika',
68 mm : '%d dakika',
69 h : 'bir saat',
70 hh : '%d saat',
71 d : 'bir gün',
72 dd : '%d gün',
73 M : 'bir ay',
74 MM : '%d ay',
75 y : 'bir yıl',
76 yy : '%d yıl'
77 },
78 ordinalParse: /\d{1,2}'(inci|nci|üncü|ncı|uncu|ıncı)/,
79 ordinal : function (number) {
80 if (number === 0) { // special case for zero
81 return number + '\'ıncı';
82 }
83 var a = number % 10,
84 b = number % 100 - a,
85 c = number >= 100 ? 100 : null;
86
87 return number + (suffixes[a] || suffixes[b] || suffixes[c]);
88 },
89 week : {
90 dow : 1, // Monday is the first day of the week.
91 doy : 7 // The week that contains Jan 1st is the first week of the year.
92 }
93 });
94 }));