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

damienmckenna’s picture

Version: 6.x-1.4 » 7.x-1.x-dev

I saw that too. Lets fix it for D7 and then backport it to D6.

damienmckenna’s picture

Status: Active » Needs review
StatusFileSize
new1.36 KB

This 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.

damienmckenna’s picture

Status: Needs review » Fixed

Committed.

damienmckenna’s picture

Status: Fixed » Patch (to be ported)

This needs to be backported to D6.

damienmckenna’s picture

Status: Patch (to be ported) » Needs review
StatusFileSize
new2.68 KB

Two 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.

damienmckenna’s picture

Version: 7.x-1.x-dev » 6.x-1.x-dev
Status: Needs review » Patch (to be ported)

Committed. Back to the backport.

damienmckenna’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
Issue summary: View changes
Status: Patch (to be ported) » Fixed

The D6 version is no longer supported. Sorry folks.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.