Datepicker: Added Candian French locale. Fixes #8917 - Datepicker: Add Canadian French locale.

This commit is contained in:
Matthieu Penant 2012-12-17 08:29:17 -05:00 committed by Scott González
parent 8ec7a1b69f
commit 9f841dffcc
2 changed files with 25 additions and 0 deletions

View File

@ -32,6 +32,7 @@
<script src="../../ui/i18n/jquery.ui.datepicker-fi.js"></script>
<script src="../../ui/i18n/jquery.ui.datepicker-fo.js"></script>
<script src="../../ui/i18n/jquery.ui.datepicker-fr.js"></script>
<script src="../../ui/i18n/jquery.ui.datepicker-fr-CA.js"></script>
<script src="../../ui/i18n/jquery.ui.datepicker-fr-CH.js"></script>
<script src="../../ui/i18n/jquery.ui.datepicker-gl.js"></script>
<script src="../../ui/i18n/jquery.ui.datepicker-he.js"></script>
@ -106,6 +107,7 @@
<option value="be">Belarusian</option>
<option value="bs">Bosnian (Bosanski)</option>
<option value="bg">Bulgarian (&#1073;&#1098;&#1083;&#1075;&#1072;&#1088;&#1089;&#1082;&#1080; &#1077;&#1079;&#1080;&#1082;)</option>
<option value="fr-CA">Canadian French</option>
<option value="ca">Catalan (Catal&agrave;)</option>
<option value="zh-HK">Chinese Hong Kong (&#32321;&#39636;&#20013;&#25991;)</option>
<option value="zh-CN">Chinese Simplified (&#31616;&#20307;&#20013;&#25991;)</option>

23
ui/i18n/jquery.ui.datepicker-fr-CA.js vendored Normal file
View File

@ -0,0 +1,23 @@
/* Canadian-French initialisation for the jQuery UI date picker plugin. */
jQuery(function ($) {
$.datepicker.regional['fr-CA'] = {
closeText: 'Fermer',
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.'],
dayNamesMin: ['D', 'L', 'M', 'M', 'J', 'V', 'S'],
weekHeader: 'Sem.',
dateFormat: 'yy-mm-dd',
firstDay: 0,
isRTL: false,
showMonthAfterYear: false,
yearSuffix: ''
};
$.datepicker.setDefaults($.datepicker.regional['fr-CA']);
});