Service search.nodes and i18n

Events happening in the community are now at Drupal community events on www.drupal.org.
carvalhar's picture

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

carvalhar's picture

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

Services

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: