Skip to content

Commit

Permalink
Add a Dutch translation for the datepicker
Browse files Browse the repository at this point in the history
  • Loading branch information
MichelGabriel committed Jun 29, 2023
1 parent 63342e1 commit b633b0e
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@
<jsSource webappPath="/catalog/lib/bootstrap.ext/tagsinput/bootstrap-tagsinput-angular.js"/>
<jsSource webappPath="/catalog/lib/bootstrap.ext/datepicker/bootstrap-datepicker.js"/>
<jsSource webappPath="/catalog/lib/bootstrap.ext/datepicker/bootstrap-datepicker.fr.js"/>
<jsSource webappPath="/catalog/lib/bootstrap.ext/datepicker/bootstrap-datepicker.nl.js"/>
<jsSource webappPath="/catalog/lib/bootstrap-table/dist/bootstrap-table.min.js"
minimize="false"/>
<jsSource webappPath="/catalog/lib/bootstrap-table/dist/bootstrap-table-locale-all.min.js"
Expand Down Expand Up @@ -153,6 +154,7 @@
<jsSource webappPath="/catalog/lib/bootstrap.ext/tagsinput/bootstrap-tagsinput-angular.js"/>
<jsSource webappPath="/catalog/lib/bootstrap.ext/datepicker/bootstrap-datepicker.js"/>
<jsSource webappPath="/catalog/lib/bootstrap.ext/datepicker/bootstrap-datepicker.fr.js"/>
<jsSource webappPath="/catalog/lib/bootstrap.ext/datepicker/bootstrap-datepicker.nl.js"/>
<jsSource webappPath="/catalog/lib/bootstrap-table/dist/bootstrap-table.min.js"
minimize="false"/>
<jsSource webappPath="/catalog/lib/bootstrap-table/dist/bootstrap-table-locale-all.min.js"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/**
* French translation for bootstrap-datepicker
* Nico Mollet <[email protected]>
*/
;(function($){
$.fn.datepicker.dates['nl'] = {
days: ["zondag", "maandag", "dinsdag", "woensdag", "donderdag", "vrijdag", "zaterdag"],
daysShort: ["zon.", "maa.", "din.", "woe.", "don.", "vrij.", "zat."],
daysMin: ["zo", "ma", "di", "wo", "do", "vr", "za"],
months: ["januari", "februari", "maart", "april", "mei", "juni", "juli", "augustus", "september", "oktober", "november", "december"],
monthsShort: ["jan.", "feb.", "maart", "april", "mei", "junin", "juli", "aug.", "sept.", "okt.", "nov.", "dec."],
today: "Vandaag",
monthsTitle: "Maanden",
clear: "Reset",
weekStart: 1,
format: "dd/mm/yyyy"
};
}(jQuery));
2 changes: 2 additions & 0 deletions web/src/main/webapp/xslt/base-layout-cssjs-loader.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,8 @@
src="{$uiResourcesPath}lib/bootstrap.ext/datepicker/bootstrap-datepicker.js?v={$buildNumber}"></script>
<script
src="{$uiResourcesPath}lib/bootstrap.ext/datepicker/bootstrap-datepicker.fr.js?v={$buildNumber}"></script>
<script
src="{$uiResourcesPath}lib/bootstrap.ext/datepicker/bootstrap-datepicker.nl.js?v={$buildNumber}"></script>
<script src="{$uiResourcesPath}lib/bootstrap-table/dist/bootstrap-table.js?v={$buildNumber}"></script>
<script src="{$uiResourcesPath}lib/bootstrap-table-angular.js?v={$buildNumber}"></script>
<script src="{$uiResourcesPath}lib/bootstrap-table/src/extensions/export/bootstrap-table-export.js?v={$buildNumber}"></script>
Expand Down

0 comments on commit b633b0e

Please sign in to comment.