diff options
author | Jochen Topf <jochen@topf.org> | 2014-12-14 17:30:51 +0100 |
---|---|---|
committer | Jochen Topf <jochen@topf.org> | 2014-12-14 17:30:51 +0100 |
commit | ad94c172b812050007410e6dc1cae2ae1043ff90 (patch) | |
tree | 0e6a2025063b777d1ad66fca50b89f5f1171f104 | |
parent | e3999c5e06a2c78100b0a6368b55752e3f067b8e (diff) | |
download | taginfo-ad94c172b812050007410e6dc1cae2ae1043ff90.tar taginfo-ad94c172b812050007410e6dc1cae2ae1043ff90.tar.gz |
Use translations for source names in /sources
Fixes #103.
-rw-r--r-- | web/views/sources.erb | 4 |
1 files 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 @@ <td class="box"> <p><%= h(t.pages.sources.list.intro) %></p> <% Source.visible.each_with_index do |source, n| c = (n%2!=0) ? ' even' : '' %> - <h2><img src="<%= source.imgurl(24) %>" width="24" height="24" alt=""/> <%= h(source.name) %></h2> + <h2><img src="<%= source.imgurl(24) %>" width="24" height="24" alt=""/> <%= h(t.sources[source.id].name) %></h2> <%= t.pages.sources.description[source.id] %> <% end %> </td> @@ -26,7 +26,7 @@ </tr> <% Source.visible.each_with_index do |source, n| c = (n%2!=0) ? ' even' : '' %> <tr> - <td class="<%= c %>"><img src="<%= source.imgurl(16) %>" width="16" height="16" alt=""/> <%= h(source.name) %> + <td class="<%= c %>"><img src="<%= source.imgurl(16) %>" width="16" height="16" alt=""/> <%= h(t.sources[source.id].name) %> <td class="tc<%= c %> nowrap"><%= h(source.data_until) %> UTC</td> <td class="tc<%= c %> nowrap"><%= h(source.update_start.to_s + ' ' + t.pages.sources.to + ' ' + source.update_end.to_s) %> UTC</td> </tr> |