From: Massimiliano Caniparoli Date: Mon, 23 Feb 2015 16:40:00 +0000 (+0100) Subject: Same length for weekdaysMin parts X-Git-Tag: 2.11.0~38^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7fab65459fd7be9689c56c8abdb4d72b1b4bf7f1;p=thirdparty%2Fmoment.git Same length for weekdaysMin parts I just tried to use the short Polish names and I noticed that "min" Polish weekday names haven't the same length (six of them are two-chars long, while "sunday" corresponds to "N"). Polish colleagues say there should be one more "d". I'd also make all "short" names 3-chars long, agree? --- diff --git a/src/locale/pl.js b/src/locale/pl.js index e6a3a5a32..fde1bb2e6 100644 --- a/src/locale/pl.js +++ b/src/locale/pl.js @@ -43,7 +43,7 @@ export default moment.defineLocale('pl', { monthsShort : 'sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru'.split('_'), weekdays : 'niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota'.split('_'), weekdaysShort : 'nie_pon_wt_śr_czw_pt_sb'.split('_'), - weekdaysMin : 'N_Pn_Wt_Śr_Cz_Pt_So'.split('_'), + weekdaysMin : 'Nd_Pn_Wt_Śr_Cz_Pt_So'.split('_'), longDateFormat : { LT : 'HH:mm', LTS : 'HH:mm:ss', diff --git a/src/test/locale/pl.js b/src/test/locale/pl.js index 6db0a923f..adff3acfe 100644 --- a/src/test/locale/pl.js +++ b/src/test/locale/pl.js @@ -50,7 +50,7 @@ test('format', function (assert) { ['M Mo MM MMMM MMM', '2 2. 02 luty lut'], ['YYYY YY', '2010 10'], ['D Do DD', '14 14. 14'], - ['d do dddd ddd dd', '0 0. niedziela nie N'], + ['d do dddd ddd dd', '0 0. niedziela nie Nd'], ['DDD DDDo DDDD', '45 45. 045'], ['w wo ww', '6 6. 06'], ['h hh', '3 03'], @@ -121,7 +121,7 @@ test('format month', function (assert) { }); test('format week', function (assert) { - var expected = 'niedziela nie N_poniedziałek pon Pn_wtorek wt Wt_środa śr Śr_czwartek czw Cz_piątek pt Pt_sobota sb So'.split('_'), i; + var expected = 'niedziela nie Nd_poniedziałek pon Pn_wtorek wt Wt_środa śr Śr_czwartek czw Cz_piątek pt Pt_sobota sb So'.split('_'), i; for (i = 0; i < expected.length; i++) { assert.equal(moment([2011, 0, 2 + i]).format('dddd ddd dd'), expected[i], expected[i]); }