Jump to:

10928 Posts in 2612 Topics by 1809 members

All other Modules

SilverStripe Forums » All other Modules » EVENT_CALENDAR

Discuss all other Modules here.

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

Page: 1 2
Go to End
Author Topic: 1903 Views
  • alina70
    Avatar
    Community Member
    8 Posts

    Re: EVENT_CALENDAR Link to this post

    Excuse me but I'm crazing .....
    I tried as you said it does not work ....

    I can not translate the words "start" and "end" and the short names of the months ....
    Which files are written these words? I can not understand

    Please if you can help me

  • UncleCheese
    Avatar
    4085 Posts

    Re: EVENT_CALENDAR Link to this post

    Make sure you're on the latest revision (83). There was a bug in the CalendarFilterFieldSet that was causing "start" and "end" to not get translated.

    The month names are generated using the strftime() function in PHP. What does strftime('%b'); return for you? That function should respect your PHP locale settings.

  • alina70
    Avatar
    Community Member
    8 Posts

    Re: EVENT_CALENDAR Link to this post

    I checked: the version is 83 ....
    and the strftime('%b'); returns "Oct" .....
    then is the problem.... can you tell me how to solve??
    Thank you

  • UncleCheese
    Avatar
    4085 Posts

    Re: EVENT_CALENDAR Link to this post

    You need to set your locale manually. I suspect your server is not located in Italy, perhaps. For some reason the default locale is English for you. More info on setting your locale:

    http://us2.php.net/manual/en/function.setlocale.php

  • mathiasmex
    Avatar
    Community Member
    28 Posts

    Re: EVENT_CALENDAR Link to this post

    Maybe this is of interest:

    Month names in CalendarEvent r83 were translated into german, after including i18n::set_locale("de_DE");
    setlocale(LC_TIME,"de_DE"); except for month March abbreviation. It showed famous M?R instead of MÄR. after adding .UTF-8 to setlocale(LC_TIME,"de_DE.UTF-8");, it shows up correctly. Server located in Germany....

    1903 Views
Page: 1 2
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.