Localization error in events-manager.php (minor bug, easy fix)
-
There is a bug in the localization part of events-manager-source.js
PLEASE FIX, because bug in core files, not in customizable template files!
Both inevents-manager.php
and inincludes\js\events-manager-source.js
there is a mixup of weekdays in ITALIAN: dayNames and dayNamesShort both start with Monday (lunedi) instead of Sunday (domenica). To display correctly, they should start with Sunday.Files should be fixed to the following strings:
events-manager.php, line 338:
'it'=>array('closeText'=>'Fatto','prevText'=>'Precedente','nextText'=>'Prossimo','currentText'=>'Oggi','monthNames'=>array('Gennaio','Febbraio','Marzo','Aprile','Maggio','Giugno','Luglio','Agosto','Settembre','Ottobre','Novembre','Dicembre'),'monthNamesShort'=>array('Gen','Feb','Mar','Apr','Mag','Giu','Lug','Ago','Set','Ott','Nov','Dic'),'dayNames'=>array('Domenica','Lunedì','Martedì','Mercoledì','Giovedì','Venerdì','Sabato'),'dayNamesShort'=>array('Dom','Lun','Mar','Mer','Gio','Ven','Sab'),'dayNamesMin'=>array('Do','Lu','Ma','Me','Gi','Ve','Sa'),'weekHeader'=>'Wk','dateFormat'=>'dd/mm/yy','firstDay'=>1,'isRTL'=>false,'showMonthAfterYear'=>false,'yearSuffix'=>'')
events-manager-source.js, line 414:
$.datepicker.regional['it']={closeText:'Fatto',prevText:'Precedente',nextText:'Prossimo',currentText:'Oggi',monthNames:['Gennaio','Febbraio','Marzo','Aprile','Maggio','Giugno','Luglio','Agosto','Settembre','Ottobre','Novembre','Dicembre'],monthNamesShort:['Gen','Feb','Mar','Apr','Mag','Giu','Lug','Ago','Set','Ott','Nov','Dic'],dayNames:['Domenica','Lunedì','Martedì','Mercoledì','Giovedì','Venerdì','Sabato'],dayNamesShort:['Dom','Lun','Mar','Mer','Gio','Ven','Sab'],dayNamesMin:['Do','Lu','Ma','Me','Gi','Ve','Sa'],weekHeader:'Wk',dateFormat:'dd/mm/yy',firstDay:1,isRTL:false,showMonthAfterYear:false,yearSuffix:''};
So, besides the request to please fix these errors for the next release, could you please also explain why these localizations are hard-coded into core files? Worse still, all languages are included, bloating up file size. After all, there are localizations available, even localized jquery datepicker files. It’s all there in the plugin already, so why not making things easier?
Thanks anyway for this plugin. Really useful
- The topic ‘Localization error in events-manager.php (minor bug, easy fix)’ is closed to new replies.