• Resolved 3cats

    (@3cats)


    Hello, I’m using your plugin on a multilingual site (both French and English) and I use WPML as the plugin for translating text.

    I’ve added your code to my Contact Form 7 for integration. I’ve done one form in French and one in English but the text that appears beside the checkbox for signing up is not found by WPML string translation and so is not translated. I was wondering if you ever came by this problem before (checked the support forum but could not find anything about it) and if yes, how it was solved?

    Thanks you
    In French https://www.sylvieadams.com/fr/contactez-moi -at the bottom of the first box – you’ll see the checkbox ??
    In English https://www.sylvieadams.com/get-in-touch

    • This topic was modified 7 years, 4 months ago by 3cats.

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor yikesitskevin

    (@yikesitskevin)

    Bonjour @3cats,

    I don’t believe this has come up before. I am not overly familiar with WPML but I know you can translate “options” (i.e. data stored in WordPress’ options table). Although this article is talking about theme options, I believe the basic principle is the same for options defined by a plugin. Can you check for the option with the name optin-checkbox-init?

    Let me know if that is helpful information.

    Merci,
    Kevin.

    Thread Starter 3cats

    (@3cats)

    Hello @yikesitskevein
    You certainly were on the right track and yes the info was very helpful – but somehow the translate admin texts on my site is not working. People at WPML gave me a work around until we can figure out what’s wrong. So I’ll share the work around, in case it can help anyone having the same problem.

    ? Please go to WPML > Translation Management > Custom XML Configuration and add the following:

    <wpml-config>
    <admin-texts>
    <key name=”optin-checkbox-init”>
    <key name=”contact_form_7″>
    <key name=”label”/>
    </key>
    </key>
    </admin-texts>
    </wpml-config>

    Then go to WPML > String Translation and you will find the string available to translate under the domain “admin_texts_optin-checkbox-init”.

    Please translate it and check the front end.?

    Cheers!

    • This reply was modified 7 years, 4 months ago by 3cats.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Translating text with Checkbox’ is closed to new replies.