Skip to content

Commit 2b2f914

Browse files
authored
Japanese resources update (#595)
* * Add Japanese resources * Add one i18n resources for the checkbox of selecting log scale
1 parent 984a304 commit 2b2f914

File tree

3 files changed

+22
-15
lines changed

3 files changed

+22
-15
lines changed

src/penn_chime/locales/en.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ en:
8282
presentation-social-distancing-implemented: "Social distancing measures have been implemented"
8383
presentation-severity-parameters: "Severity Parameters"
8484
presentation-display-parameters: "Display Parameters"
85+
presentation-logarithmic-scale: "Use logarithmic scale on charts instead of linear scale."
8586
presentation-subscribe: "Subscribe"
8687
presentation-enter-email: "Enter Email"
8788
presentation-enter-name: "Enter Name"

src/penn_chime/locales/ja.yml

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ ja:
33
app-new-admissions-text: "**日毎の**COVID-19関連新規入院患者数予測"
44
app-admitted-patients-title: "累計入院患者数"
55
app-admitted-patients-text: "入院と退院を考慮したCOVID-19患者の予測**累計患者数**"
6-
app-PPE-title: "個人用防護具 (PPE) 計算機"
7-
app-PPE-text: "This Excel-based calculator uses hospitalized/ICU/ventilated censuses and admissions projections from any model to forecast PPE usage."
8-
app-PPE-text2: "To use CHIME’s projections based on your own parameters, set the parameters in the sidebar, then download this file:"
9-
app-PPE-screenshot: "ツールのスクリーンショットを表示"
6+
app-PPE-title: "個人用防護具 (PPE) 予測計算機 (注:現状英語版のみ)"
7+
app-PPE-text: "このExcelベースの計算機は、個人用防護具の将来必要数を予測するために、あらゆるモデルの入院患者/集中治療患者/人工呼吸患者の累計数と新規数の予測を用います。"
8+
app-PPE-text2: "独自のパラメータに基づいたCHIMEの予測を用いるために、左サイドバー内でそれぞれのパラメータを設定し、その後にExcelファイルをダウンロードしてください。"
9+
app-PPE-screenshot: "計算機のスクリーンショットを表示"
1010
app-PPE-documentation: |+
11-
Refer to our [user documentation]({link_to_docs}) or
12-
watch [a quick tutorial]({link_to_tutorial}) for instructions on
13-
how to incorporate these projections--or projections from other models--into the calculator.
11+
これらの予測、あるいは他のモデルからの予測を計算機に組み込む方法については、
12+
[ユーザドキュメント]({link_to_docs})もしくは[チュートリアル動画]({link_to_tutorial})での
13+
説明を確認してください。
1414
app-SIR-title: "感受性保持者、感染者と回復者"
1515
app-SIR-text: "与えられた時間範囲での、病院の担当範囲領域における感受性保持者、感染者と回復者の人数"
1616
charts-date: "日付"
@@ -22,18 +22,23 @@ ja:
2222
<link rel="stylesheet" href="https://www1.pennmedicine.org/styles/shared/penn-medicine-header.css">
2323
2424
<div class="penn-medicine-header__content">
25-
<a href="https://www.pennmedicine.org" class="penn-medicine-header__logo"
26-
title="Penn Medicineのホームページへ行く">Penn Medicine</a>
27-
<a id="title" class="penn-medicine-header__title">COVID-19における伝染病の病院影響モデル</a>
25+
<h3>
26+
<a href="https://www.pennmedicine.org" class="penn-medicine-header__logo"
27+
title="Penn Medicineのホームページへ行く">Penn Medicine</a>
28+
<a id="title" class="penn-medicine-header__title">COVID-19における伝染病の病院影響モデル (CHIME)</a>
29+
</h3>
2830
</div>
31+
<br />
2932
presentation-notice: |+
30-
**重要**: COVID-19の感染、伝播、
31-
社会的遠距離戦略の厳密な有効性については、まだ多くの不確実な点があります。
32-
この簡略化されたアウトブレイク進行モデルを用いた長期予測は、細心の注意を払って取り扱ってください。
33+
34+
**重要**: CHIMEは、アウトブレイクの進行に関する、短期予測に限定された修正[SIR](https://mathworld.wolfram.com/SIRModel.html)モデルです。
35+
これは、地域の感染がピークに達するより以前の期間にのみ適用でき、有効に社会的距離戦略を保つための施策にのみ適用できます。
36+
Penn Medicineは、より多くのデータを活用し、感染のピーク以降での確率的予測を提供するために、[BayesCHIME](https://github.com/pennsignals/chime_sims/blob/master/README.md)を鋭意開発中です。
3337
presentation-developed-by: |+
3438
このツールはペンシルバニア州立大学の医療部門であるPenn Medicineの、[予測医療チーム](http://predictivehealthcare.pennmedicine.org/)によって、
3539
病院や公衆衛生担当者の収容能力把握を支援するために開発されました。
3640
地域の状況に応じたデータにカスタマイズするには、「[CHIMEの使い方]({docs_url})」をご覧ください。
41+
個人用防護具 (PPE) 予測計算機はペンシルバニア大学とPenn Medicineが共同で開発しています。
3742
presentation-estimated-number-of-infection: |+
3843
現在の予測感染者人数は**{total_infections:.0f}**人です。
3944
この結果は入院患者数(**{current_hosp}**)、患者の入院割合(**{hosp_rate:.0%}**)、地域の人口(**{S}**)および病院の患者シェア(**{market_share:.0%}**)を元に計算されています。
@@ -74,6 +79,7 @@ ja:
7479
presentation-social-distancing-implemented: "社会的距離戦略が導入済みの場合"
7580
presentation-severity-parameters: "深刻度パラメータ"
7681
presentation-display-parameters: "表示パラメータ"
82+
presentation-logarithmic-scale: "グラフ上で線形スケールでなく対数スケールを使う"
7783
presentation-subscribe: "購読"
7884
presentation-enter-email: "メールアドレス"
7985
presentation-enter-name: "名前"
@@ -88,7 +94,7 @@ ja:
8894
presentation-download: |+
8995
<a download="{filename}" href="data:file/csv;base64,{csv}">{filename} をダウンロード</a>
9096
presentation-excel-download: |+
91-
個人用防護具計算機のダウンロードはこちら: <a download="{filename}" href="data:file/xlsx;base64,{excel}">{filename}</a>.
97+
個人用防護具予測計算機のダウンロード: <a download="{filename}" href="data:file/xlsx;base64,{excel}">{filename}</a>.
9298
admits_hospitalized: "新規入院患者数"
9399
admits_icu: "新規集中治療患者数"
94100
admits_ventilated: "新規人工呼吸患者数"

src/penn_chime/view/st_display.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ def display_sidebar(st, d: Parameters) -> Parameters:
358358
max_y_axis = max_y_axis_input()
359359

360360
current_date = current_date_input()
361-
use_log_scale = st.sidebar.checkbox(label="Use logarithmic scale on charts instead of linear scale.", value=d.use_log_scale)
361+
use_log_scale = st.sidebar.checkbox(label=i18n.t("presentation-logarithmic-scale"), value=d.use_log_scale)
362362

363363
# Subscribe implementation
364364
subscribe(st_obj)

0 commit comments

Comments
 (0)