Serve RSS feed with different languages for different items
rss
Solution
The specific RSS `<language>` element is only valid at the top level and specifies:
The language the channel is written in.
Atom uses the more general `xml:lang` attribute and makes clear that in can be used on any element:
Any element defined by this specification MAY have an xml:lang attribute, whose content indicates the natural language for the element and its descendents.
It would be acceptable to use `xml:lang` on specific items in an RSS feed. However, with RSS or Atom, your decision will largely be affected by whether clients pay attention to it.
Problem
Is it possible to create an RSS (2.0) feed with multiple languages? Say I blog mainly in English (`en`), but sometimes I create German (`de`) posts. Is there support for this in the RSS spec? I couldn't find anything in the RSS spec on this issue. There doesn't seem to be a language sub-element below item and I'm not sure if it's valid to put multiple language codes separated by comma in the language element of channel. Actually I don't care too much about setting the language for specific items in the feed, but rather I'd like to specify a primary language and a secondary language.