Feature A Page Widget
[resolved] QTranslate? (7 posts)

  1. oolongtea
    Posted 3 years ago #

    Would it be possible to make this very nice plugin work with QTranslate (http://wordpress.org/extend/plugins/qtranslate/)? Qtranslate is very popular and I believe many qtranslate-users would like that a lot.

    This is what I get (hope this passes the editor):
    <!--:sv-->Test 2 test 2 test 2 <!--:--><!--:ru-->Тест 2 Тест № 2 Тест № 2<!--:--><!--:ar--> ر # 2 اختبار # 2 اختبار # 2 اختبار # 2 اختبار # 2 اختبار # 2 اختبار <!--:-->

    Of course only one language at a time is supposed to be shown and none of the tags. I´ll email a screendump.

    I also use
    -Widgetize pages Light (http://wordpress.org/extend/plugins/widgetize-pages-light/)
    -WP Photo Album Plus (http://wordpress.org/extend/plugins/search.php?q=WP+Photo+Album+Plus)

    "Feature A Page Widget" cooperate nicely with them.

    I have tried "Featured Page Widget" (http://wordpress.org/extend/plugins/featured-page-widget/). It works fine with QTranslate but breaks the things "WP Photo Album Plus" can do. ... and "Featured Page Widget" is old - it seems to have been abandoned by it´s creator.

    Many thanks for "Feature A Page Widget" - very nice widget. I like it a lot. Could this QTranslate-thing be fixed I´d love it!



  2. Mark Root-Wiley
    Plugin Author

    Posted 3 years ago #

    Hi @oolongtea

    Thank you for reporting this issue. I have confirmed the problem and listed the plugin as officially incompatible (for now) on the plugin's page for other peoples' knowledge.

    I'm unfamiliar with what qTranslate requires for compatibility, so this may take some time to resolve, but I do hope to get the plugins to play nicely sooner rather than later.

  3. oolongtea
    Posted 3 years ago #

    Many thanks! :) I shall, somewhat impatiently, await that update.
    I´m sorry I can´t give you any tips on how qTranslate works on the inside. I just happily and unknowingly use it. It´s pretty straight forward but if you have any questions about how to use it I´ll do my very best help you out.

  4. wecreate.
    Posted 3 years ago #


    First of all: Very nice Plugin! In fact, it is so nice (and useful) I dug into the code to find a solution for the qTranslate "problem". And I possibly found one :)

    The problem seems to be how the strings get escaped. qTranslate relies on XML-Tags to identify different languages (see first post from oolongtea).

    The two functions esc_attr() and esc_html() are escaping the needed tags for qTranslate to identify the different languages.

    But there are translation-ready alternatives to these functions:
    esc_attr__() and esc_html__().

    I'm not sure if there are implications of using these functions, but they work :) I haven't witnessed any downsides.

    Hope this helps.

  5. Mark Root-Wiley
    Plugin Author

    Posted 3 years ago #


    Thank you very much for looking into a fix. What you found makes sense (though I can't say I had thought of it) and sounds like it would be a safe fix to implement.

    I'll try to look into it in the next week and get a release out if it seems to work.

  6. Mark Root-Wiley
    Plugin Author

    Posted 3 years ago #

    @oolongtea and @wecreate, I believe that I've got the widget working with qTranslate now.

    I'm still not super familiar with the plugin, so please let me know if I've overlooked anything. If new issues arise, please open up a new thread as I'm marking this one resolved.

  7. oolongtea
    Posted 3 years ago #

    @mrwweb, @wecreate.

    Thank you :) Great! Appreciate it a lot! Many thanks! Sunshine to you!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Feature A Page Widget
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic