• Resolved clim3000

    (@clim3000)


    The plugin is not working correctly, it’s stuck in the translated language. The website is originally in English and after I switch to Khmer, it will not switch back to English.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author edo888

    (@edo888)

    Hi,

    I have checked and I did not have a problem switching back to English after the page is translated to Khmer. I have checked your home page.

    If you still have an issue, please provide more step by step instructions, so I can see the issue on my end.

    Thanks! ??

    Thread Starter clim3000

    (@clim3000)

    It seems to work find on my computer but for my colleagues’ computer, it’s still getting stuck in the Khmer translation. He tried it on Chrome and Edge. Let me what type of info you need.

    Thread Starter clim3000

    (@clim3000)

    This is actually happening on their subdomains instead of the main website and it’s happening to me as well. When I try to switch back to the English version, I get the # sign in the URL: https://lniresources.caccwa.org/# This is happening in Chrome, Edge, Mozilla, and Opera.

    The subdomains are: https://lniresources.caccwa.org/ and https://deptcommerceresources.caccwa.org/

    Plugin Author edo888

    (@edo888)

    Hi,

    Calling doGTranslate(‘en|en’) function works fine in the console, so something is preventing a click event (which calls that function to work properly).

    When I block /wp-content/themes/astra/assets/js/minified/frontend.min.js script from being executed and messing with the click events it works fine.

    It is a minified file, so it is difficult to read it, but I have noticed that it is calling preventDefault and stopPropagation functions, which is designed for catching events and stop them from bubbling down to actual event function call, so doGTranslate function never gets called and executed, so you are stuck.

    I would recommend to consult with your theme developer or play with the logic in that file till you solve it. You need to prevent click capturing on flag elements.

    Thanks! ??

    Thread Starter clim3000

    (@clim3000)

    Thanks for the information!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Translator will not switch back to English’ is closed to new replies.