WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. otahal
    Member
    Posted 4 years ago #

    Hi,

    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!
    Jiri

    http://wordpress.org/extend/plugins/the-events-calendar/

  2. Noah_Eventbrite
    Member
    Posted 4 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
    Member
    Posted 4 years ago #

    Hi,

    I opened another thread about this.

    http://wordpress.org/support/topic/362967?replies=1

    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.

    Justin

Topic Closed

This topic has been closed to new replies.

About this Topic