Support » Plugin: Ajaxy Live Search » [Plugin: Ajaxy Live Search] qTranslate & Ajaxy interaction

  • Dan



    This is an unbelievable plugin, u’re a genius.
    I use qTranslate on my multilanguage site (at present I have 2 languages: french and ukrainian)

    when typing something like “cours” in my Ajaxy search field, it returns both post titles glued together, smth like “Bureau des coursВідділ курсів” (imagine what it would return if I had suppose 10 languages! Maybe I will gradually achieve that =) …)

    Normally qTranslate delimits the titles as follows (though I’m not 100% sure of it but I found these delimiters in my menu configuration)

    I think it’s feasible and in theory I see how to correct:
    1. I get to know the current language
    <?php echo qtrans_getLanguage(); ?>
    2. I must do some RegExp test which would ignore all text snaps but the one corresponding to the current language + strip all useless characters (<!–:–>).
    3. And I make it return the title only (in current language).

    Unfortunately I’m not good at PHP Regular expressions to do that at my own.

    Any suggestions guys?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Naji Amer


    u don’t have to do any regexp, qtranslate must have her own functions to return the correct title for the current language, i will check it out and return back to you

    Milos Milikic


    Have the same problem here. Search result displays both language titles. Any solution?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Ajaxy Live Search] qTranslate & Ajaxy interaction’ is closed to new replies.