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   1646 Views

Avatar
Suzanne

Community Member, 37 Posts

9 January 2013 at 4:52am

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

Forum Moderator, 4094 Posts

10 January 2013 at 1:35pm

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

Community Member, 37 Posts

24 January 2013 at 9:46pm

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

Community Member, 37 Posts

8 February 2013 at 8:11pm

Hi,

Does enybody know where I put the

setlocale(LC_ALL, 'nl_NL');

?

Gr. Suzanne

Avatar
Jurgen Jessurun

Community Member, 9 Posts

9 February 2013 at 10:36pm

Hi Suzanne,

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

Avatar
Suzanne

Community Member, 37 Posts

12 February 2013 at 9:49pm

Hoi,

I tried but it didn't work

See my config file.

Gr. Suzanne

Attached Files
Avatar
mahir

Community Member, 11 Posts

14 February 2013 at 2:27pm

Edited: 14/02/2013 2:30pm

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

Community Member, 37 Posts

27 February 2013 at 4:47am

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