WBCE CMS – Way Better Content Editing.
Du bist nicht angemeldet.
How can I change the month to dutch language in the droplets of PROCAL 1_3 ?
I can translate the days in the droplet but months ?
Thank you in advance !
Greetings, Niek Foxlake
Offline
In the minical droplet add after the line
list($month, $year, $month_name, $weekday)
= explode(',',gmstrftime('%m,%Y,%B,%w',$first_of_month));
the following code (you have to replace the german month names with your translated ones, but the first empty array element has to stay in place)
$month_name_translated_array = array('','Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember');
$month_name=$month_name_translated_array[intval($month)];
In the procal droplet, add after the line
$cal_month = date( 'F', $unix_month_start );
the following code (as before, translate th e month names and leave the '', in the brackets in place )
$month_name_translated_array = array('','Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember');
Change the following line to
$month_name=$month_name_translated_array[intval(date('n'))];
I'm sure this is not the most elegant way to achieve the goal, but at least it works.
I will have a look the prev/next navigation in the procal droplet too
Code allein macht nicht glücklich. Jetzt spenden!
Offline
Super, it works perfect !
Thank you very much !
Offline
florian