WBCE Home | WBCE Hilfe | WBCE Addon Repository | Impressum | Datenschutz

WBCE CMS Forum

WBCE CMS – Way Better Content Editing.

You are not logged in.

#1 08.10.2018 08:52:10

foxlake
Member

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
Projektmanagement und Support WBCE CMS

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

Offline

#3 08.10.2018 18:44:39

foxlake
Member

Re: Procalendar droplets

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

Offline

Liked by:

florian

Board footer

Powered by FluxBB

up