Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1403254

    Hi;
    i need to translate the Modal Window Custom Content into EN, actually i am using DE.
    For language switch i am using Polylang but these text blocks are not visible there, so i tried Loco but also here is not EN POT available … anyone deeper description for that?

    #1403313

    Hey Sebastian,
    Thanks for your question, I don’t have much experience with Polylang, but I believe I have a workaround for the Modal Window Custom Content
    I added text for both DE & EN to my Modal Window Custom Content Tab Label & Tab Content wrapping the text with spans and a custom language class, like this:

    <span class="lang-de">...</span>
    <span class="lang-en">...</span>

    Enfold_Support_813.jpeg
    Then I added this css to my WordPress ▸ Customize ▸ Additional CSS

    html[lang="en-US"] .lang-de {
    	display: none;
    }
    html[lang="de-DE"] .lang-en {
    	display: none;
    }

    and when my site language is EN the Modal Window Custom Content popup shows only the EN text:
    Enfold_Support_815.jpeg
    and same for DE
    Enfold_Support_817.jpeg
    Perhaps someone else will know how to get Polylang to translate the Modal Window Custom Content popup, but hopefully this will help.

    Best regards,
    Mike

    #1403856

    Hi MIke, it did it exact same way but it shows me both text blocks ..

    #1403885

    Hi,
    Thank you for the link to your site, I didn’t find the css rules added to your site so I added to your WordPress ▸ Customize ▸ Additional CSS and adjusted it from the US English (html[lang=”en-US”]) to the GB English that your site is using (html[lang=”en-GB”]):

    html[lang="en-GB"] .lang-de {
    	display: none;
    }
    html[lang="de-DE"] .lang-en {
    	display: none;
    }

    I also found that using the line breaks <br> breaks the span class so I adjusted to this: </br> which works correctly.
    Please clear your browser cache and check.

    Best regards,
    Mike

    #1403974

    Cool, many thx. The css was added on the top ..hmm .. maybe it was the span class breaking issue .. good to nkow for the futire.

    Thank you -.– we can close this ticket

    #1403980

    Hi,
    Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Translation cookie Popup window’ is closed to new replies.