WordPress.org

Ready to get started?Download WordPress

Forums

Cookie Law Info
WPML integration (20 posts)

  1. M Szatkowski
    Member
    Posted 1 year ago #

    Hi!
    Thanks for the plugin.
    Will it work with WPML - possibility to add a translation to proper language version.

    ;)

    http://wordpress.org/extend/plugins/cookie-law-info/

  2. richardashby
    Member
    Plugin Author

    Posted 1 year ago #

    Hi, glad you like it :) Unfortunately it's not currently set up for that. I do plan on implementing it at some point but I have such little spare time these days that I can't see it happening any time soon. If you are a developer and fancy helping out drop me a line via http://www.cookielawinfo.com as it'd be good to collaborate on such a solution. I'd happily translate it into Spanish, and I've had offers to translate it into Dutch.

    Thanks,
    Richard

  3. M Szatkowski
    Member
    Posted 1 year ago #

    Hi Richard
    Thank for your answer.
    I reckon wpml woul read the .po/.mo files with the translation of your plugin when it detects browser language version.

    I can translate it to polish if would like.

    Drop me a line.

  4. richardashby
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Mariusz

    The underlying code would need to be changed to support translation, that's the bit I need to do first. Would you like to help work on that? After that then it needs to be translated into the .po / .mo files.

    I don't have your email address but if you'd like to work on this with me then drop me a line via the contact form on http://www.cookielawinfo.com

    Thanks

  5. fiterix
    Member
    Posted 1 year ago #

    is there any news about plugin compatibility with WPML? :)

  6. richardashby
    Member
    Plugin Author

    Posted 1 year ago #

    Hi fiterix, unfortunately I don't have time to work on this particular feature so there are no updates planned unless anybody would like to assist with the development. If so please contact me via http://www.cookielawinfo.com. Thanks!

  7. vovonep
    Member
    Posted 1 year ago #

    I see you are working on a new release. WIll WPML support be added in the new version?

    Maybe the WPML (support)team is able to help you out with it, I understand they are very willing to make plugins and themes WPML compatible.

  8. ashbryant
    Member
    Posted 1 year ago #

    I would also like to see this added to the plugin, which is great by the way ;)

  9. richardashby
    Member
    Plugin Author

    Posted 1 year ago #

    Hi- I'd definitely like to add this feature, but I'm looking to work with somebody on this- ideally somebody who's done it before. It requires PHP skills rather than the actual translation. If that's you then please get in touch via http://www.cookielawinfo.com/contact/

    Thanks :)

  10. Francisco Torres
    Member
    Posted 10 months ago #

    Hi!

    A fast-way to make the plugin compatible with WPML is adding a wpml-config.xml file in the plugin root directory containing:

    <wpml-config>
    	<admin-texts>
    	        <key name="CookieLawInfo-0.9">
                            <key name="notify_message" />
                            <key name="button_1_text" />
                            <key name="button_1_url" />
                            <key name="button_2_text" />
                            <key name="button_2_url" />
                            <key name="showagain_text" />
                    </key>
    	</admin-texts>
    </wpml-config>

    That just tell what arrays that this plugin store in the database should be translated, after that you can just edit those arrays via "WPML String Translation" plugin ;)

  11. richardashby
    Member
    Plugin Author

    Posted 10 months ago #

    Hi Francisco,

    Thanks very much for posting the solution, that's great :) I'll see what I can do to incorporate this into a future release and will of course credit you with the solution.

    All the best
    Richard

  12. marco.tsitselis
    Member
    Posted 7 months ago #

    Hello Francisco Torres

    I would like to implement your "resolution" to use spanish and english version of the plugin..

    What I could do exactly?

    Thanks in advance, MT

  13. marco.tsitselis
    Member
    Posted 7 months ago #

    I have created and uploaded wpml-config.xml
    I have installed WPML String Translation

    but I can't translate the "Cookie Law Info" message :(

  14. MercedesWPML
    Member
    Posted 7 months ago #

    Hi,
    this is Mercedes, from WPML. We are interested in the compatibility too. @Richard, would you like to add the wpml config file.xml file and then send it over to me. We will then confirm the compatibility and announce it to our users too.

    Can you please drop me a line back?
    Thanks!

  15. retroriff
    Member
    Posted 5 months ago #

    The solution of Francisco Torres is good to get the translations, but the translated message is not shown yet.

    I am also very interested in this translation.

  16. Dominykas
    Member
    Posted 5 months ago #

    Hi Retroriff,

    I just checked wpml-config.xml uploaded by Francisco Torres and it works fine. All translations appears in a second language.

  17. richardashby
    Member
    Plugin Author

    Posted 5 months ago #

    Hi all,

    Dominykas is the lead compatibility developer at WPML and has kindly tested Francisco's solution which he verifies as working. I'll work on integrating this feature at some point in the near future (my time permitting!) but in the mean time this solution has been verified.

    Many thanks to Francisco, Mercedes and Dominykas :)

    Regards,
    Richard

  18. clegeard
    Member
    Posted 4 months ago #

    Hi,

    I have created the wpml-config.xml file and uploaded file, but I can't see the string in the WPML String Translation.

    I only get this message in the WPML Translation Manager on the Administrative chains to translate:

    [plugin: cookie-law-info] CookieLawInfo-1.1.2 [translate]
    some strings might be not registered
    notify_message:
    button_1_text:
    button_1_url:
    button_2_text:
    button_2_url:
    showagain_text:

    When I click on translate, the strings don't appear.

    What am I doing wrong?

    Thanks

  19. richardashby
    Member
    Plugin Author

    Posted 4 months ago #

    Hi, sorry for delay replying- been on holiday :)

    This is one for the WPML boards, as I don't officially support this. The WPML team are very helpful indeed and I'm sure you'll get a solution.

  20. MercedesWPML
    Member
    Posted 3 months ago #

    Hi cleegeard,
    please visit our forum and make sure to start your own thread http://wpml.org/forums/forum/english-support/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags