Hi,
I have a multilingual site with content in different languages (i18n). The default language is French. When I access http://mysite.org/googlenews.xml I see 2 articles (I've just installed the module), one is set in French in Drupal and the other is set in English. But in the XML file I see both with the tag saying French:
<n:language>fr</n:language>
When I access http://mysite.org/en/googlenews.xml, both tags are:
<n:language>en</n:language>
So I think the module doesn't take the language from the node, but the language the user is in, the path in my case.
Comments
Comment #1
damienmckennaI saw that too. Lets fix it for D7 and then backport it to D6.
Comment #2
damienmckennaThis should do it, it uses entity_language() to work out the node's language, which incidentally bumps the module's requirements so it requires Drupal 7.15 or higher.
Comment #3
damienmckennaCommitted.
Comment #4
damienmckennaThis needs to be backported to D6.
Comment #5
damienmckennaTwo things needed to be fixed - use the global language if the node's language shows as 'und', and load the node before trying to check the language.
Comment #6
damienmckennaCommitted. Back to the backport.
Comment #7
damienmckennaThe D6 version is no longer supported. Sorry folks.