WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] change language of months and countries (12 posts)

  1. whoaloic
    Member
    Posted 2 years ago #

    Hi!
    I use a time format which displays the full name of months.
    Does somebody know how to change month language?
    Same thing for the list of countries, I would like to display them in another language than English.
    Do I have to change them manually?

    Any help would pe appreciated!
    Regards

    http://wordpress.org/extend/plugins/events-manager/

  2. agelonwl
    Member
    Posted 2 years ago #

    Is it only the month language that you want to change (or the whole wp installation) and do you have a sample link?

  3. whoaloic
    Member
    Posted 2 years ago #

    Hello, my wp installation is set in french but the time format in the plugin is in english!
    Here's a link !

  4. agelonwl
    Member
    Posted 2 years ago #

  5. whoaloic
    Member
    Posted 2 years ago #

    I've added new words to be translated in the .po file but it does not work yet. :(
    By the way, I have other strings that I would like to translate in the admin pages (e.g: "add an event" page) but I can't find the files which match to these pages.

  6. whoaloic
    Member
    Posted 2 years ago #

    All right, I've managed to translate strings from admin forms with PoEdit.
    I also change manually countries in em-functions.php file.
    But I can't find how to change those date strings.
    I have checked that months and days are translated yet in .po files.
    Does Anyone have an idea?
    Regards

  7. whoaloic
    Member
    Posted 2 years ago #

    Me again ;)
    The small calendar shows date in the language that I defined in the wordpress installation.
    I see that calendar-small.php use date_i18n function to internationalize the date.
    I would like to check if the #_EVENTDATES placeholder use the above function, but I can't fint where the placeholder outputs are?
    Please does sombedy can help me?

  8. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    maaybe not in current version but it will in 5.0.5

  9. whoaloic
    Member
    Posted 2 years ago #

    Thank you for the announced new version but could you tell me which file manage the placeholder outputs?
    I guess that #_EVENTDATES placeholder has a template with this date function!?

  10. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    classes/em-events.php function output()

    yes it does

  11. whoaloic
    Member
    Posted 2 years ago #

    Phew, I've finally found what to do to have date format in the language defined in the wp intallation!
    In the classes/em-event.php file, change date function to date_i18n at the #_EVENTDATES case output (around line 1143)!
    Thank you for your help Marcus.

  12. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    np, the dev version also fixes this amongst others

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic