• Resolved wci

    (@wci)


    Dear GDPR Team,

    I need to know if the GDPR plugin is compatible with WPML multiligual plugin as I cannot find this in their checkup page > https://wpml.org/documentation/plugins-compatibility/

    As well I tried to find strings in WPML translation and cannot find the option to translate the text setup as 1. Privacy Banner Text 2. Privacy Exerpt

    While I try to translate in DE and save, then the text in EN is in german displayed instead having text in corresponding EN and DE pages.

    Screenshot > https://www.screencast.com/t/QB4aaCWh2x

    Currently I cannot use the DE translated version as I am unable to display in DE after saving because then the EN is displayed in german also.

    Looking forward to your suggestions.

    Best, Alex

Viewing 8 replies - 16 through 23 (of 23 total)
  • Thread Starter wci

    (@wci)

    Hi Fernando,

    here a little reminder of fields and link URL buttons which are still not working for WPML translation to be established.

    Screenshot > https://www.screencast.com/t/cyx4qIHeee0w

    Best, Alex

    Plugin Author Fernando Claussen

    (@fclaussen)

    WPML compatibility is coming in tomorrow’s update. (June 5th)

    Thread Starter wci

    (@wci)

    Hi Fernando,

    those both text areas are still not able to translate with WPML
    Screenshot > https://www.screencast.com/t/Y5hgBDnVTD

    Best, Alex

    Plugin Author Fernando Claussen

    (@fclaussen)

    That’s odd.
    I’m checking polylang (they use the same config file as wpml) and I can see both fields there.

    View post on imgur.com

    I use this code to translate my settings fields, maybe it can help:

    /** Pass actual language to Javascript **/
    add_action(‘shutdown’, function() {

    ?>
    <script>
    var getLangCode = ‘<?php echo apply_filters( ‘wpml_current_language’, NULL ); ?>’;
    if (getLangCode == ‘en’) {
    jQuery(‘.gdpr.gdpr-privacy-bar .gdpr-wrapper .gdpr-content p, .gdpr.gdpr-reconsent-bar .gdpr-wrapper .gdpr-content p’).text(“This website uses: technical cookies… bla bla”);
    }

    if (getLangCode == ‘fr’) {
    jQuery(‘.gdpr.gdpr-privacy-bar .gdpr-wrapper .gdpr-content p, .gdpr.gdpr-reconsent-bar .gdpr-wrapper .gdpr-content p’).text(“Ce site utilise: des cookies techniques … bla bla”);
    }
    </script>
    <?php
    }, 100);
    ?>

    Thread Starter wci

    (@wci)

    Hi alartsoftwork,

    where and how exactly did you used this code snippet?

    Best, Alex

    /** Pass actual language to Javascript **/
    add_action(‘shutdown’, function() {
    
    ?>
    <script>
    var getLangCode = ‘<?php echo apply_filters( ‘wpml_current_language’, NULL ); ?>’;
    if (getLangCode == ‘en’) {
    jQuery(‘.gdpr.gdpr-privacy-bar .gdpr-wrapper .gdpr-content p, .gdpr.gdpr-reconsent-bar .gdpr-wrapper .gdpr-content p’).text(“This website uses: technical cookies… bla bla”);
    }
    
    if (getLangCode == ‘fr’) {
    jQuery(‘.gdpr.gdpr-privacy-bar .gdpr-wrapper .gdpr-content p, .gdpr.gdpr-reconsent-bar .gdpr-wrapper .gdpr-content p’).text(“Ce site utilise: des cookies techniques … bla bla”);
    }
    </script>
    <?php
    }, 100);
    ?>

    I put it in my functions.php in my child theme ??

    Hi,

    Any news regarding the compatibility with wpml? As the way it is now it is not working! and the above code is giving a 500 code in our theme.

    Disregard this message! It is solved.

    • This reply was modified 6 years, 3 months ago by sammies.
Viewing 8 replies - 16 through 23 (of 23 total)
  • The topic ‘Is GDPR compatible with WPML’ is closed to new replies.