]> git.ipfire.org Git - thirdparty/moment.git/commitdiff
Have found several references which cites the official abbreviation statements
authorSigurd Gartmann <sigurdga@sigurdga.no>
Wed, 8 Jul 2015 21:27:10 +0000 (23:27 +0200)
committerIskren Chernev <iskren.chernev@gmail.com>
Mon, 9 Nov 2015 04:13:38 +0000 (20:13 -0800)
http://i18n.skolelinux.no/localeoppsett.html is the resource most norwegian
software localizers use.

For months, we have the full version and the short version which does not
abbreviate the shortest month names. Abbreviations ends with a ".".

For weekdays, we have the full version and the abbreviated version. All
abbreviations should be two letters and a ".". I let the minimal be the
abbreviated version without the ".", and assume this will be used where it is
obvious that it is an abbreviation.

locale/nb.js

index 7e54daae36405504428b00a559936fd26510a7e0..085bcd1b02439b66c6b4e03f93ac866e41e67d3c 100644 (file)
@@ -12,9 +12,9 @@
 
     var nb = moment.defineLocale('nb', {
         months : 'januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember'.split('_'),
-        monthsShort : 'jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des'.split('_'),
+        monthsShort : 'jan._feb._mars_april_mai_juni_juli_aug._sep._okt._nov._des.'.split('_'),
         weekdays : 'søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag'.split('_'),
-        weekdaysShort : 'søn_man_tirs_ons_tors_fre_lør'.split('_'),
+        weekdaysShort : 'sø._ma._ti._on._to._fr._lø.'.split('_'),
         weekdaysMin : 'sø_ma_ti_on_to_fr_lø'.split('_'),
         longDateFormat : {
             LT : 'HH:mm',