diff --git a/app/controllers/authors_controller.rb b/app/controllers/authors_controller.rb index 8b27163..aad3393 100644 --- a/app/controllers/authors_controller.rb +++ b/app/controllers/authors_controller.rb @@ -19,7 +19,7 @@ class AuthorsController < ApplicationController @authors = Author.where(query_filter) .order(:sort) .paginate(pagination) - @title = "Authors" + @title = t(:authors) respond_to do |format| format.html format.js diff --git a/app/controllers/books_controller.rb b/app/controllers/books_controller.rb index 2274f1b..52966cf 100644 --- a/app/controllers/books_controller.rb +++ b/app/controllers/books_controller.rb @@ -14,7 +14,7 @@ class BooksController < ApplicationController .includes(:authors, :serie) .references(:authors, :serie) .order(sort_col) .paginate(pagination) - @title = "Books" + @title = t(:books) respond_to do |format| format.html format.js diff --git a/app/controllers/static_pages_controller.rb b/app/controllers/static_pages_controller.rb index 5cb4c92..38b73f2 100644 --- a/app/controllers/static_pages_controller.rb +++ b/app/controllers/static_pages_controller.rb @@ -1,10 +1,10 @@ class StaticPagesController < ApplicationController def home - @title = "Home" + @title = t(:home) @books_count = Book.count end def about - @title = "About" + @title = t(:about) end end diff --git a/config/locales/en.yml b/config/locales/en.yml index 7528ec3..476433d 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -50,3 +50,7 @@ en: author_coauthor: one: "Co-Author" other: "Co-Authors" + will_paginate: + previous_label: "← Previous" + next_label: "Next →" + page_gap: "…" diff --git a/config/locales/fr.yml b/config/locales/fr.yml index 937c772..047e267 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -50,3 +50,7 @@ fr: author_coauthor: one: "Co-Auteur" other: "Co-Auteurs" + will_paginate: + previous_label: "← Précédent" + next_label: "Suivant →" + page_gap: "…"