Page 1 of 1

[SOLVED] Month in Dutch with Smarty

Posted: Tue Mar 31, 2009 9:13 pm
by purplerain12
Hello,

I used this code in my smarty template:

{html_select_date prefix=$startdateprefix time=$startdate start_year="-10" end_year="+15" field_order="DMY"}

It works fine, but it displays the month in english and i want it in dutch.

I tried:

month_format="%B"

But this don't work.

What do i need to do to display the month in dutch?

Regards,

Bas

Re: Month in Dutch with Smarty

Posted: Tue Mar 31, 2009 9:16 pm
by alby
purplerain12 wrote: month_format="%B"

But this don't work.

What do i need to do to display the month in dutch?
Because locale must be in dutch
Select Dutch in Global Settings > Default language for frontend

Alby

Re: Month in Dutch with Smarty

Posted: Wed Apr 01, 2009 5:17 am
by purplerain12
Dutch is selected in the Glbal settings. This has no effect.

Re: Month in Dutch with Smarty

Posted: Wed Apr 01, 2009 7:23 am
by alby
purplerain12 wrote: Dutch is selected in the Glbal settings. This has no effect.
Then your system don't know nl_NL locale.
Look in your system (look here) or ask your provider for correct locale and put in config.php (for example only):
in windows:
$config['locale'] = 'nld';

in linux:
$config['locale'] = 'nl_NL.utf8@euro';

Alby

Re: Month in Dutch with Smarty

Posted: Tue Apr 07, 2009 7:37 am
by purplerain12
$config['locale'] = 'nld';
This did the the trick.

Thanks.