9 Ocak 2015 Cuma

jquery turkish datepicker -- tr culture--

The below jquery script is used for Turkish datetimepicker.To entegrate this script into your UI do the following instructions:
  1. Create new script file with "query.ui.datepicker-tr.js" name
  2. link to this script in your UI.

Happy coding :)
 jQuery(function ($) {  
   $.datepicker.regional['tr'] = {  
     closeText: 'Kapat',  
     prevText: 'Geri',  
     nextText: 'İleri',  
     currentText: 'Bugün',  
     monthNames: ['Ocak', 'Şubat', 'Mart', 'Nisan', 'Mayıs', 'Haziran',  
     'Temmuz', 'Ağustos', 'Eylül', 'Ekim', 'Kasım', 'Aralık'],  
     monthNamesShort: ['Oca', 'Şub', 'Mar', 'Nis', 'May', 'Haz',  
     'Tem', 'Ağu', 'Eyl', 'Eki', 'Kas', 'Ara'],  
     dayNames: ['Pazar', 'Pazartesi', 'Salı', 'Çarşamba', 'Perşembe', 'Cuma', 'Cumartesi'],  
     dayNamesShort: ['Pz', 'Pt', 'Sa', 'Ça', 'Pe', 'Cu', 'Ct'],  
     dayNamesMin: ['Pz', 'Pt', 'Sa', 'Ça', 'Pe', 'Cu', 'Ct'],  
     weekHeader: 'Hf',  
     dateFormat: 'dd.mm.yy',  
     firstDay: 1,  
     isRTL: false,  
     showMonthAfterYear: false,  
     yearSuffix: ''  
   };  
   $.datepicker.setDefaults($.datepicker.regional['tr']);  
 });