• Resolved Bob

    (@prasunsen)


    How to make qTranslate figure out the language when used in other plugins? We have users of our quiz plugin who create multiple languages. When the result is calculated and returned by Ajax the text comes repeated on the ajax response because qTranslate stores it twice in the DB.

    In the past I made the following

    if(function_exists(‘qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage’)) add_filter(‘myplugin_content’, ‘qtrans_useCurrentLanguageIfNotFoundUseDefaultLanguage’);

    And then I apply “myplugin_content” to the ajax response. It used to work but now suddenly stopped?

    https://www.ads-software.com/plugins/qtranslate/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘How to make it work on ajax requests from other plugins?’ is closed to new replies.