Home Forums Newsletter Plugin Support compatibility wit WPML

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

    Good morning, I find very interesting your plugin, but there is not a presales support. In fact, I have a question. I am creating a site in WP + + WPML Woocommerce. WPML, he says that your plugin is not compatible. There is a chance to make it compatible?


    It’s in our planes, but we’re concentrated to release a couple of extension right now and a fully revision of the lists management. After that we are going to surely consider the wpml compatibility.



    Any news about the WPML compatibility?


    +1 on wpml support.
    i currently try to translate all the emails sent out by tnp, but for now i don’t see any chance to do so.


    OK. i found a solution for this issue. since the newsletter strings are saved in the options table, you can add a file to the plugin folder, that tells wpml to search for some specific strings.

    so the file has to be called wpml-config.xml and needs to be placed inside the newsletter plugin folder.
    here are the contents of the file

    <key name="newsletter">
    <key name="profile_text"/>
    <key name="profile_email_changed"/>
    <key name="profile_error"/>
    <key name="confirmation_text"/>
    <key name="confirmation_subject"/>
    <key name="confirmation_message"/>
    <key name="confirmed_text"/>
    <key name="confirmed_subject"/>
    <key name="confirmed_message"/>
    <key name="unsubscription_text"/>
    <key name="unsubscription_error_text"/>
    <key name="unsubscribed_text"/>
    <key name="unsubscribed_subject"/>
    <key name="unsubscribed_message"/>

    these strings then appear in wpml under string translation. search for the domain admin_texts_newsletter

    i did this and was able to receive the confirmation email in my current language. now the link is still pointing to the english confirmation site, triggering the english confirmation email (i have double opt-in active), but maybe this is solveable as well.

    i switched the url manually, and that sill caused the english text to be loaded.
    so i changed the file /newsletter/subscription/subscription.php line 1903
    and added

    add_action('plugins_loaded', function (){
    }, 99);

    at the end of the file.
    problem here is, that tnp is triggered too early, not waiting for other plugins to run, and this hook helps out on this end..

    so. getting there. dear stefano, please consider to change this last code snippet in your original files and please continue on making this plugin even better / wpml friendly..


    here is a some more detailed way on how to get this working.. maybe one day tnp will make this possible without hacking the tool..

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.