Jump to:

10848 Posts in 2516 Topics by 1792 members

All other Modules

SilverStripe Forums » All other Modules » [SOLVED] Event Calendar translation of DateRange

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 286 Views
  • Thomashv
    Avatar
    Community Member
    32 Posts

    [SOLVED] Event Calendar translation of DateRange Link to this post

    First of all, thanks for a really nice module UC!
    I have an issue regarding translation of dates with the event calendar module. When adding setlocale(LC_ALL, 'nb_NO'); in the _config.php file the $DateRange translate the dates in norwegian, but it seems like this configuration is causing the events not to load at first click in CMS. When I click on an event back end the right frame of CMS is just blank. No errors in Firebug. If I refresh the page the event appear agian.

    I have removed all the norwegian translation files from the module to exclude potential errors in these files. But still the events wont load before I have refreshed the pages. Also when creating a new event page it does not appear after save. I have to do a refres first.

    Is there anybody else that has experienced this or does anyone have a clue about what might be going on here?

  • Thomashv
    Avatar
    Community Member
    32 Posts

    Re: [SOLVED] Event Calendar translation of DateRange Link to this post

    I found a solution for this. If I put .utf-8 on the end of the locale code it seems to work.

    nb_NO.utf8

    I am not sure why, but this does the trick. The events are loading in the cms now without having to refresh all the time. It seems likely that it has something to do with the special characters of norwegian language. Has anyone else had this experience with the event_calendar or any other modules? It would be interesting to understand more exactly how this works.

    286 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.