X-Git-Url: https://git.cyclocoop.org/%242?a=blobdiff_plain;f=resources%2Flib%2Fmoment%2Flocale%2Fsr-cyrl.js;h=e22a22fc8dc2f1b03f5475a2c9d4b2d584b4520e;hb=cd53cf22c025429e0c252ea455f7698120834dfc;hp=bf0df12588f64d6bc7788cb34e79f5289667cc65;hpb=bdfa96eb726c9997a010f5a194eec71925bfddc2;p=lhc%2Fweb%2Fwiklou.git diff --git a/resources/lib/moment/locale/sr-cyrl.js b/resources/lib/moment/locale/sr-cyrl.js index bf0df12588..e22a22fc8d 100644 --- a/resources/lib/moment/locale/sr-cyrl.js +++ b/resources/lib/moment/locale/sr-cyrl.js @@ -1,17 +1,16 @@ //! moment.js locale configuration -//! locale : Serbian Cyrillic [sr-cyrl] -//! author : Milan Janačković : 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'; +}(this, (function (moment) { 'use strict'; var translator = { words: { //Different grammatical cases + ss: ['секунда', 'секунде', 'секунди'], m: ['један минут', 'једне минуте'], mm: ['минут', 'минуте', 'минута'], h: ['један сат', 'једног сата'], @@ -33,7 +32,7 @@ } }; - var sr_cyrl = moment.defineLocale('sr-cyrl', { + var srCyrl = moment.defineLocale('sr-cyrl', { months: 'јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар'.split('_'), monthsShort: 'јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.'.split('_'), monthsParseExact: true, @@ -86,6 +85,7 @@ future : 'за %s', past : 'пре %s', s : 'неколико секунди', + ss : translator.translate, m : translator.translate, mm : translator.translate, h : translator.translate, @@ -97,14 +97,14 @@ y : 'годину', yy : translator.translate }, - ordinalParse: /\d{1,2}\./, + 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. + doy : 7 // The week that contains Jan 7th is the first week of the year. } }); - return sr_cyrl; + return srCyrl; -})); \ No newline at end of file +})));