PHP Classes

File: upload/themes/bb_simple/assets/moment/locale/sr-cyrl.js

Recommend this page to a friend!
  Classes of James Brows   PHP Bulletin Board   upload/themes/bb_simple/assets/moment/locale/sr-cyrl.js   Download  
File: upload/themes/bb_simple/assets/moment/locale/sr-cyrl.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP Bulletin Board
Manage and post messages in multi-user forums
Author: By
Last change:
Date: 2 years ago
Size: 4,258 bytes
 

Contents

Class file image Download
//! moment.js locale configuration //! locale : Serbian Cyrillic [sr-cyrl] //! author : Milan Jana?kovi?<milanjanackovic@gmail.com> : https://github.com/milan-j ;(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, (function (moment) { 'use strict'; var translator = { words: { //Different grammatical cases m: ['????? ?????', '????? ??????'], mm: ['?????', '??????', '??????'], h: ['????? ???', '?????? ????'], hh: ['???', '????', '????'], dd: ['???', '????', '????'], MM: ['?????', '??????', '??????'], yy: ['??????', '??????', '??????'] }, correctGrammaticalCase: function (number, wordKey) { return number === 1 ? wordKey[0] : (number >= 2 && number <= 4 ? wordKey[1] : wordKey[2]); }, translate: function (number, withoutSuffix, key) { var wordKey = translator.words[key]; if (key.length === 1) { return withoutSuffix ? wordKey[0] : wordKey[1]; } else { return number + ' ' + translator.correctGrammaticalCase(number, wordKey); } } }; var srCyrl = moment.defineLocale('sr-cyrl', { months: '??????_???????_????_?????_???_???_???_??????_?????????_???????_????????_????????'.split('_'), monthsShort: '???._???._???._???._???_???_???_???._???._???._???._???.'.split('_'), monthsParseExact: true, weekdays: '??????_?????????_??????_?????_????????_?????_??????'.split('_'), weekdaysShort: '???._???._???._???._???._???._???.'.split('_'), weekdaysMin: '??_??_??_??_??_??_??'.split('_'), weekdaysParseExact : true, longDateFormat: { LT: 'H:mm', LTS : 'H:mm:ss', L: 'DD.MM.YYYY', LL: 'D. MMMM YYYY', LLL: 'D. MMMM YYYY H:mm', LLLL: 'dddd, D. MMMM YYYY H:mm' }, calendar: { sameDay: '[????? ?] LT', nextDay: '[????? ?] LT', nextWeek: function () { switch (this.day()) { case 0: return '[?] [??????] [?] LT'; case 3: return '[?] [?????] [?] LT'; case 6: return '[?] [??????] [?] LT'; case 1: case 2: case 4: case 5: return '[?] dddd [?] LT'; } }, lastDay : '[???? ?] LT', lastWeek : function () { var lastWeekDays = [ '[??????] [??????] [?] LT', '[???????] [?????????] [?] LT', '[???????] [??????] [?] LT', '[??????] [?????] [?] LT', '[???????] [????????] [?] LT', '[???????] [?????] [?] LT', '[??????] [??????] [?] LT' ]; return lastWeekDays[this.day()]; }, sameElse : 'L' }, relativeTime : { future : '?? %s', past : '??? %s', s : '???????? ???????', m : translator.translate, mm : translator.translate, h : translator.translate, hh : translator.translate, d : '???', dd : translator.translate, M : '?????', MM : translator.translate, y : '??????', yy : translator.translate }, dayOfMonthOrdinalParse: /\d{1,2}\./, ordinal : '%d.', week : { dow : 1, // Monday is the first day of the week. doy : 7 // The week that contains Jan 1st is the first week of the year. } }); return srCyrl; })));