From b4e220918e1e7fd2db8469fa7c38d7c94b429c67 Mon Sep 17 00:00:00 2001 From: chiu Date: Mon, 19 Aug 2019 14:21:18 +0800 Subject: [PATCH] =?UTF-8?q?Update=20personal=5Fjournals=5Fcontroller.rb=20?= =?UTF-8?q?=E6=94=B9=E6=90=9C=E5=B0=8B=E6=A1=86=E7=82=BA=E5=8F=AF=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E5=A4=9A=E5=9C=8B=E8=AA=9E=E8=A8=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/personal_journals_controller.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/personal_journals_controller.rb b/app/controllers/personal_journals_controller.rb index 5a79635..e9042bf 100644 --- a/app/controllers/personal_journals_controller.rb +++ b/app/controllers/personal_journals_controller.rb @@ -96,13 +96,13 @@ class PersonalJournalsController < 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_journal.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_journal.search_class") + search_text = t("word_to_search") { "journal_papers" => journal_paper_list, "headers" => headers,