translation
This commit is contained in:
parent
4010fdd183
commit
d2a8faad93
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -50,3 +50,7 @@ en:
|
||||
author_coauthor:
|
||||
one: "Co-Author"
|
||||
other: "Co-Authors"
|
||||
will_paginate:
|
||||
previous_label: "← Previous"
|
||||
next_label: "Next →"
|
||||
page_gap: "…"
|
||||
|
@ -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: "…"
|
||||
|
Loading…
Reference in New Issue
Block a user