Posted by carvalhar on February 24, 2009 at 4:31pm
hi,
I have a multilingual site built with i18n.
When i do a normal search, my site searchs for the nodes with the defined language and it is ok.
But, when i do a search trougth services, using search.nodes, the service returns only the nodes with the main language, the others never show up, even if I change the language.
Is there a way to correct this issue?
or at least, to add a field as argument to look for a specifed language in node's language field?
thanks in advance.
ps:
i posted here also: http://drupal.org/node/382406

Comments
i created a small
i created a small service:
/**
* Callback for language.switch service.
*/
function language_service_switch($theLanguage) {
global $language;
global $user;
$user->language = $theLanguage;
$language->language = $theLanguage;
return $user->language;
}
it does change the language, but when i use a search trougth amfphp it always return the search in default language...
how can i do a search trought services and amfphp respecting the current language?
thanks,
Carlos