[Plugin: The Events Calendar] How to traslate months? (3 posts)

  1. otahal
    Posted 6 years ago #


    I translated the po file into czech language. However, I still need to translate names of months and few strings in the widget ("view all events", "more info"). How should I do this? This is the same problem Kaj was talking about:

    "I do have some small translation issues left, for example i cant find where to change the name of the month in the calendar grid. You can see it here: http://flen.vansterpartiet.se/category/events/month/"

    Thanks a lot for this great plugin!


  2. Noah_Eventbrite
    Posted 6 years ago #

    Hey Jiri,

    I am not a coder, but I think this may help. I think you can replace the names of the months by editing the-events-calendar.php file. It worked for me to just change the names of the months in the code below:

    * Helper method to return an array of month names
    public function monthNames( ) {
    $months = array( 1 => 'Jan', 2 => 'February', 3 => 'March', 4 => 'April', 5 => 'May', 6 => 'June', 7 => 'July', 8 => 'August', 9 => 'September', 10 => 'October', 11 => 'November', 12 => 'December' );

    return $months;

    * Helper method to return an array of 1-31 for days

    - Noah

  3. justinendler
    Posted 5 years ago #


    I opened another thread about this.


    Months do not translate because we forgot to include them in the translation file, along with some other headers. After translators get hold of the new .pot file, translation will get better. Thanks Jiri for working on Czech!

    Also, as a temporary fix, Noah's idea works.


Topic Closed

This topic has been closed to new replies.

About this Topic