From ad94c172b812050007410e6dc1cae2ae1043ff90 Mon Sep 17 00:00:00 2001 From: Jochen Topf Date: Sun, 14 Dec 2014 17:30:51 +0100 Subject: Use translations for source names in /sources Fixes #103. --- web/views/sources.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/views/sources.erb b/web/views/sources.erb index a08a864..de202aa 100644 --- a/web/views/sources.erb +++ b/web/views/sources.erb @@ -12,7 +12,7 @@

<%= h(t.pages.sources.list.intro) %>

<% Source.visible.each_with_index do |source, n| c = (n%2!=0) ? ' even' : '' %> -

<%= h(source.name) %>

+

<%= h(t.sources[source.id].name) %>

<%= t.pages.sources.description[source.id] %> <% end %> @@ -26,7 +26,7 @@ <% Source.visible.each_with_index do |source, n| c = (n%2!=0) ? ' even' : '' %> -   <%= h(source.name) %> +   <%= h(t.sources[source.id].name) %> <%= h(source.data_until) %> UTC <%= h(source.update_start.to_s + ' ' + t.pages.sources.to + ' ' + source.update_end.to_s) %> UTC -- cgit v1.2.3