Merge pull request #4653 from cpradio/rss-language-fix

FIX: RSS Language should use a dash/hypen instead of underscore
This commit is contained in:
Régis Hanol 2017-01-14 21:34:17 +01:00 committed by GitHub
commit f19b4d11bf
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@
<title><%= @title %></title>
<link><%= @link %></link>
<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 %>
<lastBuildDate><%= @topic_list.topics.first.created_at.rfc2822 %></lastBuildDate>
<atom:link href="<%= @atom_link %>" rel="self" type="application/rss+xml" />

View File

@ -7,7 +7,7 @@
<title><%= @topic_view.title %></title>
<link><%= topic_url %></link>
<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>
<category><%= @topic_view.topic.category.name %></category>
<atom:link href="<%= topic_url %>.rss" rel="self" type="application/rss+xml" />