Вход Регистрация
Файл: upload/catalog/view/javascript/jquery/datetimepicker/locale/bn.js
Строк: 80
<?php
//! moment.js locale configuration
//! locale : Bengali (bn)
//! author : Kaushik Gandhi : https://github.com/kaushikgandhi

(function (global, factory) {
   
typeof exports === 'object' && typeof module !== 'undefined' 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''০'
    
},
    
numberMap = {
        
'১''1',
        
'২''2',
        
'৩''3',
        
'৪''4',
        
'৫''5',
        
'৬''6',
        
'৭''7',
        
'৮''8',
        
'৯''9',
        
'০''0'
    
};

    var 
bn moment.defineLocale('bn', {
        
months 'জানুয়ারী_ফেবুয়ারী_মার্চ_এপ্রিল_মে_জুন_জুলাই_অগাস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর'.split('_'),
        
monthsShort 'জানু_ফেব_মার্চ_এপর_মে_জুন_জুল_অগ_সেপ্ট_অক্টো_নভ_ডিসেম্'.split('_'),
        
weekdays 'রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পত্তিবার_শুক্রুবার_শনিবার'.split('_'),
        
weekdaysShort 'রবি_সোম_মঙ্গল_বুধ_বৃহস্পত্তি_শুক্রু_শনি'.split('_'),
        
weekdaysMin 'রব_সম_মঙ্গ_বু_ব্রিহ_শু_শনি'.split('_'),
        
longDateFormat : {
            
LT 'A h:mm সময়',
            
LTS 'A h:mm:ss সময়',
            
'DD/MM/YYYY',
            
LL 'D MMMM YYYY',
            
LLL 'D MMMM YYYY, A h:mm সময়',
            
LLLL 'dddd, D MMMM YYYY, A h:mm সময়'
        
},
        
calendar : {
            
sameDay '[আজ] LT',
            
nextDay '[আগামীকাল] LT',
            
nextWeek 'dddd, LT',
            
lastDay '[গতকাল] LT',
            
lastWeek '[গত] dddd, LT',
            
sameElse 'L'
        
},
        
relativeTime : {
            
future '%s পরে',
            
past '%s আগে',
            
'কএক সেকেন্ড',
            
'এক মিনিট',
            
mm '%d মিনিট',
            
'এক ঘন্টা',
            
hh '%d ঘন্টা',
            
'এক দিন',
            
dd '%d দিন',
            
'এক মাস',
            
MM '%d মাস',
            
'এক বছর',
            
yy '%d বছর'
        
},
        
preparse: function (string) {
            return 
string.replace(/[১২৩৪৫৬৭৮৯০]/g, function (match) {
                return 
numberMap[match];
            });
        },
        
postformat: function (string) {
            return 
string.replace(/d/g, function (match) {
                return 
symbolMap[match];
            });
        },
        
meridiemParse: /রাত|সকাল|দুপুর|বিকেল|রাত/,
        
isPM: function (input) {
            return /^(
দুপুর|বিকেল|রাত)$/.test(input);
        },
        
//Bengali is a vast language its spoken
        //in different forms in various parts of the world.
        //I have just generalized with most common one used
        
meridiem : function (hourminuteisLower) {
            if (
hour 4) {
                return 
'রাত';
            } else if (
hour 10) {
                return 
'সকাল';
            } else if (
hour 17) {
                return 
'দুপুর';
            } else if (
hour 20) {
                return 
'বিকেল';
            } else {
                return 
'রাত';
            }
        },
        
week : {
            
dow 0// Sunday is the first day of the week.
            
doy 6  // The week that contains Jan 1st is the first week of the year.
        
}
    });

    return 
bn;

}));
?>
Онлайн: 3
Реклама