Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #981 Add Japanese translation #1045

Merged
merged 6 commits into from
Apr 8, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/components/controls/language.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ class Language extends React.Component {
{value: "ru", label: "Русский"},
{value: "lt", label: "Lietuvių"},
{value: "pt", label: "Português"},
{value: "fr", label: "Français"}
{value: "fr", label: "Français"},
{value: "ja", label: "日本語"},
];
return languages;
}
Expand Down
6 changes: 4 additions & 2 deletions src/components/tree/infoPanels/hover.js
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,9 @@ const Mutations = ({node, t}) => {
const nucLen = nucs.length; // number of mutations that exist without N/-

let m = nucs.slice(0, Math.min(nDisplay, nucLen)).join(", ");
m += nucLen > nDisplay ? " + " + (nucLen - nDisplay) + " " + t("more") : "";
if (nucLen > nDisplay) {
m += " + " + t("{{x}} more", {x: nucLen - nDisplay});
}

if (nucLen !== 0) {
elements.push(<InfoLine name={t("Nucleotide mutations")+":"} value={m} key="nuc"/>);
Expand Down Expand Up @@ -201,7 +203,7 @@ const Mutations = ({node, t}) => {
if (idx < nProtsToDisplay) {
let x = prot + ":\u00A0\u00A0" + mutationsToDisplay[prot].slice(0, Math.min(nDisplay, mutationsToDisplay[prot].length)).join(", ");
if (mutationsToDisplay[prot].length > nDisplay) {
x += " + " + (mutationsToDisplay[prot].length - nDisplay) + " " + t("more");
x += " + " + t("{{x}} more", {x: mutationsToDisplay[prot].length - nDisplay});
}
mutationsToRender.push(x);
} else if (idx === nProtsToDisplay) {
Expand Down
2 changes: 1 addition & 1 deletion src/locales/de/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"AA mutations": "AA-Mutationen",
"protein mutations truncated": "Protein-Mutationen entfernt",
"Gaps": "Lücken",
"more": "mehr",
"{{x}} more": "{{x}} mehr",
"No nucleotide mutations": "Keine Nukleotid-Mutationen",
"No amino acid mutations": "Keine Aminosäure-Mutationen",
"Divergence": "Divergenz",
Expand Down
2 changes: 1 addition & 1 deletion src/locales/en/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"AA mutations": "AA mutations",
"protein mutations truncated": "protein mutations truncated",
"Gaps": "Gaps",
"more": "more",
"{{x}} more": "{{x}} more",
"No nucleotide mutations": "No nucleotide mutations",
"No amino acid mutations": "No amino acid mutations",
"Divergence": "Divergence",
Expand Down
2 changes: 1 addition & 1 deletion src/locales/es/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"AA mutations": "Mutaciones de AA",
"protein mutations truncated": "mutaciones proteicas truncadas",
"Gaps": "Huecos",
"more": "mas",
"{{x}} more": "{{x}} mas",
"No nucleotide mutations": "No mutaciones de nucleótidos",
"No amino acid mutations": "No mutaciones de aminoácidos",
"Divergence": "Divergencia",
Expand Down
2 changes: 1 addition & 1 deletion src/locales/fr/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"AA mutations": "Mutations de AA",
"protein mutations truncated": "mutations protéiques tronquées",
"Gaps": "Lacunes",
"more": "plus",
"{{x}} more": "{{x}} plus",
"No nucleotide mutations": "Aucune mutation nucléotidique",
"No amino acid mutations": "Aucune mutation d'acides aminés",
"Divergence": "Divergence",
Expand Down
3 changes: 3 additions & 0 deletions src/locales/ja/language.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"name": "日本語"
}
33 changes: 33 additions & 0 deletions src/locales/ja/sidebar.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"Dataset": "データセット",
"Date Range": "データ範囲",
"Color By": "色分け",
"Tree Options": "ツリーのオプション",
"Layout": "レイアウト",
"rectangular": "矩形",
"radial": "放射状",
"unrooted": "無根",
"clock": "時系列",
"Branch Length": "枝の長さ",
"time": "時間",
"divergence": "分岐",
"Show confidence intervals": "信頼区間を表示",
"Branch Labels": "枝のラベル",
"Search Strains": "系統を検索",
"Second Tree": "第二ツリー",
"Map Options": "地図のオプション",
"Geographic resolution": "地域分けの単位",
"Animation Speed": "アニメーション速度",
"Loop animation": "アニメーションを繰り返し",
"Animate cumulative history": "累積の履歴をアニメーション",
"Panel Options": "パネルのオプション",
"Show tree": "ツリーを表示",
"Show map": "地図を表示",
"Show entropy": "エントロピーを表示",
"Language": "言語",
"Slow": "遅い",
"Medium": "普通",
"Fast": "速い",
"full": "完全",
"grid": "グリッド"
}
91 changes: 91 additions & 0 deletions src/locales/ja/translation.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
{
"__Header//Byline__": "########################################",
"Maintained by": "管理者",
"using data from": "使用データ",
"Built with": "使用ビルド",


"__Header//Info__": "########################################",
"Showing {{x}} of {{y}} genomes": "{{y}} 中 {{x}} のゲノムを表示中",
"Showing {{x}} of {{y}} genomes sampled between {{from}} and {{to}}": "{{y}} 中 {{x}} の {{from}} から {{to}} にサンプルされたゲノムを表示中",
"Comprising": "次を含む",
"Animation in progress": "アニメーション中",
"Filtered to": "フィルタ条件",


"__Download Modal__": "########################################",
"click outside this box to return to the app": "元の画面に戻るにはこのポップアップの外側をクリック",
"last updated": "最終更新",
"A full list of sequence authors is available via the TSV files below": "シーケンス作成者の完全な一覧は、TSVファイルとしてもダウンロードできます",
"Data usage policy": "データ利用ポリシー",
"Please cite the authors who contributed genomic data (where relevant), as well as": "次の貢献者と、(該当する場合)遺伝子データを貢献した作者を明記すること",
"Download data": "データをダウンロード",
"Data usage part 1": "このデータは、重要な病原体の分析結果を迅速に広めるために提供されている。出版されていないデータが生成者の許可のもと含まれているが、このことは生成者の出版権利に影響しない。",
"Data usage part 2": "もしダウンロードしたデータをもとにさらに研究を行う予定であれば、(TSVファイルに含まれる)該当する作者に連絡のこと。系統発生などの派生したデータは下記からダウンロード可能 - 必要であれば該当する作者に連絡のこと。",

"__Entropy Panel__": "########################################",
"Diversity": "多様性",
"entropy": "エントロピー",
"events": "イベント",
"Codon {{codon}} in protein {{protein}}": "タンパク質 {{protein}} に含まれるコドン {{codon}}",
"Nucleotide {{nuc}}": "ヌクレオチド {{nuc}}",
"Nuc positions {{a}} to {{b}}": "ヌクレオチド位置 {{a}} から {{b}}",
"Num mutations": "変異数",
"Negative strand": "負のらせん",
"Positive strand": "正のらせん",
"Click to color tree & map": "クリックしてツリーと地図を色分けする",


"__Footer__": "########################################",
"Filter by {{filterTitle}}": "{{filterTitle}} でフィルタ",
"Data updated": "データ更新",


"__Map panel__": "########################################",
"Transmissions": "伝搬",
"Geography": "地理",
"reset zoom": "標準倍率",
"Reset": "リセット",
"Play": "再生",
"Pause": "一時停止",


"__Tree (Phylogeny) panel__": "########################################",
"Phylogeny": "発生系統",
"Reset Layout": "レイアウトをリセット",
"Click on tip to display more info": "詳細を表示するには吹き出しをクリック",
"Click to zoom into clade": "クリックして分岐群へズーム",
"Click to zoom out to parent clade": "親の分岐群にズームアウトするにはクリック",
"Branch leading to": "枝分かれ先",
"Number of descendants": "子孫数",
"Nucleotide mutations": "ヌクレオチド変異",
"AA mutations": "AA 変異",
"protein mutations truncated": "タンパク質変異は省略された",
"Gaps": "間隔",
"{{x}} more": "他 {{x}}",
"No nucleotide mutations": "ヌクレオチド変異なし",
"No amino acid mutations": "アミノ酸変異なし",
"Divergence": "分岐",
"Date": "日付",
"Collection date": "収集日",
"Inferred collection date": "推定収集日",
"Inferred Date": "推定日",
"Date Confidence Interval": "日付の信頼区間",
"Vaccine selected": "選択されたワクチン",
"Vaccine start date": "ワクチン開始日",
"Vaccine end date": "ワクチン終了日",
"Serum strain": "血清株",
"Click outside this box to go back to the tree": "ツリーに戻るにはこのボックスの外側をクリック",
"Authors": "作成者",
"Title": "タイトル",
"Journal": "ジャーナル",


"__Frequencies panel__": "########################################",
"Frequencies": "頻度",
"colored by": "色分け条件",
"Projection": "射影",
"Time point": "基準時間",
"Frequency": "頻度",
"Projected frequency": "射影された頻度"
}
2 changes: 1 addition & 1 deletion src/locales/lt/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"AA mutations": "Amino rūgščių mutacijos",
"protein mutations truncated": "baltymo mutacijos sutrumpintos",
"Gaps": "Tarpai",
"more": "daugiau",
"{{x}} more": "{{x}} daugiau",
"No nucleotide mutations": "Nėra nukelotidų mutacijų",
"No amino acid mutations": "Nėra amino rūgščių mutacijų",
"Divergence": "Skirtumas",
Expand Down
2 changes: 1 addition & 1 deletion src/locales/pt/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"AA mutations": "Mutações de AA",
"protein mutations truncated": "mutações proteicas truncadas",
"Gaps": "Lacunas",
"more": "mais",
"{{x}} more": "{{x}} mais",
"No nucleotide mutations": "Sem mutações nucleotídicas",
"No amino acid mutations": "Sem mutações de aminoácidos",
"Divergence": "Divergência",
Expand Down
2 changes: 1 addition & 1 deletion src/locales/ru/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
"AA mutations": "Мутации Аминокислот",
"protein mutations truncated": "мутации белков отображены неполностью",
"Gaps": "Пробелы",
"more": "больше",
"{{x}} more": "{{x}} больше",
"No nucleotide mutations": "Нет мутаций нуклеотидов",
"No amino acid mutations": "Нет мутаций аминокислот",
"Divergence": "Дивергенция",
Expand Down