• Using the lasts version of subscribe2 (7.1 and 7.2) I have a problem with the title and the content of the email sent.

    I’m using qtranslate plugin version 2.5.27 and the title and the content are concatenated between the 2 language I have in my blog. I hacked the code for now with the __($string) function everywhere there is the post_title or post_content.

    That allows me to send at least the email in the main language.

    Is there a way to have a fix in a future version? thanks.

    radgo

    http://wordpress.org/extend/plugins/subscribe2/

Viewing 3 replies - 1 through 3 (of 3 total)
  • @radgo,

    I guess the simple answer is yes, it is possible to fix, the bigger question though is how.

    I don’t use any form of polyglot plugin so I have no idea how any of them work. It seems that qTranslate simply concatenates the different languages into the same database field. How it them pulls these strings apart again though I currently don’t know.

    Looking at the code it does seem to add filters to some of the core WordPress hooks like the_content and the_title, but I apply some of these filters so the default language should be being used as far as I can tell.

    What type of email notification are you using? Per-post or digest?

    Thread Starter radgo

    (@radgo)

    I’m using Per-post notification.

    As you said, qTranslate concatenates the languages in the same field, ie:
    <!--:fr-->Support PME<!--:--><!--:de-->KMU-Support<!--:-->

    When I received the email it looks like:
    Blogname posted a new article, 'Support PMEKMU-Support'

    @radgo,

    I’ve spent a little more time looking at qTranslate. I think it works by using javascript to hide the parts of the content held between the language strings inserted into the concatenated content based on the currently active language.

    Since javascript is run on the client side but Subscribe2 runs in PHP on the server side I am not really sure how a solution could be produced that would enable the 2 plugins to work together.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘qtranslate and subscribe2’ is closed to new replies.