• Resolved xplorer75

    (@xplorer75)


    Hi, I have installed your plugin on a multilingual website and the cookie banner shows the same language (in my case Czech) in all other languages (English, German). Only “Cookie policy” links in the bottom of the cookie banner are translated.

    I don’t use any cache plugin and I use WPML for website translation.

    I’ve tried to delete cache, tried to add translation of some phrases through WPML String translation, but nothing helps. Any idea why is this happening?

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor jarnovos

    (@jarnovos)

    Hi @xplorer75,

    It sounds like your translation files have not been updated/downloaded yet, causing the documents to fallback to the default language.

    It appears that WPML removes the “Update Translations” button (under Dashboard > Updates), so I expect that they offer a method to update WordPress plugin localization files within the WPML interface.

    The below workaround, which I found on the WPML forums, will allow you to update your translation files outside of WPML and should resolve the issue:

    Temporarily disable the WPML Multilingual CMS plugin, then navigate to Dashboard > Updates in the left-hand menu, and click Update Translations on the bottom of the page.

    This should now update the translation files for the selected languages and cause the documents to be displayed in the expected language.

    Kind regards,
    Jarno

    • This reply was modified 2 years, 7 months ago by jarnovos.
    Thread Starter xplorer75

    (@xplorer75)

    Hi Jarno,

    Thanks for such a quick reply!

    The workaround did not help – still no Update Translations button.

    Are we talking “WP translation files” or translation files for your plugin? I can see there are translation files for you plugin in CZ and DE languages in /languages/plugins/ folder (via FTP).

    Regards,
    David

    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @xplorer75,

    Has your Cookie Policy been correctly translated, so, does the issue only concern String Translations? If so, it might not be related to the translation files.

    Which strings had you already tried translating? I configured a site with Czech as the main language and translated the Marketing category (‘category_all’ under String Translations), which appears to work fine here.

    Perhaps you could try deleting and re-registering the Complianz cstrings in WPML, by deleting the Complianz cookie banner strings under WPML > String Translations > “complianz” text domain > Delete selected strings, and then re-registering them under Complianz > Cookie Banner by clicking Save here.

    Kind regards,
    Jarno

    Thread Starter xplorer75

    (@xplorer75)

    Hi Jarno,

    Appreciate you are trying to help. I will try to recap what I am dealing with in more detail.

    I have a website in Czech as the main language (this is how it is setup in WPML). Right now “Complianz” cookie banner shows in Czech and only Czech across all other languages (EN, DE). If I go to WPML>String Translation and filter out Complianz strings, they all appear in English without Czech translations… YET, the Cookie banner is displayed completely in Czech across all three languages.

    As such, it has no effect if I try to translate some strings into Czech, because the banner is showing in Czech already. I have the opposite problem… I am not able to display English (in English version of the website), although WPLM String translation will show all strings in English (and ironically not in Czech).

    At the same time, I have not translated the string for link “Cookie Policy” in Cookie banner through String translation, however, that link shows in correct language in the cookie banner (EN and DE).

    That leads me to a conclusion that there must be a problem with the Translations files of your plugin rather than translation of the strings themselves.

    I can provide a link to a copy of the website for investigation if that helps.

    Regards,
    David

    Plugin Author Rogier Lankhorst

    (@rogierlankhorst)

    If the base language for the string translations is English, while your actual base language is Czech, I would recommend to delete these strings from string translation, then save the banner settings again.

    The strings should then be in Czech, and can be translated.

    Thread Starter xplorer75

    (@xplorer75)

    Hi Rogier,

    Thanks for you help. I finally managed to get through with your guidance. There was one extra step though. After deleting the strings, saving plugin (all sections with texts) the strings were in Czech but still marked as English, so I had to marked them all and change the language to Czech (in WPML). Afterwards it was possible to translate and translations displayed correctly on the website.

    I still don’t understand one thing. Your plugin has translation files (.mo) for all three languages (Czech, English, German), yet, I had to go through this procedure to have the texts translated (although they are translated already as part of the package – your plugin). I assume that WPML is the cause of the problem.

    Thanks for help.
    David

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘All languages showing one language’ is closed to new replies.