Skip to content

Commit 70f5d18

Browse files
Bjørn Johansenscottgonzalez
Bjørn Johansen
authored andcommitted
Datepicker: Added Norwegian Bokmål and Norwegian Nynorsk locales. Fixes #8886 - Datepicker: Add Norwegian Bokmål (nb) and Norwegian Nynorsk (nn) locales.
Signed-off-by: Bjørn Johansen <bjorn.johansen@metronet.no>
1 parent cff4c3c commit 70f5d18

File tree

3 files changed

+48
-0
lines changed

3 files changed

+48
-0
lines changed

demos/datepicker/localization.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,10 @@
5454
<script src="../../ui/i18n/jquery.ui.datepicker-mk.js"></script>
5555
<script src="../../ui/i18n/jquery.ui.datepicker-ml.js"></script>
5656
<script src="../../ui/i18n/jquery.ui.datepicker-ms.js"></script>
57+
<script src="../../ui/i18n/jquery.ui.datepicker-nb.js"></script>
5758
<script src="../../ui/i18n/jquery.ui.datepicker-nl.js"></script>
5859
<script src="../../ui/i18n/jquery.ui.datepicker-nl-BE.js"></script>
60+
<script src="../../ui/i18n/jquery.ui.datepicker-nn.js"></script>
5961
<script src="../../ui/i18n/jquery.ui.datepicker-no.js"></script>
6062
<script src="../../ui/i18n/jquery.ui.datepicker-pl.js"></script>
6163
<script src="../../ui/i18n/jquery.ui.datepicker-pt.js"></script>
@@ -144,7 +146,9 @@
144146
<option value="mk">Macedonian</option>
145147
<option value="ml">Malayalam</option>
146148
<option value="ms">Malaysian (Bahasa Malaysia)</option>
149+
<option value="nb">Norwegian (Bokmål)</option>
147150
<option value="no">Norwegian (Norsk)</option>
151+
<option value="nn">Norwegian (Nynorsk)</option>
148152
<option value="pl">Polish (Polski)</option>
149153
<option value="pt">Portuguese (Portugu&ecirc;s)</option>
150154
<option value="pt-BR">Portuguese/Brazilian (Portugu&ecirc;s)</option>

ui/i18n/jquery.ui.datepicker-nb.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/* Norwegian Bokmål initialisation for the jQuery UI date picker plugin. */
2+
/* Written by Bjørn Johansen (post@bjornjohansen.no). */
3+
jQuery(function($){
4+
$.datepicker.regional['nb'] = {
5+
closeText: 'Lukk',
6+
prevText: '&#xAB;Forrige',
7+
nextText: 'Neste&#xBB;',
8+
currentText: 'I dag',
9+
monthNames: ['januar','februar','mars','april','mai','juni','juli','august','september','oktober','november','desember'],
10+
monthNamesShort: ['jan','feb','mar','apr','mai','jun','jul','aug','sep','okt','nov','des'],
11+
dayNamesShort: ['søn','man','tir','ons','tor','fre','lør'],
12+
dayNames: ['søndag','mandag','tirsdag','onsdag','torsdag','fredag','lørdag'],
13+
dayNamesMin: ['sø','ma','ti','on','to','fr','lø'],
14+
weekHeader: 'Uke',
15+
dateFormat: 'dd.mm.yy',
16+
firstDay: 1,
17+
isRTL: false,
18+
showMonthAfterYear: false,
19+
yearSuffix: ''
20+
};
21+
$.datepicker.setDefaults($.datepicker.regional['nb']);
22+
});

ui/i18n/jquery.ui.datepicker-nn.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/* Norwegian Nynorsk initialisation for the jQuery UI date picker plugin. */
2+
/* Written by Bjørn Johansen (post@bjornjohansen.no). */
3+
jQuery(function($){
4+
$.datepicker.regional['nn'] = {
5+
closeText: 'Lukk',
6+
prevText: '&#xAB;Førre',
7+
nextText: 'Neste&#xBB;',
8+
currentText: 'I dag',
9+
monthNames: ['januar','februar','mars','april','mai','juni','juli','august','september','oktober','november','desember'],
10+
monthNamesShort: ['jan','feb','mar','apr','mai','jun','jul','aug','sep','okt','nov','des'],
11+
dayNamesShort: ['sun','mån','tys','ons','tor','fre','lau'],
12+
dayNames: ['sundag','måndag','tysdag','onsdag','torsdag','fredag','laurdag'],
13+
dayNamesMin: ['su','må','ty','on','to','fr','la'],
14+
weekHeader: 'Veke',
15+
dateFormat: 'dd.mm.yy',
16+
firstDay: 1,
17+
isRTL: false,
18+
showMonthAfterYear: false,
19+
yearSuffix: ''
20+
};
21+
$.datepicker.setDefaults($.datepicker.regional['nn']);
22+
});

0 commit comments

Comments
 (0)