WBCE CMS Forum

WBCE CMS – Way Better Content Editing.

Du bist nicht angemeldet.

#1 08.10.2018 08:52:10

foxlake
Mitglied

Procalendar droplets

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

#2 08.10.2018 12:29:39

florian
Administrator

Re: Procalendar droplets

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

#3 08.10.2018 18:44:39

foxlake
Mitglied

Re: Procalendar droplets

Super, it works perfect !
Thank you very much !  thumb_up

Offline

Liked by:

florian

Fußzeile des Forums

up