Forums

[resolved] [Plugin: qTranslate] Add &lang= to search results URL (2 posts)

  1. leandrodpzla
    Member
    Posted 8 months ago #

    I'm using qTranslate to set a multilanguage site, and I want to make my results appear in the right language. How could I put &lang=es or whatever to the end of the URL string generated by search form?

  2. leandrodpzla
    Member
    Posted 8 months ago #

    I found this solution!
    Put this inside search form!
    <input type="hidden" value="<?php if ($language == 'es') echo "es"; else echo "pt"; ?>" name="lang"/>

Reply

You must log in to post.

About this Topic