WebsiteBaker Community Forum

WebsiteBaker Support (2.8.x) => Droplets & Snippets => Topic started by: anz on March 15, 2010, 03:15:14 PM

Title: Bookings droplet language
Post by: anz on March 15, 2010, 03:15:14 PM
I'm using the bookings modul for a new website. in a sidebar I'm also using the bookings droplet to show the current month. so far everything is working fine, but where can I change the language for the current month?

[[Bookings?page=29&section=44]]

page 29 ist the year overview, the language there is okay (EN)! but the current month is DE!?

thanks for your help!
Title: Re: Bookings droplet language
Post by: WebBird on March 15, 2010, 04:07:34 PM
Hmmm... Are you sure that the LANGUAGE constant is set correctly?

Try to change the Droplet code like this to see:

Old:

Code: [Select]
$return[] = Bookings_Month_Sheet( $_year, $_month, $section, true );
$return[] = '</div>';
return implode('', $return);

New:

Code: [Select]
$return[] = Bookings_Month_Sheet( $_year, $_month, $section, true );
$return[] = "Language constant: -" . LANGUAGE . "-<br />";
$return[] = '</div>';
return implode('', $return);
Title: Re: Bookings droplet language
Post by: anz on March 15, 2010, 04:46:15 PM
I think I know what's wrong. I'm sorry, I have chosen the language on the page with the month dropplet instead of the page itself... thank you very much! the bookings modul is really great!
Title: Re: Bookings droplet language
Post by: WebBird on March 15, 2010, 07:21:09 PM
Thnx. :-D