translation

This commit is contained in:
Meutel 2015-08-14 10:10:03 +02:00
parent 4010fdd183
commit d2a8faad93
5 changed files with 12 additions and 4 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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: "&#8592; Previous"
next_label: "Next &#8594;"
page_gap: "&hellip;"

View File

@ -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: "&#8592; Précédent"
next_label: "Suivant &#8594;"
page_gap: "&hellip;"