dc:language support

This commit is contained in:
Sam Ruby 2006-10-12 12:57:05 -04:00
parent 1a4760a348
commit db79be60cc
2 changed files with 17 additions and 0 deletions

View File

@ -202,6 +202,9 @@ def reconstitute(feed, entry):
xentry=xdoc.documentElement
xentry.setAttribute('xmlns:planet',planet.xmlns)
if entry.has_key('language'):
xentry.setAttribute('xml:lang', entry.language)
id(xentry, entry)
links(xentry, entry)

View File

@ -0,0 +1,14 @@
<!--
Description: title value
Expect: title_detail.language == 'en-us'
-->
<rdf:RDF
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns="http://purl.org/rss/1.0/">
<item>
<title>foo</title>
<dc:language>en-us</dc:language>
</item>
</rdf:RDF>