dc:language support
This commit is contained in:
parent
1a4760a348
commit
db79be60cc
@ -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)
|
||||
|
||||
|
14
tests/data/reconstitute/dc_lang.xml
Normal file
14
tests/data/reconstitute/dc_lang.xml
Normal 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>
|
Loading…
x
Reference in New Issue
Block a user