Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

All other Modules

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Event Calendar change language


Go to End
Reply

10 Posts   1474 Views

Avatar
Suzanne

9 January 2013 at 4:52am Community Member, 37 Posts

Hi,

I use the even calendar module. But I can't change the months into Dutch language. Tried several things.
Does enyone know where I can change this or how? The same is with the today, this week etc.

Gr. Suzanne

I attached a screen so you can see what I mean.

Attached Files
Avatar
UncleCheese

10 January 2013 at 1:35pm 4085 Posts

The month names are generated by the strftime() function in PHP, so make sure you have set the correct locale using setlocale().

http://php.net/strftime
http://php.net/setlocale

Avatar
Suzanne

24 January 2013 at 9:46pm Community Member, 37 Posts

Hi,

I tried but it didn't work. But I'm probably doing something wrong, so in which php should I set the:

setlocale(LC_ALL, 'nl_NL');

Suzanne

Avatar
Suzanne

8 February 2013 at 8:11pm Community Member, 37 Posts

Hi,

Does enybody know where I put the

setlocale(LC_ALL, 'nl_NL');

?

Gr. Suzanne

Avatar
Jurgen Jessurun

9 February 2013 at 10:36pm Community Member, 9 Posts

Hi Suzanne,

You can add setlocale(LC_ALL, 'nl_NL'); in your mysite/_config.php file.

Avatar
Suzanne

12 February 2013 at 9:49pm Community Member, 37 Posts

Hoi,

I tried but it didn't work

See my config file.

Gr. Suzanne

Attached Files
Avatar
mahir

14 February 2013 at 2:27pm (Last edited: 14 February 2013 2:30pm), Community Member, 11 Posts

I guess there is something missing with SS3 regarding the lang folder processing of new modules.
I have installed two modules providing my own language is in the tr.yml file,
but couldn't display it in Turkish no matter what. I even changed the contents in en.yml file, still no luck to view it in my language.
As if it doesnt get the content from .yml files.

Avatar
Suzanne

27 February 2013 at 4:47am Community Member, 37 Posts

Hi everyone,

Still not working I tried several things

mysite/_config.php

i18n::set_locale('nl_NL');
$field = new DateField();
i18n::set_date_format('dd.MM.YYYY');

event_calander/_config.php
i18n::set_locale('nl_NL');
$field = new DateField();
i18n::set_date_format('dd.MM.YYYY');

I even added an nl.yml to the lang map of the event_calendar

Please help

Suzanne

Go to Top