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)
.order(:sort)
.paginate(pagination)
@title = "Authors"
@title = t(:authors)
respond_to do |format|
format.html
format.js

View File

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

View File

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

View File

@ -50,3 +50,7 @@ en:
author_coauthor:
one: "Co-Author"
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:
one: "Co-Auteur"
other: "Co-Auteurs"
will_paginate:
previous_label: "&#8592; Précédent"
next_label: "Suivant &#8594;"
page_gap: "&hellip;"