PHP Classes

File: upload/themes/bb_simple/assets/moment/locale/ar.js

Recommend this page to a friend!
  Classes of James Brows   PHP Bulletin Board   upload/themes/bb_simple/assets/moment/locale/ar.js   Download  
File: upload/themes/bb_simple/assets/moment/locale/ar.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: 3 years ago
Size: 4,688 bytes
 

Contents

Class file image Download
//! moment.js locale configuration //! locale : Arabic [ar] //! author : Abdel Said: https://github.com/abdelsaid //! author : Ahmed Elkhatib //! author : forabi https://github.com/forabi ;(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 symbolMap = { '1': '?', '2': '?', '3': '?', '4': '?', '5': '?', '6': '?', '7': '?', '8': '?', '9': '?', '0': '?' }; var numberMap = { '?': '1', '?': '2', '?': '3', '?': '4', '?': '5', '?': '6', '?': '7', '?': '8', '?': '9', '?': '0' }; var pluralForm = function (n) { return n === 0 ? 0 : n === 1 ? 1 : n === 2 ? 2 : n % 100 >= 3 && n % 100 <= 10 ? 3 : n % 100 >= 11 ? 4 : 5; }; var plurals = { s : ['??? ?? ?????', '????? ?????', ['???????', '???????'], '%d ????', '%d ?????', '%d ?????'], m : ['??? ?? ?????', '????? ?????', ['???????', '???????'], '%d ?????', '%d ?????', '%d ?????'], h : ['??? ?? ????', '???? ?????', ['??????', '??????'], '%d ?????', '%d ????', '%d ????'], d : ['??? ?? ???', '??? ????', ['?????', '?????'], '%d ????', '%d ?????', '%d ???'], M : ['??? ?? ???', '??? ????', ['?????', '?????'], '%d ????', '%d ????', '%d ???'], y : ['??? ?? ???', '??? ????', ['?????', '?????'], '%d ?????', '%d ?????', '%d ???'] }; var pluralize = function (u) { return function (number, withoutSuffix, string, isFuture) { var f = pluralForm(number), str = plurals[u][pluralForm(number)]; if (f === 2) { str = str[withoutSuffix ? 0 : 1]; } return str.replace(/%d/i, number); }; }; var months = [ '????? ?????? ?????', '???? ??????', '???? ????', '????? ?????', '???? ????', '?????? ?????', '???? ?????', '?? ?????', '????? ??????', '????? ????? ??????', '????? ?????? ??????', '????? ????? ??????' ]; var ar = moment.defineLocale('ar', { months : months, monthsShort : months, weekdays : '?????_???????_????????_????????_??????_??????_?????'.split('_'), weekdaysShort : '???_?????_??????_??????_????_????_???'.split('_'), weekdaysMin : '?_?_?_?_?_?_?'.split('_'), weekdaysParseExact : true, longDateFormat : { LT : 'HH:mm', LTS : 'HH:mm:ss', L : 'D/\u200FM/\u200FYYYY', LL : 'D MMMM YYYY', LLL : 'D MMMM YYYY HH:mm', LLLL : 'dddd D MMMM YYYY HH:mm' }, meridiemParse: /?|?/, isPM : function (input) { return '?' === input; }, meridiem : function (hour, minute, isLower) { if (hour < 12) { return '?'; } else { return '?'; } }, calendar : { sameDay: '[????? ??? ??????] LT', nextDay: '[???? ??? ??????] LT', nextWeek: 'dddd [??? ??????] LT', lastDay: '[??? ??? ??????] LT', lastWeek: 'dddd [??? ??????] LT', sameElse: 'L' }, relativeTime : { future : '??? %s', past : '??? %s', s : pluralize('s'), m : pluralize('m'), mm : pluralize('m'), h : pluralize('h'), hh : pluralize('h'), d : pluralize('d'), dd : pluralize('d'), M : pluralize('M'), MM : pluralize('M'), y : pluralize('y'), yy : pluralize('y') }, preparse: function (string) { return string.replace(/\u200f/g, '').replace(/[??????????]/g, function (match) { return numberMap[match]; }).replace(/?/g, ','); }, postformat: function (string) { return string.replace(/\d/g, function (match) { return symbolMap[match]; }).replace(/,/g, '?'); }, week : { dow : 6, // Saturday is the first day of the week. doy : 12 // The week that contains Jan 1st is the first week of the year. } }); return ar; })));