Skip to content

Instantly share code, notes, and snippets.

@sbruner
Created January 17, 2016 04:28
Show Gist options
  • Save sbruner/f537aeba760cdefa1838 to your computer and use it in GitHub Desktop.
Save sbruner/f537aeba760cdefa1838 to your computer and use it in GitHub Desktop.
Piklist: field: datepicker localize
<?php
piklist('field', array(
'type' => 'datepicker',
'field' => 'my_date_field',
'label' => 'Date',
'options' => array(
'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'=>'dd/mm/yy',
'firstDay'=>1,
'isRTL'=>false,
'showMonthAfterYear'=>false,
'yearSuffix'=>''
)
));
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment