-
AuthorPosts
-
May 23, 2018 at 1:22 pm #960774
Hello,
How can I make the global consent messages in multiple languages?
I’m using three languages (Dutch, English and German). How can I translate these? They don’t show in strings @ polylang.
May 23, 2018 at 10:18 pm #961266Hey 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,
BasilisMay 24, 2018 at 11:36 am #961458Hello,
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;
}May 25, 2018 at 9:24 pm #962408Hi,
Something like that works to display data per language
UsernameNom d’utilizateur
Best regards,
BasilisJuly 3, 2018 at 4:29 pm #980626This reply has been marked as private.July 3, 2018 at 6:50 pm #980684Hi,
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,
DudeOctober 20, 2019 at 10:37 pm #1149666This reply has been marked as private.October 24, 2019 at 3:21 pm #1150918Hi,
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,
IsmaelOctober 24, 2019 at 10:59 pm #1151006This reply has been marked as private.October 28, 2019 at 1:40 pm #1151740Hi,
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,
IsmaelOctober 28, 2019 at 10:32 pm #1151921This reply has been marked as private.October 30, 2019 at 8:48 am #1152238Hi,
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,
IsmaelOctober 30, 2019 at 12:03 pm #1152276This reply has been marked as private.November 8, 2019 at 6:41 am #1154862Hi,
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,
IsmaelNovember 8, 2019 at 5:11 pm #1155063This reply has been marked as private.November 11, 2019 at 1:57 am #1155445Hi,
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,
IsmaelNovember 12, 2019 at 11:32 pm #1156230Hi Ismael, it works perfectly! Thank you for all of the support!
November 14, 2019 at 12:12 pm #1156726Hi supp,
Glad we could help :)
If you need further assistance please let us know.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.