• Resolved Xavier Soler

    (@mediopirzel)


    Hi Johan,

    first of all, congratulations for your amazing work. The plugin works great and I think it is very easy to set up.

    I’m testing in a multi-language site with Spanish as default language.
    When I try to translate, the strings are not available at “WPML / String translation”.
    If I force to search strings in your plugin domain, WPML finds 139 strings but all are admin strings, but the strings from the fields are missing.

    Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Johan Jonk Stenstr?m

    (@jonkastonka)

    Hi!

    I can see the same problem. I usually don’t use WPML, I prefer PolyLang. But I used WPMLs documentation to create a wpml-config.xml that PolyLang has support for too, and there it works like a charm. I’ll look into this issue when I have more time.

    Thread Starter Xavier Soler

    (@mediopirzel)

    Thank you Johan,

    If someone has the same problem, It is very easy to solve following this instructions:
    Translate cookies and content security policy plugin

    add next code to WPML > Settings > Custom XML configuration:

    <wpml-config>
        <admin-texts>
            <key name="cacsp_option_text_header"/>
            <key name="cacsp_option_text_info"/>
            <key name="cacsp_option_text_link_text"/>
            <key name="cacsp_option_text_settings"/>
            <key name="cacsp_option_text_always_allow_header"/>
            <key name="cacsp_option_text_always_allow_description"/>
            <key name="cacsp_option_text_statistics_header"/>
            <key name="cacsp_option_text_statistics_description"/>
            <key name="cacsp_option_text_experience_header"/>
            <key name="cacsp_option_text_experience_description"/>
            <key name="cacsp_option_text_marketing_header"/>
            <key name="cacsp_option_text_marketing_description"/>
            <key name="cacsp_option_settings_button"/>
            <key name="cacsp_option_accept_all_button"/>
            <key name="cacsp_option_save_button"/>
            <key name="cacsp_review_settings_description"/>
            <key name="cacsp_review_settings_button"/>
            <key name="cacsp_not_allowed_description"/>
            <key name="cacsp_not_allowed_button"/>
        </admin-texts>
    </wpml-config>

    Go to WPML > String Transaltion find the Cookie text and translate. Make sure to mark Translation is complete.

    • This reply was modified 4 years ago by Xavier Soler. Reason: I forgot to mark as resolved
    Plugin Author Johan Jonk Stenstr?m

    (@jonkastonka)

    The latest update is thanks to you @mediopirzel. I’ve enlisted to the WPML compatibility program as suggested in you support thread with them.

    Thanks for getting the solution from WPML!

    Thread Starter Xavier Soler

    (@mediopirzel)

    Thank you for your work Johan!

    Plugin Author Johan Jonk Stenstr?m

    (@jonkastonka)

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘translate content with WPML’ is closed to new replies.