• Resolved loribethnc

    (@loribethnc)


    The code I was given last week to automatically translate my page from English to Portuguese has now stopped working. The page is back to automatically opening in English and you have to choose Portuguese every time.

    Here is the code I was given and placed in my site’s theme.

    <script>

    if (!localStorage.getItem("ChangeLanguageFirstTime")) { document.cookie = 'googtrans=/en/pt'; localStorage.setItem("ChangeLanguageFirstTime", true);}

    </script>

    I need our English site to automatically open in Portuguese every time without having to change anything on the GTranslate plugin on the screen.

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

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

    (@edo888)

    Hi,

    I have checked your website and I see it in Portuguese.

    Thanks! ??

    Thread Starter loribethnc

    (@loribethnc)

    Did you have to choose Portuguese or did it open to already be in Portuguese? I’m seeing it still open in English.

    Plugin Author edo888

    (@edo888)

    No. Keep in mind that the code works just once and it will not work if you choose other language.

    Make tests in incognito window.

    Thanks! ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Code stopped working’ is closed to new replies.