WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] Events missing from translated Event page (6 posts)

  1. invision-studios
    Member
    Posted 5 months ago #

    I'm working with:
    WordPerfect 3.8.1
    WPML (Version 3.0.2-a) (full CMS version) + other WPML plugins
    Events Manager (Version 5.5.2)
    Events Manager and WPML Compatibility (Version 0.3)

    I have an events page named "Trade Shows" + translated to 4 additional languages in WPML. That page includes a paragraph of text + "CONTENT" (all U/C) to include events in the output.

    I have 5 individual events, all in the "Trade Shows" category + translated into 5 languages thru WPML. Categories + Locations are all translated through WPML as well.

    What I've discovered is that if I use the WPML Translation Manager the events are not recognized by EM. If I switch languages in the EM post manager interface, the events are recognized (same for locations).

    The main issue I'm trying to resolve is how to translate text in an event detail page, like Date and Location? I've used WPML string translation, it appears translated in there, but not in the live event detail page.

    Also, is it possible to translate Custom Attributes in any way?

    https://wordpress.org/plugins/events-manager/

  2. caimin_nwl
    NetWebLogic Support
    Posted 5 months ago #

    Just to clarify, which events aren't being recognized? Is it all of them or only some?

  3. invision-studios
    Member
    Posted 5 months ago #

    Sorry, I should have changed the title before posting.

    THIS WORKS >> I resolved the problem of the missing translations by editing in WordPress post editor, using the language switcher from WPML. Event posts display when I use this option, so that problem is solved.

    THIS DOESN'T WORK >> An alternative method to translate is to use the WPML Translation Manager, then translate it through their interface. That does not work. TRANSLATED events posts weren't showing up on the EVENTS page or in the EM dashboard when I used the WPML Translation Manager.

    Would you like me to start a NEW thread for the real questions:
    1) How to translate strings (Date, Location) so they appear in the proper language on the Events page and event detail page?
    2) How to translate Custom Attributes (in my case, 'Booth Number' and 'Website') so they appear in the proper language on the event listing and event detail page? I know your plugin won't do it natively, but wondering if there is a workaround.

    Thanks again. BTW, this is the BEST service I've ever received for ANY plugin, purchased or free.

  4. angelo
    NetWebLogic Support
    Posted 5 months ago #

    1. try Events > Settings > Formatting

    2. not sure if this works but try something like

    function my_text_strings( $translated_text, $text, $domain ) {
      switch ( $translated_text ) {
       case 'Website':
         $translated_text = __( 'website site', 'events-manager' );
         break;
      }
      return $translated_text;
    }
    add_filter( 'gettext', 'my_text_strings', 100, 3 );

    *paste in your theme functions.php

  5. invision-studios
    Member
    Posted 5 months ago #

    Angelo,

    Just to give you an update -- I DIDN'T realize there are little globe icons in the dashboard (at the bottom right of each text field that may be translated, like the 'Default event list format header') to allow me to translate each section of an event listing page. That lets me have fully-translated pages now. Color me ecstatic :)

    And it all works beautifully. Thanks for putting together such an amazing plugin.

    Sherm

  6. angelo
    NetWebLogic Support
    Posted 5 months ago #

    thanks for the update.

Reply

You must log in to post.

About this Plugin

About this Topic