No search results in translated language

This forum includes all questions and reports related the Joom!Fish core extension. This includes all related and with the main package distributed extensions such as the JFRounter, Admin Translation Module, Search Plugins or the Language Selection Module.

We do not support version 1.7/1.8 anymore. You are strongly advised to upgrade your site to the latest Joomla and JoomFish extension
Forum rules
Please visit the Documentation section first. Especially take a look at the Installation issues and the FAQ document.

Before posting, don't forget to search the forums.

If you still have issues, start a topic and include as much information as possible:

First of all, check if you are running the latest available version of Joomla! (1.5.20) and Joom!Fish (2.0.4). Posts for issues, where both systems are not updated, will be ignored.

We need the following at least (you can find this in your Joomla! backend under help > system info):

* PHP version (e.g. 5.2.5). Note: The support for PHP4 is discontinued.
* Joomla! version
* Joom!Fish version
* Web Server software (Apache or IIS with version number if possible)
* Server Operating system (e.g. Linux, Windows, Solaris, Darwin ...)
* Webserver to PHP interface (e.g. apache2handler, cgi-fcgi)
* Database version
* memory_limit from your phpinfo

Please enable error reporting and include any error messages in your posting.

Finally, please describe the steps required to recreate the problem and also please enable error reporting and give us any error messages generated.

Re: No search results in translated language

Postby mx5gr on Mon Mar 01, 2010 7:12 pm

Exactly the same happens to me with the latest Joomfish 2.1 and Joomla 1.5.15
mx5gr
Inshore Fisher
 
Posts: 101
Joined: Mon Jul 07, 2008 5:40 pm

Re: No search results in translated language

Postby WINEMAN on Sun Mar 21, 2010 5:19 am

Has anyone in the JoomFish community solved this problem? Or duplicated it?
WINEMAN
Newbee
 
Posts: 45
Joined: Wed Oct 28, 2009 4:34 am
Location: Japan

Re: No search results in translated language

Postby wally9 on Mon Apr 04, 2011 7:31 pm

I´m trying to make this work by enabling the earch plugin only on the default language (at least that was my idea). However I can´t get it to work.

I thought something like this around the joomla search/content.php would work but no:

if (JRequest::getVar('lang')=='fr') {


}

anyone has any thoughts as to why?
wally9
Newbee
 
Posts: 2
Joined: Mon Apr 04, 2011 7:27 pm

Re: No search results in translated language

Postby tomazzlender on Tue Apr 05, 2011 12:40 pm

In file plugins/search/content.php create an if statement around

$mainframe->registerEvent( 'onSearch', 'plgSearchContent' );
$mainframe->registerEvent( 'onSearchAreas', 'plgSearchContentAreas' );
JPlugin::loadLanguage( 'plg_search_content' );

like this:

if (JRequest::getCmd("lang") == 'sl') {
$mainframe->registerEvent( 'onSearch', 'plgSearchContent' );
$mainframe->registerEvent( 'onSearchAreas', 'plgSearchContentAreas' );
JPlugin::loadLanguage( 'plg_search_content' );
}

It works beautifully.

Regards,
Tomaž
tomazzlender
Newbee
 
Posts: 1
Joined: Tue Apr 05, 2011 12:37 pm

Re: No search results in translated language

Postby wally9 on Tue Apr 05, 2011 9:20 pm

indeed works beautifully.

Thanks
wally9
Newbee
 
Posts: 2
Joined: Mon Apr 04, 2011 7:27 pm

Re: No search results in translated language

Postby OsakaWebbie on Thu Sep 15, 2011 2:45 pm

As the OP I'll jump back in this thread - I have been busy with other things and ignoring it, but someone else with the same problem inquired by PM whether I had solved it. No, I haven't. And what wally9 proposed and tomazzlender finished is not a solution, at least in my opinion. No matter which language is the default, or which language I'm currently viewing in, if I search for something, the results should include any pages that match, regardless of language. If I'm viewing the site in English but search on a Japanese word, shouldn't I get results? The way the code is now, I do get results, and I think that's the way it should stay. The problem is in how those results are shown in the component. See my long post on page 1 of this thread for a clear explanation and example screenshots.

Anyone with any new ideas on this?
User avatar
OsakaWebbie
Newbee
 
Posts: 29
Joined: Wed Apr 30, 2008 8:47 am
Location: Osaka, Japan

Re: No search results in translated language

Postby Belonogast on Wed Sep 21, 2011 9:18 am

Please have a look at this thread: viewtopic.php?f=49&t=10569

The plugins there worked out beautiful!
Belonogast
Newbee
 
Posts: 37
Joined: Tue Apr 26, 2011 1:36 pm

Re: No search results in translated language

Postby stavroch on Thu Nov 10, 2011 11:54 am

My contents are k2 items. So which file I have to change for displaying results in the same language that the user is.
stavroch
Newbee
 
Posts: 6
Joined: Fri Feb 25, 2011 2:26 pm

Re: No search results in translated language

Postby OsakaWebbie on Thu Nov 24, 2011 9:19 pm

Belonogast wrote:Please have a look at this thread: viewtopic.php?f=49&t=10569
I don't understand the connection - I'm using 2.04, have not had any error messages, and don't have any special plugins related to Search (except of course JoomFish itself). I could upgrade, but someone else who has 2.1 said he/she had the same problem, so I think it's something basic in the way JF and Joomla interact.
User avatar
OsakaWebbie
Newbee
 
Posts: 29
Joined: Wed Apr 30, 2008 8:47 am
Location: Osaka, Japan

Previous

Return to Joom!Fish 2.0.x Core [deprecated]

Who is online

Users browsing this forum: Google [Bot] and 2 guests