diff --git a/app/views/authors/_authors.html.erb b/app/views/authors/_authors.html.erb
index 66b5806..4893ed3 100644
--- a/app/views/authors/_authors.html.erb
+++ b/app/views/authors/_authors.html.erb
@@ -1,4 +1,4 @@
-
<%= pluralize(@authors.count, "co-author") %>
+<%= t(:author_coauthor, count: @authors.count) %>
<% @authors.each do |a| %>
- <%= link_to a.name, a %>
diff --git a/app/views/authors/_index.html.erb b/app/views/authors/_index.html.erb
index b01423f..d424beb 100644
--- a/app/views/authors/_index.html.erb
+++ b/app/views/authors/_index.html.erb
@@ -3,8 +3,8 @@
<%= will_paginate class: "center" %>
- Name |
- Books |
+ <%= t :col_author_name %> |
+ <%= t :col_author_books %> |
<% @authors.each do |author| %>
diff --git a/app/views/authors/_titles.html.erb b/app/views/authors/_titles.html.erb
index fe12681..3cc23ba 100644
--- a/app/views/authors/_titles.html.erb
+++ b/app/views/authors/_titles.html.erb
@@ -1,4 +1,4 @@
-<%= pluralize(@books.count, "book") %>
+<%= t(:author_book, count: @books.count) %>
<% @books.each do |b| %>
- <%= link_to b.title, b %>
diff --git a/app/views/series/_index.html.erb b/app/views/series/_index.html.erb
index 85b6158..ef785e7 100644
--- a/app/views/series/_index.html.erb
+++ b/app/views/series/_index.html.erb
@@ -3,9 +3,9 @@
<%= will_paginate class: "center" %>
- Name |
- Authors |
- Books |
+ <%= t :col_serie_name %> |
+ <%= t :col_serie_authors %> |
+ <%= t :col_serie_books %> |
<% @series.each do |serie| %>
diff --git a/app/views/series/show.html.erb b/app/views/series/show.html.erb
index ebdf856..dd1b036 100644
--- a/app/views/series/show.html.erb
+++ b/app/views/series/show.html.erb
@@ -6,7 +6,7 @@
- <%= "Book".pluralize(@serie.books.count) %>
+ <%= t(:serie_book, count: @serie.books.count) %>
<% @serie.books.each do |book| %>
@@ -24,7 +24,7 @@ if authors
%>
- <%= "Author".pluralize(authors.count) %>
+ <%= t(:serie_author, count: authors.count) %>
<% authors.each do |author| %>
diff --git a/config/locales/en.yml b/config/locales/en.yml
index 5d7d0c3..7528ec3 100644
--- a/config/locales/en.yml
+++ b/config/locales/en.yml
@@ -13,6 +13,7 @@ en:
search: "Search"
search_ph: "Search for..."
per_page: "Items per page"
+ sort_by: "Sort by"
sort_by_date: "Date"
sort_by_name: "Name"
col_book_title: "Title"
@@ -32,3 +33,20 @@ en:
book_pubdate: "Publishing date"
book_publisher: "Publisher"
no_cover: "No cover"
+ col_serie_name: "Name"
+ col_serie_authors: "Authors"
+ col_serie_books: "Books"
+ serie_book:
+ one: "Book"
+ other: "Books"
+ serie_author:
+ one: "Author"
+ other: "Authors"
+ col_author_name: "Name"
+ col_author_books: "Books"
+ author_book:
+ one: "Book"
+ other: "Books"
+ author_coauthor:
+ one: "Co-Author"
+ other: "Co-Authors"
diff --git a/config/locales/fr.yml b/config/locales/fr.yml
index 0efc50d..937c772 100644
--- a/config/locales/fr.yml
+++ b/config/locales/fr.yml
@@ -33,3 +33,20 @@ fr:
book_pubdate: "Date de publication"
book_publisher: "Editeur"
no_cover: "Pas de couverture"
+ col_serie_name: "Nom"
+ col_serie_authors: "Auteurs"
+ col_serie_books: "Livres"
+ serie_book:
+ one: "Livre"
+ other: "Livres"
+ serie_author:
+ one: "Auteur"
+ other: "Auteurs"
+ col_author_name: "Nom"
+ col_author_books: "Livres"
+ author_book:
+ one: "Livre"
+ other: "Livres"
+ author_coauthor:
+ one: "Co-Auteur"
+ other: "Co-Auteurs"