Viewing 18 posts - 1 through 18 (of 18 total)
  • Author
    Posts
  • #960774

    Hello,

    How can I make the global consent messages in multiple languages?
    multilanguage polylang consent

    I’m using three languages (Dutch, English and German). How can I translate these? They don’t show in strings @ polylang.

    #961266

    Hey dirkvisser,

    Every plugin that is used has some shortcodes that are used for translation. Example [en][/en][gr][/gr]

    If you use those you can translate the sections

    Best regards,
    Basilis

    #961458

    Hello,

    Didn’t really work since polylang doesn’t really use content specific shortcodes.
    Fixed it the css way.

    html:lang(en) .Dutch, html:lang(de) .Dutch {
    display: none !important;
    }
    html:lang(nl) .English, html:lang(de) .English {
    display: none !important;
    }
    html:lang(en) .German, html:lang(nl) .German {
    display: none !important;
    }

    #962408

    Hi,

    Something like that works to display data per language

    UsernameNom d’utilizateur

    Best regards,
    Basilis

    #980626
    This reply has been marked as private.
    #980684

    Hi,

    Yes you can simply insert the css code

    
    html:lang(en) .Dutch, html:lang(de) .Dutch {
    display: none !important;
    }
    html:lang(nl) .English, html:lang(de) .English {
    display: none !important;
    }
    html:lang(en) .German, html:lang(nl) .German {
    display: none !important;
    }
    

    into the quick css field.Don’t forget to customize the code for your language(s) (replace nl, en and de with your language shortcodes, etc.)

    Best regards,
    Dude

    #1149666
    This reply has been marked as private.
    #1150918

    Hi,

    Thank you for the update.

    You can hide the text initially, then only display it when its respective language is active. Please replace the css with the following code.

    .avia_cookie_text span {
        display: none;
    }
    
    html[lang="sl-SI"] .sl-cookie, 
    html[lang="en-US"] .eng-cookie,
    html[lang="it-IT"] .it-cookie {
        display: inline;
    }

    Best regards,
    Ismael

    #1151006
    This reply has been marked as private.
    #1151740

    Hi,

    Glad it’s working. Where can we see the privacy policy message issue? The EN version of the policy page looks fine — there are no unintended text from other languages.

    Thank you for the update.

    Best regards,
    Ismael

    #1151921
    This reply has been marked as private.
    #1152238

    Hi,

    Thank you for the clarification.

    Once again, you can set the initial display value of the span element to “none”, so it’s hidden by default, then follow the same pattern that we did above so that they are visible on their respective languages. Please try this css code.

    .input_checkbox_label span {
    	display: none;
    }
    
    html[lang="sl-SI"] .input_checkbox_label .Slovenščina, 
    html[lang="en-US"] .input_checkbox_label .English,
    html[lang="it-IT"] .input_checkbox_label .Italiano {
        display: inline;
    }

    And you should avoid including uppercase and special characters in the class names. Please adjust the class name of the span elements in the input label.

    Best regards,
    Ismael

    #1152276
    This reply has been marked as private.
    #1154862

    Hi,

    Sorry for the delay. We modified the code in the Quick CSS field a bit. It should work properly now. Please don’t forget to remove the cache prior to checking the page.

    .home .av_contact_privacy_check .input_checkbox_label strong {
      display: none;
      text-indent: -9999px;
    }
    
    html[lang="sl-SI"] .home .av_contact_privacy_check .input_checkbox_label strong.sl, html[lang="en-US"] .home .av_contact_privacy_check .input_checkbox_label strong.en, html[lang="it-IT"] .home .av_contact_privacy_check .input_checkbox_label strong.it {
      display: inline-block !important;
      font-weight: normal;
      text-indent: 0;
    }

    Best regards,
    Ismael

    #1155063
    This reply has been marked as private.
    #1155445

    Hi,

    Sorry about that. We adjusted the selector in the css a bit. It should work for all languages now.

    Thank you for your patience.

    Best regards,
    Ismael

    #1156230

    Hi Ismael, it works perfectly! Thank you for all of the support!

    #1156726

    Hi supp,

    Glad we could help :)

    If you need further assistance please let us know.
    Best regards,
    Victoria

Viewing 18 posts - 1 through 18 (of 18 total)

You must be logged in to reply to this topic.