]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Romanian: add . to short month names. Fix #1275 1461/head
authorAndrei Damian-Fekete <andrei@tehnica.org>
Sat, 16 Nov 2013 14:45:32 +0000 (15:45 +0100)
committerIskren Chernev <iskren.chernev@gmail.com>
Tue, 4 Feb 2014 07:49:07 +0000 (23:49 -0800)
lang/ro.js
test/lang/ro.js

index 6dddd01f5bbd3a798cc761f627043342014c2ba0..fc275099005ccd604cd2093f6797b0b798317ee6 100644 (file)
@@ -30,7 +30,7 @@
 
     return moment.lang('ro', {
         months : "ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),
-        monthsShort : "ian_febr_mart_apr_mai_iun_iul_aug_sept_oct_nov_dec".split("_"),
+        monthsShort : "ian._febr._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),
         weekdays : "duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),
         weekdaysShort : "Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),
         weekdaysMin : "Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),
index b59f700b67f308b8e31b8d649eb296ecb63106cd..684127555cb73cb29b2cca0e54c1cb3ca40017ee 100644 (file)
@@ -19,7 +19,7 @@ exports["lang:ro"] = {
     "parse" : function (test) {
         test.expect(96);
 
-        var tests = 'ianuarie ian_februarie febr_martie mart_aprilie apr_mai mai_iunie iun_iulie iul_august aug_septembrie sept_octombrie oct_noiembrie nov_decembrie dec'.split("_"), i;
+        var tests = 'ianuarie ian._februarie febr._martie mart._aprilie apr._mai mai_iunie iun._iulie iul._august aug._septembrie sept._octombrie oct._noiembrie nov._decembrie dec.'.split("_"), i;
         function equalTest(input, mmm, i) {
             test.equal(moment(input, mmm).month(), i, input + ' should be month ' + (i + 1));
         }
@@ -43,7 +43,7 @@ exports["lang:ro"] = {
         var a = [
                 ['dddd, MMMM Do YYYY, h:mm:ss A',  'duminică, februarie 14 2010, 3:25:50 PM'],
                 ['ddd, hA',                        'Dum, 3PM'],
-                ['M Mo MM MMMM MMM',               '2 2 02 februarie febr'],
+                ['M Mo MM MMMM MMM',               '2 2 02 februarie febr.'],
                 ['YYYY YY',                        '2010 10'],
                 ['D Do DD',                        '14 14 14'],
                 ['d do dddd ddd dd',               '0 0 duminică Dum Du'],
@@ -60,9 +60,9 @@ exports["lang:ro"] = {
                 ['LLL',                            '14 februarie 2010 15:25'],
                 ['LLLL',                           'duminică, 14 februarie 2010 15:25'],
                 ['l',                              '14.2.2010'],
-                ['ll',                             '14 febr 2010'],
-                ['lll',                            '14 febr 2010 15:25'],
-                ['llll',                           'Dum, 14 febr 2010 15:25']
+                ['ll',                             '14 febr. 2010'],
+                ['lll',                            '14 febr. 2010 15:25'],
+                ['llll',                           'Dum, 14 febr. 2010 15:25']
             ],
             b = moment(new Date(2010, 1, 14, 15, 25, 50, 125)),
             i;
@@ -115,7 +115,7 @@ exports["lang:ro"] = {
     "format month" : function (test) {
         test.expect(12);
 
-        var expected = 'ianuarie ian_februarie febr_martie mart_aprilie apr_mai mai_iunie iun_iulie iul_august aug_septembrie sept_octombrie oct_noiembrie nov_decembrie dec'.split("_"), i;
+        var expected = 'ianuarie ian._februarie febr._martie mart._aprilie apr._mai mai_iunie iun._iulie iul._august aug._septembrie sept._octombrie oct._noiembrie nov._decembrie dec.'.split("_"), i;
         for (i = 0; i < expected.length; i++) {
             test.equal(moment([2011, i, 1]).format('MMMM MMM'), expected[i], expected[i]);
         }