• Resolved Kostas Vrouvas

    (@kosvrouvas)


    Hello,

    I have a website with 2 languages with a url example.com/events, if i hit Next Month or a list view, the URL changes to example.com/?post_type=tribe_events&eventDisplay=list

    This causes the calendar to show both languages in one calendar (although when I’m in example.com/events everything shows OK)

Viewing 5 replies - 1 through 5 (of 5 total)
  • Ali Darwich

    (@tokyobiyori)

    SUPER-O EL MOPO

    Hello Kostas,

    Thanks for your message. What are you using to display both languages? WPML or another tool?

    Thread Starter Kostas Vrouvas

    (@kosvrouvas)

    Hi, Polylang.

    It seems that the buttons fetching the next and previous pages, remove the /en/ /el/ from the URL.

    Ali Darwich

    (@tokyobiyori)

    SUPER-O EL MOPO

    Unfortunately since we don’t integrate directly with them, is a bit difficult to tell but let me try my best to check this. Can you please first give me the following information?

    1. Your current TEC version
    2. Current Polylang version
    3. When you say /el/, which language is it?

    I’ll be looking forward to your reply!

    Thread Starter Kostas Vrouvas

    (@kosvrouvas)

    Update, found this: https://wpml.org/errata/the-events-calendar-issues-with-string-translation/ Is this going to be in core? Otherwise we have to change it after every update probably.

    Hi.

    I hust migrated to WPML which seems to be more compatible.

    I have only one problem.

    While EL (Greek) is not fully translated, I see that strings that ARE translated are not showing up.

    I tried Loco translate, same.

    I tried translating them in WPML, same thing.

    All these tools have these strings already translated, but they are not showing up.

    Ali Darwich

    (@tokyobiyori)

    SUPER-O EL MOPO

    Hello Kostas,

    Thanks for confirming! If you use WPML, please note that this is a known issue the WPML team and us have been working on, but in the meantime, you can check this solution they sent:

    You have to edit the file located in

    wp-content/plugins/the-events-calendar/src/Tribe/I18n.php

    on line 189

    from

    remove_filter( 'locale', $force_locale );

    to

    remove_filter( 'locale', $force_locale );
    
    foreach ( (array) $args[1] as $domain => $file ) {
    // Reload it with the correct language.
    unload_textdomain( $domain );
    
    if ( 'default' === $domain )
    { load_default_textdomain(); }
    
    else
    { Common::instance()->load_text_domain( $domain, $file ); }
    
    }

    Please try it when you have a chance and let me know how it goes!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Shows both languages when using Query URL’ is closed to new replies.