From b8413832ee5cbe019bd1e05a6d35cc3c87f31444 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Fri, 1 Dec 2023 15:09:27 +0100 Subject: [PATCH] Francisation du datepicker --- app/static/js/scodoc.js | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/app/static/js/scodoc.js b/app/static/js/scodoc.js index b7de54087..d191cc4ad 100644 --- a/app/static/js/scodoc.js +++ b/app/static/js/scodoc.js @@ -20,6 +20,46 @@ $(function () { buttonImageOnly: true, dateFormat: "dd/mm/yy", duration: "fast", + firstDay: 1, // Start with Monday + dayNames: [ + "Dimanche", + "Lundi", + "Mardi", + "Mercredi", + "Jeudi", + "Vendredi", + "Samedi", + ], + dayNamesMin: ["Di", "Lu", "Ma", "Me", "Je", "Ve", "Sa"], + dayNamesShort: ["Dim", "Lun", "Mar", "Mer", "Jeu", "Ven", "Sam"], + monthNames: [ + "Janvier", + "Février", + "Mars", + "Avril", + "May", + "Juin", + "Juilet", + "Août", + "Septembre", + "Octobre", + "Novembre", + "Décembre", + ], + monthNamesShort: [ + "Jan", + "Fév", + "Mar", + "Avr", + "Mai", + "Juin", + "Juil", + "Aoû", + "Sep", + "Oct", + "Nov", + "Déc", + ], }); $(".datepicker").datepicker( "option",