Update book.rb

This commit is contained in:
chiu 2019-08-14 15:58:13 +08:00
parent 9cc10eaa64
commit 40f9361ea4
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ class Book
when "author_type"
pd_data << {"data_title" => (p.book_author_types.collect{|bat| bat.title}.join(", ") rescue "")}
when "language"
pd_data << {"data_title" => (I18n.t("personal_book.#{p.language}") if !p.language.nil? rescue "")}
pd_data << {"data_title" => (I18n.t("#{p.language}") if !p.language.nil? rescue "")}
else
pd_data << { "data_title" => p.send(t) }
end