I've been trying to search where to edit the date format in Event Calendar (if there's like JUL. 12 - 14, 2011 in upcoming events and I'd like it to be 12. - 14.7.2011). Maybe I'm just too tierd and need some sleep, too many hours working with the computer, 'cause cant find the right file to modify. But it would be great if someone could give me a hint, where to find the place to change the code, or where to find some tutorial for this module.
We've moved the forum!
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
You need to add a $customDateTemplates array to your mysite/_config. See event_calendar/_config.php. I think there's a commented example in there you can copy and paste.
Ok, thanks a lot, now I got it :) I'm also wondering how to get the language changed. When I'm adding new lang php file and date js file with the translated months and days, but I'm seem missing something when it still shows the original names.
I have the same problem, the dropdown buttons under the calendar show the english names of month. Where can I edit this? Can I set it somehow to lang.php file?
Ok, now also some other of my translated text changed back to English.. I tested to set some other locales what I found in some other topic, like
i18n::set_locale('de_DE');
i18n::include_locale_file('event_calendar', 'de_DE');
setlocale(LC_ALL, 'de_DE');
setlocale(LC_TIME,"de_DE.UTF-8");
to my config file. And when changing them back to what I had, I have e.g. the search button in site search with the English text "Go" though I have the language file with the translated text. I suppose this is a very basic thing that I just don't get..
In witch config file you change it? In mysite/config only, or in other config file in modules?
I rewrite also .js file with months and days, but it still in english. Maybe it's in some file, witch is only in english and we must creat the same in our lang. Czech or German.
mysite/_config