translation
This commit is contained in:
parent
4010fdd183
commit
d2a8faad93
@ -19,7 +19,7 @@ class AuthorsController < ApplicationController
|
|||||||
@authors = Author.where(query_filter)
|
@authors = Author.where(query_filter)
|
||||||
.order(:sort)
|
.order(:sort)
|
||||||
.paginate(pagination)
|
.paginate(pagination)
|
||||||
@title = "Authors"
|
@title = t(:authors)
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html
|
format.html
|
||||||
format.js
|
format.js
|
||||||
|
@ -14,7 +14,7 @@ class BooksController < ApplicationController
|
|||||||
.includes(:authors, :serie) .references(:authors, :serie)
|
.includes(:authors, :serie) .references(:authors, :serie)
|
||||||
.order(sort_col)
|
.order(sort_col)
|
||||||
.paginate(pagination)
|
.paginate(pagination)
|
||||||
@title = "Books"
|
@title = t(:books)
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html
|
format.html
|
||||||
format.js
|
format.js
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
class StaticPagesController < ApplicationController
|
class StaticPagesController < ApplicationController
|
||||||
def home
|
def home
|
||||||
@title = "Home"
|
@title = t(:home)
|
||||||
@books_count = Book.count
|
@books_count = Book.count
|
||||||
end
|
end
|
||||||
|
|
||||||
def about
|
def about
|
||||||
@title = "About"
|
@title = t(:about)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -50,3 +50,7 @@ en:
|
|||||||
author_coauthor:
|
author_coauthor:
|
||||||
one: "Co-Author"
|
one: "Co-Author"
|
||||||
other: "Co-Authors"
|
other: "Co-Authors"
|
||||||
|
will_paginate:
|
||||||
|
previous_label: "← Previous"
|
||||||
|
next_label: "Next →"
|
||||||
|
page_gap: "…"
|
||||||
|
@ -50,3 +50,7 @@ fr:
|
|||||||
author_coauthor:
|
author_coauthor:
|
||||||
one: "Co-Auteur"
|
one: "Co-Auteur"
|
||||||
other: "Co-Auteurs"
|
other: "Co-Auteurs"
|
||||||
|
will_paginate:
|
||||||
|
previous_label: "← Précédent"
|
||||||
|
next_label: "Suivant →"
|
||||||
|
page_gap: "…"
|
||||||
|
Loading…
Reference in New Issue
Block a user