RDF language unsettable...
|
|
By merlin , Section Code [] Posted on Mon Apr 14, 2003 at 12:00:00 PM PST
|
|
There was a lack of flexibility in Scoop 0.9 on RDF language. Specificly, Scoop 0.9 don't have a way to set the language in the RDF feed.
|
I have several scoop sites, some in english, some in portuguese, my native language. I created the RDF feeds and everything looked nice, til I sent the RDF URL to a friend, that opened the URL and seen this:
<dc:language>en-us</dc:language>
But my site is portuguese, and everything there is written in portuguese. I looked everywhere on scoop site controls, in blocks and boxs and no where I could set this.
As they say... RTFS (Read The Fine Sources)... and there was in Cron.pm, line 500:
language => 'en-us'
I propose, and did in my version, that this is changed to:
language => $S->{UI}->{VARS}->{rdf_language} || 'en-us'
This way, a normal scoop site that don't have this var will use the default 'en-us', and any other language site have to create the rdf_language var and set it to anything they want.
|
|
Story Views
|
32 Scoop users have viewed this story.
|
|