Skip to content

Commit aaf7576

Browse files
committed
Datepicker: Replicate fr-locale changes to the demo copy. Adjust unit tests to match the new lowercase names. Fixes #9289 - Datepicker: Incorrect capitalisation for French and Spanish
1 parent 6997569 commit aaf7576

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

demos/datepicker/jquery.ui.datepicker-fr.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ jQuery(function($){
88
prevText: 'Précédent',
99
nextText: 'Suivant',
1010
currentText: 'Aujourd\'hui',
11-
monthNames: ['Janvier','Février','Mars','Avril','Mai','Juin',
12-
'Juillet','Août','Septembre','Octobre','Novembre','Décembre'],
13-
monthNamesShort: ['Janv.','Févr.','Mars','Avril','Mai','Juin',
14-
'Juil.','Août','Sept.','Oct.','Nov.','Déc.'],
15-
dayNames: ['Dimanche','Lundi','Mardi','Mercredi','Jeudi','Vendredi','Samedi'],
16-
dayNamesShort: ['Dim.','Lun.','Mar.','Mer.','Jeu.','Ven.','Sam.'],
11+
monthNames: ['janvier', 'février', 'mars', 'avril', 'mai', 'juin',
12+
'juillet', 'août', 'septembre', 'octobre', 'novembre', 'décembre'],
13+
monthNamesShort: ['janv.', 'févr.', 'mars', 'avril', 'mai', 'juin',
14+
'juil.', 'août', 'sept.', 'oct.', 'nov.', 'déc.'],
15+
dayNames: ['dimanche', 'lundi', 'mardi', 'mercredi', 'jeudi', 'vendredi', 'samedi'],
16+
dayNamesShort: ['dim.', 'lun.', 'mar.', 'mer.', 'jeu.', 'ven.', 'sam.'],
1717
dayNamesMin: ['D','L','M','M','J','V','S'],
1818
weekHeader: 'Sem.',
1919
dateFormat: 'dd/mm/yy',

tests/unit/datepicker/datepicker_options.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1057,13 +1057,13 @@ test("formatDate", function() {
10571057
settings = {dayNamesShort: fr.dayNamesShort, dayNames: fr.dayNames,
10581058
monthNamesShort: fr.monthNamesShort, monthNames: fr.monthNames};
10591059
equal($.datepicker.formatDate("D M y", new Date(2001, 4 - 1, 9), settings),
1060-
"Lun. Avril 01", "Format date D M y with settings");
1060+
"lun. avril 01", "Format date D M y with settings");
10611061
equal($.datepicker.formatDate("DD MM yy", new Date(2001, 4 - 1, 9), settings),
1062-
"Lundi Avril 2001", "Format date DD MM yy with settings");
1062+
"lundi avril 2001", "Format date DD MM yy with settings");
10631063
equal($.datepicker.formatDate("DD, MM d, yy", new Date(2001, 4 - 1, 9), settings),
1064-
"Lundi, Avril 9, 2001", "Format date DD, MM d, yy with settings");
1064+
"lundi, avril 9, 2001", "Format date DD, MM d, yy with settings");
10651065
equal($.datepicker.formatDate("'jour' d 'de' MM (''DD''), yy",
1066-
new Date(2001, 4 - 1, 9), settings), "jour 9 de Avril ('Lundi'), 2001",
1066+
new Date(2001, 4 - 1, 9), settings), "jour 9 de avril ('lundi'), 2001",
10671067
"Format date 'jour' d 'de' MM (''DD''), yy with settings");
10681068
});
10691069

0 commit comments

Comments
 (0)