Coksnuss
Member
Posted 1 year 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/
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);
}
Coksnuss
Member
Posted 1 year 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).
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
Coksnuss
Member
Posted 1 year ago #
Works perfectly! Thanks a thousand