diff --git a/app/controllers/personal_books_controller.rb b/app/controllers/personal_books_controller.rb index fb2fd14..316ad4b 100644 --- a/app/controllers/personal_books_controller.rb +++ b/app/controllers/personal_books_controller.rb @@ -67,7 +67,7 @@ class PersonalBooksController < ApplicationController when "author_type" t << {"value" => (book.book_author_types.collect{|bat| bat.title}.join(", ") rescue "")} when "language" - t << {"value" => (I18n.t("personal_book.#{book.language}") if !book.language.nil? rescue "")} + t << {"value" => (t("personal_book.#{book.language}") if !book.language.nil?} else t << {"value" => book.send(fs)} end