Support » Plugins » Plugin Qtranslate – Problem with the Search results on a bilingual website

  • Resolved urbanplanner

    (@urbanplanner)


    Hi,

    I need your help concerning this bilingual website that I’ve developed:
    http://terristorias.com

    This site is based on the theme ‘The Source’ by Elegant Themes, and I’ve installed the plugin Qtranslate to manage the bilingual features (french / english).

    The problem:

    When I launch a search (see the serach field on the top of every page), the Results page is ALWAYS in english, even if I do the search while I’m on a french page.
    The search tool doesn’t take in account the french language at all (= the secondary language, as english is on default).

    Here is the code that one can find in the file Searchform.php :

    <form id="search" method="get" action="index.php">
    
        <div>
            <input type="text" value="<?php the_search_query(); ?>" name="s" id="s" />
            <input type="submit" id="searchsubmit" value="<?php _e('[:fr]Recherche[:en]Search','TheSource'); ?>" />
        </div>
    </form>

    I’ve tried several modifications, made a lot of searches… but couldn’t fix this problem by myself.

    Please could you help me? It’s very ennoying as about 50% of our readers speak french…
    I don’t know well PHP but I guess that something is wrong with the code…

    Thanks,
    Nat

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Plugin Qtranslate – Problem with the Search results on a bilingual website’ is closed to new replies.