diff --git a/app/views/list/list.rss.erb b/app/views/list/list.rss.erb index 78193a8f0d7..d0f6c14957c 100644 --- a/app/views/list/list.rss.erb +++ b/app/views/list/list.rss.erb @@ -6,7 +6,7 @@ <%= @title %> <%= @link %> <%= @description %> - <% if lang %><%= lang%><% end %> + <% if lang %><%= lang.sub('_', '-')%><% end %> <% if @topic_list.topics && @topic_list.topics.length > 0 %> <%= @topic_list.topics.first.created_at.rfc2822 %> diff --git a/app/views/topics/show.rss.erb b/app/views/topics/show.rss.erb index aa7d08c4a85..a7efff93641 100644 --- a/app/views/topics/show.rss.erb +++ b/app/views/topics/show.rss.erb @@ -7,7 +7,7 @@ <%= @topic_view.title %> <%= topic_url %> <%= @topic_view.posts.first.raw %> - <%= "#{lang}" if lang %> + <% if lang %><%= lang.sub('_', '-')%><% end %> <%= @topic_view.topic.bumped_at.rfc2822 %> <%= @topic_view.topic.category.name %>