FIX: RSS Language should use a dash/hypen instead of underscore

This commit is contained in:
cpradio 2017-01-14 14:04:17 -05:00
parent 5f08630c27
commit d0a3dc10d8
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@
<title><%= @title %></title> <title><%= @title %></title>
<link><%= @link %></link> <link><%= @link %></link>
<description><%= @description %></description> <description><%= @description %></description>
<% if lang %><language><%= lang%></language><% end %> <% if lang %><language><%= lang.sub('_', '-')%></language><% end %>
<% if @topic_list.topics && @topic_list.topics.length > 0 %> <% if @topic_list.topics && @topic_list.topics.length > 0 %>
<lastBuildDate><%= @topic_list.topics.first.created_at.rfc2822 %></lastBuildDate> <lastBuildDate><%= @topic_list.topics.first.created_at.rfc2822 %></lastBuildDate>
<atom:link href="<%= @atom_link %>" rel="self" type="application/rss+xml" /> <atom:link href="<%= @atom_link %>" rel="self" type="application/rss+xml" />

View File

@ -7,7 +7,7 @@
<title><%= @topic_view.title %></title> <title><%= @topic_view.title %></title>
<link><%= topic_url %></link> <link><%= topic_url %></link>
<description><%= @topic_view.posts.first.raw %></description> <description><%= @topic_view.posts.first.raw %></description>
<%= "<language>#{lang}</language>" if lang %> <% if lang %><language><%= lang.sub('_', '-')%></language><% end %>
<lastBuildDate><%= @topic_view.topic.bumped_at.rfc2822 %></lastBuildDate> <lastBuildDate><%= @topic_view.topic.bumped_at.rfc2822 %></lastBuildDate>
<category><%= @topic_view.topic.category.name %></category> <category><%= @topic_view.topic.category.name %></category>
<atom:link href="<%= topic_url %>.rss" rel="self" type="application/rss+xml" /> <atom:link href="<%= topic_url %>.rss" rel="self" type="application/rss+xml" />