[ Index ] |
PHP Cross Reference of BuddyPress |
[Summary view] [Print] [Text view]
1 //! moment.js locale configuration 2 //! locale : Hungarian [hu] 3 //! author : Adam Brunner : https://github.com/adambrunner 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 weekEndings = 'vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton'.split(' '); 14 function translate(number, withoutSuffix, key, isFuture) { 15 var num = number, 16 suffix; 17 switch (key) { 18 case 's': 19 return (isFuture || withoutSuffix) ? 'néhány másodperc' : 'néhány másodperce'; 20 case 'm': 21 return 'egy' + (isFuture || withoutSuffix ? ' perc' : ' perce'); 22 case 'mm': 23 return num + (isFuture || withoutSuffix ? ' perc' : ' perce'); 24 case 'h': 25 return 'egy' + (isFuture || withoutSuffix ? ' óra' : ' órája'); 26 case 'hh': 27 return num + (isFuture || withoutSuffix ? ' óra' : ' órája'); 28 case 'd': 29 return 'egy' + (isFuture || withoutSuffix ? ' nap' : ' napja'); 30 case 'dd': 31 return num + (isFuture || withoutSuffix ? ' nap' : ' napja'); 32 case 'M': 33 return 'egy' + (isFuture || withoutSuffix ? ' hónap' : ' hónapja'); 34 case 'MM': 35 return num + (isFuture || withoutSuffix ? ' hónap' : ' hónapja'); 36 case 'y': 37 return 'egy' + (isFuture || withoutSuffix ? ' év' : ' éve'); 38 case 'yy': 39 return num + (isFuture || withoutSuffix ? ' év' : ' éve'); 40 } 41 return ''; 42 } 43 function week(isFuture) { 44 return (isFuture ? '' : '[múlt] ') + '[' + weekEndings[this.day()] + '] LT[-kor]'; 45 } 46 47 var hu = moment.defineLocale('hu', { 48 months : 'január_február_március_április_május_június_július_augusztus_szeptember_október_november_december'.split('_'), 49 monthsShort : 'jan_feb_márc_ápr_máj_jún_júl_aug_szept_okt_nov_dec'.split('_'), 50 weekdays : 'vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat'.split('_'), 51 weekdaysShort : 'vas_hét_kedd_sze_csüt_pén_szo'.split('_'), 52 weekdaysMin : 'v_h_k_sze_cs_p_szo'.split('_'), 53 longDateFormat : { 54 LT : 'H:mm', 55 LTS : 'H:mm:ss', 56 L : 'YYYY.MM.DD.', 57 LL : 'YYYY. MMMM D.', 58 LLL : 'YYYY. MMMM D. H:mm', 59 LLLL : 'YYYY. MMMM D., dddd H:mm' 60 }, 61 meridiemParse: /de|du/i, 62 isPM: function (input) { 63 return input.charAt(1).toLowerCase() === 'u'; 64 }, 65 meridiem : function (hours, minutes, isLower) { 66 if (hours < 12) { 67 return isLower === true ? 'de' : 'DE'; 68 } else { 69 return isLower === true ? 'du' : 'DU'; 70 } 71 }, 72 calendar : { 73 sameDay : '[ma] LT[-kor]', 74 nextDay : '[holnap] LT[-kor]', 75 nextWeek : function () { 76 return week.call(this, true); 77 }, 78 lastDay : '[tegnap] LT[-kor]', 79 lastWeek : function () { 80 return week.call(this, false); 81 }, 82 sameElse : 'L' 83 }, 84 relativeTime : { 85 future : '%s múlva', 86 past : '%s', 87 s : translate, 88 m : translate, 89 mm : translate, 90 h : translate, 91 hh : translate, 92 d : translate, 93 dd : translate, 94 M : translate, 95 MM : translate, 96 y : translate, 97 yy : translate 98 }, 99 ordinalParse: /\d{1,2}\./, 100 ordinal : '%d.', 101 week : { 102 dow : 1, // Monday is the first day of the week. 103 doy : 7 // The week that contains Jan 1st is the first week of the year. 104 } 105 }); 106 107 return hu; 108 109 }));
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 |