From 7f4b994670c962867535f8430000d51606025aaf Mon Sep 17 00:00:00 2001 From: chiu Date: Mon, 19 Aug 2019 16:32:10 +0800 Subject: [PATCH] =?UTF-8?q?Update=20personal=5Fbooks=5Fcontroller.rb=20?= =?UTF-8?q?=E6=90=9C=E5=B0=8B=E6=94=B9=E7=82=BA=E5=A4=9A=E8=AA=9E=E8=A8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/personal_books_controller.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/personal_books_controller.rb b/app/controllers/personal_books_controller.rb index 8e8925b..c0d2ca9 100644 --- a/app/controllers/personal_books_controller.rb +++ b/app/controllers/personal_books_controller.rb @@ -97,13 +97,13 @@ class PersonalBooksController < ApplicationController choice_select=choice_value.map{|iter| iter==params[:selectbox] ? "selected" : ""} choice_select=choice_select.map{|value| {"choice_select" => value}} choice_value=choice_value.map{|value| {"choice_value" => value}} - choice_default = params[:locale]!='en' ? "——選取分類——" : "——select class——" + choice_default = t("personal_book.select_class") choice_show.unshift(choice_default) choice_show=choice_show.map{|value| {"choice_show" => value}} choice=choice_value.zip(choice_show,choice_select) choice=choice.map{|value| value.inject:merge} - select_text = params[:locale]!='en' ? "搜尋類別:" : "search class:" - search_text = params[:locale]!='en' ? "關鍵字搜尋:" : "word to search:" + select_text = t("personal_book.search_class") + search_text = t("personal_book.word_to_search") { "book_list" => book_list, "extras" => {"widget-title" => t("module_name.book"),