From f9f6108f304641e64c13ebe42e0b9e7ae18ffaac Mon Sep 17 00:00:00 2001 From: chiu Date: Wed, 14 Aug 2019 16:01:55 +0800 Subject: [PATCH] Update book.rb fix language error translation --- app/models/book.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/book.rb b/app/models/book.rb index 5d228da..0b4ba9b 100644 --- a/app/models/book.rb +++ b/app/models/book.rb @@ -164,7 +164,7 @@ class Book end value = value.join(" / ") when "language" - value = I18n.t("personal_book.#{self.language}") if !self.language.nil? rescue "" + value = I18n.t("#{self.language}") if !self.language.nil? rescue "" when "publish_date", "publication_date" value = self.send(field).to_date.strftime("%Y-%m-%d") rescue nil when "file"