• Resolved stefanobeck

    (@stefanobeck)


    I would like to display the banner message in Cookie Banner Text in different languages in frontend.
    I use the polylang plugin.
    I see in the code this:
    $content = get_option( ‘gdpr_cookie_banner_content’, ” );

    and

    if ( empty( $content ) || empty( $tabs ) ) {
    return;
    }

    Do you have any suggestions?
    Thx.

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

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Fernando Claussen

    (@fclaussen)

    The privacy bar message?
    The message is set in the plugin settings. You can use whatever language you want there.
    I see that you added a new line in Italian there, so I’m not sure what you are referring to.

    Thread Starter stefanobeck

    (@stefanobeck)

    If user language choice is “English” (see flag choice in the header) the privacy bar message is english and link to Privacy policy in english.

    If user language choice is “Italian” (see flag choice in the header) the privacy bar message is in italian language and link to Privacy policy in italian language.

    I can translate all others strings with Loco plugin or Poedit, but i cannot translate Cookie Banner Text message content.
    Sorry for my bad english.

    Plugin Author Fernando Claussen

    (@fclaussen)

    Oh. I see what you mean.

    Well, I can’t really have that string translatable since it’s user input. For me to be able to translate that, I would need to have each field in each language.

    I don’t know how you are doing your translations, but the way I do it is I usually have a multisite running the same theme.

    What WPML for example does, it “clones” your post and let you rewrite it in a different language. Nothing similar is available for plugin options I’m afraid.

    Plugin Author Fernando Claussen

    (@fclaussen)

    My suggestion is that you have both there. Just like we do it in Canada where ads and packages all have the words in English and French.

    Thread Starter stefanobeck

    (@stefanobeck)

    Ok. thank you for reply.
    I use Polylang plugin, work similar to WPML.
    Polylang compatibility and WPML it’s a suggestion for your next extensions. ??

    Hi Fernando,

    Can we use short codes for the translation of the inside texts? for e.g. Cookie banner text?

    Plugin Author Fernando Claussen

    (@fclaussen)

    @mokshich

    Not currently. I’m trying to focus on getting v2.0 released before May 25th. After that I will get in touch with WPML, polyang and others to see how can I make the plugin work with them.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Translation Cookie Banner Text’ is closed to new replies.