[ Index ] |
PHP Cross Reference of BuddyPress |
[Summary view] [Print] [Text view]
1 //! moment.js locale configuration 2 //! locale : Talossan [tzl] 3 //! author : Robin van der Vliet : https://github.com/robin0van0der0v 4 //! author : Iustì Canun 5 6 ;(function (global, factory) { 7 typeof exports === 'object' && typeof module !== 'undefined' 8 && typeof require === 'function' ? factory(require('../moment')) : 9 typeof define === 'function' && define.amd ? define(['../moment'], factory) : 10 factory(global.moment) 11 }(this, function (moment) { 'use strict'; 12 13 14 // After the year there should be a slash and the amount of years since December 26, 1979 in Roman numerals. 15 // This is currently too difficult (maybe even impossible) to add. 16 var tzl = moment.defineLocale('tzl', { 17 months : 'Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar'.split('_'), 18 monthsShort : 'Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec'.split('_'), 19 weekdays : 'Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi'.split('_'), 20 weekdaysShort : 'Súl_Lún_Mai_Már_Xhú_Vié_Sát'.split('_'), 21 weekdaysMin : 'Sú_Lú_Ma_Má_Xh_Vi_Sá'.split('_'), 22 longDateFormat : { 23 LT : 'HH.mm', 24 LTS : 'HH.mm.ss', 25 L : 'DD.MM.YYYY', 26 LL : 'D. MMMM [dallas] YYYY', 27 LLL : 'D. MMMM [dallas] YYYY HH.mm', 28 LLLL : 'dddd, [li] D. MMMM [dallas] YYYY HH.mm' 29 }, 30 meridiemParse: /d\'o|d\'a/i, 31 isPM : function (input) { 32 return 'd\'o' === input.toLowerCase(); 33 }, 34 meridiem : function (hours, minutes, isLower) { 35 if (hours > 11) { 36 return isLower ? 'd\'o' : 'D\'O'; 37 } else { 38 return isLower ? 'd\'a' : 'D\'A'; 39 } 40 }, 41 calendar : { 42 sameDay : '[oxhi à] LT', 43 nextDay : '[demà à] LT', 44 nextWeek : 'dddd [à] LT', 45 lastDay : '[ieiri à] LT', 46 lastWeek : '[sür el] dddd [lasteu à] LT', 47 sameElse : 'L' 48 }, 49 relativeTime : { 50 future : 'osprei %s', 51 past : 'ja%s', 52 s : processRelativeTime, 53 m : processRelativeTime, 54 mm : processRelativeTime, 55 h : processRelativeTime, 56 hh : processRelativeTime, 57 d : processRelativeTime, 58 dd : processRelativeTime, 59 M : processRelativeTime, 60 MM : processRelativeTime, 61 y : processRelativeTime, 62 yy : processRelativeTime 63 }, 64 ordinalParse: /\d{1,2}\./, 65 ordinal : '%d.', 66 week : { 67 dow : 1, // Monday is the first day of the week. 68 doy : 4 // The week that contains Jan 4th is the first week of the year. 69 } 70 }); 71 72 function processRelativeTime(number, withoutSuffix, key, isFuture) { 73 var format = { 74 's': ['viensas secunds', '\'iensas secunds'], 75 'm': ['\'n míut', '\'iens míut'], 76 'mm': [number + ' míuts', '' + number + ' míuts'], 77 'h': ['\'n þora', '\'iensa þora'], 78 'hh': [number + ' þoras', '' + number + ' þoras'], 79 'd': ['\'n ziua', '\'iensa ziua'], 80 'dd': [number + ' ziuas', '' + number + ' ziuas'], 81 'M': ['\'n mes', '\'iens mes'], 82 'MM': [number + ' mesen', '' + number + ' mesen'], 83 'y': ['\'n ar', '\'iens ar'], 84 'yy': [number + ' ars', '' + number + ' ars'] 85 }; 86 return isFuture ? format[key][0] : (withoutSuffix ? format[key][0] : format[key][1]); 87 } 88 89 return tzl; 90 91 }));
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Aug 24 01:01:27 2023 | Cross-referenced by PHPXref 0.7.1 |