a search can be done like that : http://2014.extend.xiligroup.org/?s=ligne
if you want to limit to one language add the param &lang=fr_fr
In the 2014 child-theme of this example, after searching the form is completed with radio buttons to sub-select in a target language (here french).
For better support, do not hesitate to use the support 6th tab in xili-language settings page.
Cheers
M.
Thanks for your quick reply,
but I did not understand how it works.
What I want is for:
When I’m on the site in English and tighten it in the search only returns results of pages marked in English.
When I’m on the site in Portuguese and tighten it just returns the search results pages marked in Portuguese.
My code in the search in header.php is as follows:
<div id="busca">
<span class="btn"></span>
<!--h3><label for="s"><?php _e('Search Media');?></label></h3-->
<form id="searchform" class="blog-search" method="get" action="<?php bloginfo('home') ?>">
<div>
<input type="search" id="media-search-input" class="txt" name="s" placeholder="<?php _e('Busca');?>" value="<?php the_search_query(); ?>" />
<button class="btn" id="enviar_busca" name="enviar_busca" type="submit">OK</button>
</div>
</form>
</div>
How I should look?
if you create the form yourself with php control, you must add in the form the
<input type="hidden" name="lang" value="xx_yy">' // where 'xx_yy' is the curlang of the webpage returned by a function like
xili_curlang()
Good dev.
M.
Thank you for your help
it works! =D