<%= link_to @book.serie.name, @book.serie %>
@@ -34,7 +34,7 @@
<% end %>
- <%= "Language".pluralize(@book.languages.count) %>
+ <%= t(:book_lang, count: @book.languages.count) %>
<% @book.languages.each do |language| %>
@@ -43,26 +43,26 @@
- <%= "Tag".pluralize(@book.tags.count) %>
+ <%= t(:book_tag, count: @book.tags.count) %>
<% @book.tags.each do |tag| %>
<%= tag.name %>
<% end %>
-
Details
+
<%= t :book_detail %>
<% if @book.pubdate %>
- - Publishing date <%= @book.pubdate.to_formatted_s(:date) %>
+ - <%= t :book_pubdate %> <%= @book.pubdate.to_formatted_s(:date) %>
<% end %>
<% if @book.publisher %>
- - Publisher <%= @book.publisher.name %>
+ - <%= t :book_publisher %> <%= @book.publisher.name %>
<% end %>
<% if @book.has_cover? %>
- <%= image_tag(cover_book_path(@book), alt: "No cover", class: "img-responsive img-rounded") %>
+ <%= image_tag(cover_book_path(@book), alt: t(:no_cover), class: "img-responsive img-rounded") %>
<% end %>
diff --git a/app/views/layouts/_dl_link.html.erb b/app/views/layouts/_dl_link.html.erb
index 3375040..17275ba 100644
--- a/app/views/layouts/_dl_link.html.erb
+++ b/app/views/layouts/_dl_link.html.erb
@@ -4,7 +4,7 @@ btn_class = is_single ? "btn btn-success" : nil
%>
<%= link_to book_data_path(id: d.book, data_format: d.format), class: btn_class do %>
<% if is_single %>
-