aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2024-03-16 15:43:34 +0100
committerMiquel Sabaté Solà <msabate@suse.com>2024-03-16 15:51:06 +0100
commitba3d2b5743de9c3a91d79d34cdf81aa1e835f995 (patch)
treeb593f404ee210fb65ffa157622bfc28bf11aa76d /app
parentc50a8c64583710761c36ee4e6e4553c27508725a (diff)
downloadoperum-ba3d2b5743de9c3a91d79d34cdf81aa1e835f995.tar.gz
operum-ba3d2b5743de9c3a91d79d34cdf81aa1e835f995.zip
shared_searches: added missing translations
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to 'app')
-rw-r--r--app/views/shared_searches/show.html.erb12
1 files changed, 6 insertions, 6 deletions
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 %>
<summary><%= res.title %></summary>
<div class="details-flex">
- <div><span><b>Authors</b>: <%= authors_or_editors(res) %></span></div>
- <div><span><b>Publisher</b>: <%= string_maybe(res.publisher) %></span></div>
- <div><span><b>Year</b>: <%= string_maybe(res.year) %></span></div>
- <div><span><b>Kind</b>: <%= res.kind %></span></div>
- <div><span><b>Note</b>: <%= string_maybe(res.note) %></span></div>
+ <div><span><b><%= I18n.t('activerecord.attributes.thing.authors') %></b>: <%= authors_or_editors(res) %></span></div>
+ <div><span><b><%= I18n.t('activerecord.attributes.thing.publisher') %></b>: <%= string_maybe(res.publisher) %></span></div>
+ <div><span><b><%= I18n.t('activerecord.attributes.thing.year') %></b>: <%= string_maybe(res.year) %></span></div>
+ <div><span><b><%= I18n.t('activerecord.attributes.thing.kind') %></b>: <%= I18n.t("things.kind.#{res.kind}") %></span></div>
+ <div><span><b><%= I18n.t('activerecord.attributes.thing.note') %></b>: <%= string_maybe(res.note) %></span></div>
<% unless res.url.blank? %>
- <div><span><b>URL</b>: <a href="<%= res.url %>" target="_blank"><%= res.url %></a></span></div>
+ <div><span><b><%= I18n.t('activerecord.attributes.thing.url') %></b>: <a href="<%= res.url %>" target="_blank"><%= res.url %></a></span></div>
<% end %>
</div>
<% else %>