Problem: Search module shows results in wrong language
Posted: Fri Nov 24, 2006 11:04 pm
I have a default 1.0.2 version installed and I am using the default Search module to search my site in two languages - English and Lithuanian.
The results are being displayed in two different pages (alias "search_en" and "search_lt"). The search forms are also configured to send data to these pages.
When I search the English version of site (with {search resultpage="search_en" lang="en_EN"} in content body), I have no problems. But when I try to search Lithuanian version of site ({search resultpage="search_lt" lang="lt_LT"}) I have a problem - search box appears correctly, but the results appear in English language.
The "Default language for the frontend" setting doesn't select any language for me. If I enter Lithuanian there, then all the search results (English ones also) are displays in Lithuanian language.
Result page (search_lt) uses Lithuanian template and I don't want to show an English words there... Any ideasĀ
Hint: may be there is a possibility to pass different "Default language for the frontend" values for different pages or templates? That would help me I think.
The results are being displayed in two different pages (alias "search_en" and "search_lt"). The search forms are also configured to send data to these pages.
When I search the English version of site (with {search resultpage="search_en" lang="en_EN"} in content body), I have no problems. But when I try to search Lithuanian version of site ({search resultpage="search_lt" lang="lt_LT"}) I have a problem - search box appears correctly, but the results appear in English language.
The "Default language for the frontend" setting doesn't select any language for me. If I enter Lithuanian there, then all the search results (English ones also) are displays in Lithuanian language.
Result page (search_lt) uses Lithuanian template and I don't want to show an English words there... Any ideasĀ

Hint: may be there is a possibility to pass different "Default language for the frontend" values for different pages or templates? That would help me I think.