Home Forums Newsletter Plugin Support compatibility wit WPML

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

    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?

    #31000
    Stefano
    Keymaster

    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.

    Stefano.

    #43502
    matom
    Participant

    Any news about the WPML compatibility?

    #45645
    jnz
    Participant

    +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.

    #45649
    jnz
    Participant

    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

    <wpml-config>
    <admin-texts>
    <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"/>
    </key>
    </admin-texts>
    </wpml-config>

    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
    NewsletterSubscription::instance();
    to
    //NewsletterSubscription::instance();
    and added

    add_action('plugins_loaded', function (){
    NewsletterSubscription::instance();
    }, 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..

    #47219
    jnz
    Participant

    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.