change tool name translation

This commit is contained in:
BOHUNG 2020-03-18 19:03:51 +08:00
parent 17f3fe623d
commit 1561620c83
3 changed files with 6 additions and 9 deletions

View File

@ -6,9 +6,6 @@ class CancerpredictsController < ApplicationController
@app_title = "cancerpredict"
end
def calculate
uid = OrbitHelper.params[:uid] rescue ""
tags = OrbitHelper.widget_tags
categories = OrbitHelper.widget_categories || []
create_first_field
#begin
if params['header'].to_i == 1
@ -132,13 +129,13 @@ class CancerpredictsController < ApplicationController
categories = OrbitHelper.widget_categories || []
end
def create_first_field
if Cancerpredictfields.where("title"=>(@app_title + "_back")).take_while{true}.count == 0
if Cancerpredictfields.where("title"=>(@app_title + "_back")).count == 0
@form_to_show = Cancerpredictfields.new()
@form_to_show.title = @app_title +"_back"
@form_to_show.save
end
@form_to_show
if Cancerpredictfields.where("title"=>@app_title).take_while{true}.count == 0
if Cancerpredictfields.where("title"=>@app_title).count == 0
@form_to_show = Cancerpredictfields.new()
@form_to_show.title=@app_title
@form_to_show.save

View File

@ -1,8 +1,8 @@
en:
module_name:
cancerpredict: Predict Breast Cancer Tool
cancerpredict: Cardiovascular Disease Survival Forecast in Taiwan Tool
cancerpredict:
cancerpredict: adjust the predict breast cancer tool
cancerpredict: Adjust Cardiovascular Disease Survival Forecast in Taiwan Tool
submitResult: see submit results of the users
result_is_right: Is therapy choices in the right hand side of result block?
text_descibe: text descibe

View File

@ -1,8 +1,8 @@
zh_tw:
module_name:
cancerpredict: 乳癌預測工具
cancerpredict: 臺灣心血管疾病存活預測工具
cancerpredict:
cancerpredict: 乳癌預測工具調整
cancerpredict: 臺灣心血管疾病存活預測工具調整
submitResult: 查看用戶繳交表單結果
result_is_right: 治療選項在結果的右邊?
text_descibe: 文字說明