• Resolved MrMattEastwood

    (@mrmatteastwood)


    Steps to Reproduce:
    1. Install and configure Complianz on e.g. a German (informal) WP project
    2. Set up a cookie policy page, e.g. using the shortcode [cmplz-document type=”cookie-statement” region=”eu”]
    3. Observe that the cookie policy is in German
    4. Install and activate Loco Translate
    5. Go to Loco Translate > Plugins > Compliance GDPR/CCPA
    6. Select “Move” for German language (Deutsch)
    7. Move to “Custom” folder
    8. Reload cookie policy like in step 3

    Current Results:
    When moving a .po/.mo set from the System folder to a Custom folder using Loco Translate, the translations no longer load.

    Expected Results:
    Complianz should be able to load the translations from Loco Translations’ custom folder, where they are safe from being overwritten by WP/plugin updates.

    Notes:
    – Intention behind this exercise is to make changes to the existing German (informal) translations.
    – The Loco Translate documentation has a couple of suggestions, perhaps one of the solutions described here applies? https://localise.biz/wordpress/plugin/faqs/custom-folder

    Any suggestions would be greatly appreciated ?? Thanks!

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

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

    (@jarnovos)

    Hi @mrmatteastwood,

    Thank you for your detailed description!

    I’ve reproduced the behavior on a sandbox with Complianz & Loco Translate. I found that if you use the MU Plugin supplied by Loco Translate, this will work fine. You can upload the MU Plugin as a PHP file to the folder /wp-content/mu-plugins/.

    Hope it helps!
    Kind regards,
    Jarno

    Thread Starter MrMattEastwood

    (@mrmatteastwood)

    Hey Jarno, thanks, this is really good to know. I grabbed that .php file and put it into the mu-plugins folder on our live site: https://paste.pics/EHTLI

    After moving the translation files to the Custom location (https://paste.pics/EHTN7), the cookie policy nonetheless reverted to English. This is the status quo as I’m typing: https://praxis-dynamis.de/cookie-erklaerung

    I tried deactivating and re-activating both Complianz and Loco Translate (in that order), to no avail.

    Do you have an idea what might be going wrong?

    Plugin Contributor jarnovos

    (@jarnovos)

    Hi @mrmatteastwood,

    It looks to be fine when I check the Cookie Policy on the website now. I assume that it might’ve been caused as a result of the “Nicht synchron mit .pot template” warning.

    I’ll mark this as resolved for now, just let us know if we can provide further assistance.

    Kind regards,
    Jarno

    Thread Starter MrMattEastwood

    (@mrmatteastwood)

    Hey Jarno, thanks for checking again. The message you cited above says “not in sync with .pot template”; is this a message you saw in the Loco Translate UI? And there was a button to sync the files?

    I will keep this in mind for the future.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Loco Translate: Translations don’t load from Custom directory’ is closed to new replies.