• Resolved otherplanetstudio

    (@otherplanetstudio)


    Hello,
    First of all, thank you in advance for your help.

    I’m having an issue with the flag for default language of the website (English). When you’re on the main version of the website, the flag for Hebrew translation shows just fine in the menu. But when you navigate to the translated hebrew version, I can see only “EN” without a flag.

    1. The flags are custom, and there’s en_US.png flag in the wp-content/polylang/ folder (as well as us.png, en.png and us_en.png just in case). Anyway, even when I used standard flags, US flag wasn’t visible.
    2. I checked “show flag” in language switcher in both menus.
    3. Website language is set to US English
    4. .mo files for en_US are present in wp-content/languages/
    5. In backend i can’t see the US flag either, not in Languages and not in the grey dropdown menu on the top.

    Hope you can help me with this!

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

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

    (@chouby)

    Hi,

    Try to edit your English language and select the right flag in the flags list. Then resave the language.

    Thread Starter otherplanetstudio

    (@otherplanetstudio)

    Hello.
    Tried this, but it didn’t help.
    When I edit the language the flag is shown right, but when I hit save, it disappears (in the language list). And it also doesn’t show locale in the language list for English language.
    I also tried to change the language to English_GB and change the flag to UK flag. Didn’t work either.
    I also tried to make the second language default, it didn’t solve the problem.
    I finally tried to uninstall the plugin and reinstall it. The flag is still not showing.
    Maybe you know what to do?

    Thread Starter otherplanetstudio

    (@otherplanetstudio)

    OK, I found the solution that worked for me.

    1. I added another English US language, with different language code (the exact code doesn’t matter, I changed it later to the correct one). The new language worked fine, the flag was there, as it should be.
    2. I made the new language default.
    3. Than I deleted the problematic English language.
    4. Assigned all the pages to the new default English.

    The only downside of this solution is that now i have to manually connect the translations to the right pages, going one by one to edit and then type in the title of the translated version in the field of translation. Which means, this isn’t a good solution for a website with many translated pages.

    Anyway, the problem for me particularly is solved.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Default language flag not showing in frontend and backend’ is closed to new replies.