Skip to content

Commit

Permalink
Datepicker: Replicate fr-locale changes to the demo copy. Adjust unit…
Browse files Browse the repository at this point in the history
… tests to match the new lowercase names. Fixes #9289 - Datepicker: Incorrect capitalisation for French and Spanish

(cherry picked from commit aaf7576)
  • Loading branch information
jzaefferer authored and scottgonzalez committed Nov 26, 2013
1 parent 0ab1e16 commit 7bbe9dc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions demos/datepicker/jquery.ui.datepicker-fr.js
Expand Up @@ -8,12 +8,12 @@ jQuery(function($){
prevText: 'Précédent',
nextText: 'Suivant',
currentText: 'Aujourd\'hui',
monthNames: ['Janvier','Février','Mars','Avril','Mai','Juin',
'Juillet','Août','Septembre','Octobre','Novembre','Décembre'],
monthNamesShort: ['Janv.','Févr.','Mars','Avril','Mai','Juin',
'Juil.','Août','Sept.','Oct.','Nov.','Déc.'],
dayNames: ['Dimanche','Lundi','Mardi','Mercredi','Jeudi','Vendredi','Samedi'],
dayNamesShort: ['Dim.','Lun.','Mar.','Mer.','Jeu.','Ven.','Sam.'],
monthNames: ['janvier', 'février', 'mars', 'avril', 'mai', 'juin',
'juillet', 'août', 'septembre', 'octobre', 'novembre', 'décembre'],
monthNamesShort: ['janv.', 'févr.', 'mars', 'avril', 'mai', 'juin',
'juil.', 'août', 'sept.', 'oct.', 'nov.', 'déc.'],
dayNames: ['dimanche', 'lundi', 'mardi', 'mercredi', 'jeudi', 'vendredi', 'samedi'],
dayNamesShort: ['dim.', 'lun.', 'mar.', 'mer.', 'jeu.', 'ven.', 'sam.'],
dayNamesMin: ['D','L','M','M','J','V','S'],
weekHeader: 'Sem.',
dateFormat: 'dd/mm/yy',
Expand Down
8 changes: 4 additions & 4 deletions tests/unit/datepicker/datepicker_options.js
Expand Up @@ -1057,13 +1057,13 @@ test("formatDate", function() {
settings = {dayNamesShort: fr.dayNamesShort, dayNames: fr.dayNames,
monthNamesShort: fr.monthNamesShort, monthNames: fr.monthNames};
equal($.datepicker.formatDate("D M y", new Date(2001, 4 - 1, 9), settings),
"Lun. Avril 01", "Format date D M y with settings");
"lun. avril 01", "Format date D M y with settings");
equal($.datepicker.formatDate("DD MM yy", new Date(2001, 4 - 1, 9), settings),
"Lundi Avril 2001", "Format date DD MM yy with settings");
"lundi avril 2001", "Format date DD MM yy with settings");
equal($.datepicker.formatDate("DD, MM d, yy", new Date(2001, 4 - 1, 9), settings),
"Lundi, Avril 9, 2001", "Format date DD, MM d, yy with settings");
"lundi, avril 9, 2001", "Format date DD, MM d, yy with settings");
equal($.datepicker.formatDate("'jour' d 'de' MM (''DD''), yy",
new Date(2001, 4 - 1, 9), settings), "jour 9 de Avril ('Lundi'), 2001",
new Date(2001, 4 - 1, 9), settings), "jour 9 de avril ('lundi'), 2001",
"Format date 'jour' d 'de' MM (''DD''), yy with settings");
});

Expand Down

0 comments on commit 7bbe9dc

Please sign in to comment.