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
[SOLVED] Month in Dutch with Smarty
-
- Forum Members
- Posts: 110
- Joined: Thu Aug 14, 2008 10:33 am
[SOLVED] Month in Dutch with Smarty
Last edited by purplerain12 on Mon Apr 20, 2009 10:22 am, edited 1 time in total.
Re: Month in Dutch with Smarty
Because locale must be in dutchpurplerain12 wrote: month_format="%B"
But this don't work.
What do i need to do to display the month in dutch?
Select Dutch in Global Settings > Default language for frontend
Alby
-
- Forum Members
- Posts: 110
- Joined: Thu Aug 14, 2008 10:33 am
Re: Month in Dutch with Smarty
Dutch is selected in the Glbal settings. This has no effect.
Re: Month in Dutch with Smarty
Then your system don't know nl_NL locale.purplerain12 wrote: Dutch is selected in the Glbal settings. This has no effect.
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
-
- Forum Members
- Posts: 110
- Joined: Thu Aug 14, 2008 10:33 am
Re: Month in Dutch with Smarty
This did the the trick.$config['locale'] = 'nld';
Thanks.