From ba3d2b5743de9c3a91d79d34cdf81aa1e835f995 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Sat, 16 Mar 2024 15:43:34 +0100 Subject: shared_searches: added missing translations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- app/views/shared_searches/show.html.erb | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'app/views') diff --git a/app/views/shared_searches/show.html.erb b/app/views/shared_searches/show.html.erb index 1430529..bea5dc6 100644 --- a/app/views/shared_searches/show.html.erb +++ b/app/views/shared_searches/show.html.erb @@ -6,13 +6,13 @@ <% if res.is_a? Thing %> <%= res.title %>
-
Authors: <%= authors_or_editors(res) %>
-
Publisher: <%= string_maybe(res.publisher) %>
-
Year: <%= string_maybe(res.year) %>
-
Kind: <%= res.kind %>
-
Note: <%= string_maybe(res.note) %>
+
<%= I18n.t('activerecord.attributes.thing.authors') %>: <%= authors_or_editors(res) %>
+
<%= I18n.t('activerecord.attributes.thing.publisher') %>: <%= string_maybe(res.publisher) %>
+
<%= I18n.t('activerecord.attributes.thing.year') %>: <%= string_maybe(res.year) %>
+
<%= I18n.t('activerecord.attributes.thing.kind') %>: <%= I18n.t("things.kind.#{res.kind}") %>
+
<%= I18n.t('activerecord.attributes.thing.note') %>: <%= string_maybe(res.note) %>
<% unless res.url.blank? %> -
URL: <%= res.url %>
+
<%= I18n.t('activerecord.attributes.thing.url') %>: <%= res.url %>
<% end %>
<% else %> -- cgit v1.2.3