[SOLVED] Month in Dutch with Smarty

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
purplerain12
Forum Members
Forum Members
Posts: 110
Joined: Thu Aug 14, 2008 10:33 am

[SOLVED] Month in Dutch with Smarty

Post 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
Last edited by purplerain12 on Mon Apr 20, 2009 10:22 am, edited 1 time in total.
alby

Re: Month in Dutch with Smarty

Post 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
purplerain12
Forum Members
Forum Members
Posts: 110
Joined: Thu Aug 14, 2008 10:33 am

Re: Month in Dutch with Smarty

Post by purplerain12 »

Dutch is selected in the Glbal settings. This has no effect.
alby

Re: Month in Dutch with Smarty

Post 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
purplerain12
Forum Members
Forum Members
Posts: 110
Joined: Thu Aug 14, 2008 10:33 am

Re: Month in Dutch with Smarty

Post by purplerain12 »

$config['locale'] = 'nld';
This did the the trick.

Thanks.
Post Reply

Return to “Developers Discussion”