WordPress.org

Ready to get started?Download WordPress

Forums

POST2PDF Converter
[resolved] Support for qTranslate Plugin (5 posts)

  1. Coksnuss
    Member
    Posted 2 years ago #

    Hello,

    we are using the WordPress Plugin qTranslate in order to make our pages available in different languages. We would also like to use this PDF Plugin, which seems to be incompatible to qTranslate since it is not applying any filters to get_post() or similar calls.
    I've tried to "fix" this plugin for our purposes and its pretty easy and requires only a few changes (as described here: http://www.qianqin.de/qtranslate/forum/viewtopic.php?f=3&t=294).
    Could you please implement this feature? (Otherwise all languages are mixed up in the exported PDF)

    Thanks

    http://wordpress.org/extend/plugins/post2pdf-converter/

  2. redcocker
    Member
    Plugin Author

    Posted 2 years ago #

    Hi, Coksnuss san

    Thank you for your info.

    Could you please implement this feature?

    Yes.

    Should I add following code into post2pdf-converter-pdf-maker.php?

    // For qTranslate
    if (function_exists('qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage')) {
    	$content = qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage($content);
    }
  3. Coksnuss
    Member
    Posted 2 years ago #

    Thanks for your quick response. You do not necessarily need to use this function. The __() call works as well (I used that one too). I've also seen that your Plugin provides the following setting: "Filters: Apply WordPress default filters to the title and content". It would make sense if you would just apply the __()-call when this option is turned on (I leave this to you since I've not much experience with WordPress Plugins).

  4. redcocker
    Member
    Plugin Author

    Posted 2 years ago #

    Hi, Coksnuss san

    I made it to support qTranslate.

    If you need, please re-install Development Version.
    Development Version: http://downloads.wordpress.org/plugin/post2pdf-converter.zip

  5. Coksnuss
    Member
    Posted 2 years ago #

    Works perfectly! Thanks a thousand

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic