Help Desk

Cannot translate the "before event html content"

  • Posts: 11 Topics: 5
    | Permalink

    Hello. I’m struggling to completely translate my Event-Views. I’m using the “before html content” from the events calendar settings, where I posted some stuff to be shown before my event list. So far, I was able to translate almost everything using the WPML-Plugin. But I cant find a way to translate said “before html content”. Do I miss something? Is there a better approach to create translatable content that is shown before the events list on the default events page?

    *I also tried using a standard Page, post the content in the beginning and below that the [tribe_events]-shortcode. This makes the page translatable as it is a normal page, but this somehow messes with my styles.

    Posts: 6123 Topics: 2
    | Permalink

    Hallo Frank, grüss dich,

    Thanks for reaching out with your question.

    Unfortunately at the moment it is not possible to translate those 2 fields. I will create an internal ticket for that so our developers can look into it what can be done.

    Meanwhile I can suggest the following workaround.

    1. Put all language content in the box, and have the different languages surrounded by a <span class=”en”> or whatever the language is. Like this:

    https://cloudup.com/cUyqb2W0ZYn

    2. Display only the language appropriate span with css, something like this:

    .tribe-events-before-html span { display: none; } /* Hide all spans! */
    
    html:lang(en-us) .tribe-events-before-html span.en { display: inline; } /* Show English */
    
    html:lang(de-DE) .tribe-events-before-html span.de { display: inline; } /* Show German */
    

    The same can be done for the text below.

    I hope this helps. Let me know.

    Cheers,
    Andras

    Posts: 7
    | Permalink

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

    | Permalink

The topic ‘Cannot translate the "before event html content"’ is closed to new replies.