From 76b2cbcd8212d5de6f4fcd516c8953aa6a38c06e Mon Sep 17 00:00:00 2001 From: sec2 Date: Wed, 29 Jun 2022 20:16:53 +0800 Subject: [PATCH 1/5] Update zh-tw.js Complete the dictionary part. --- lib/locales/zh-tw.js | 76 +++++++++++++++++++++++++++++++++++++++++--- 1 file changed, 71 insertions(+), 5 deletions(-) diff --git a/lib/locales/zh-tw.js b/lib/locales/zh-tw.js index ddfe24095a0..1af9c5f73a5 100644 --- a/lib/locales/zh-tw.js +++ b/lib/locales/zh-tw.js @@ -3,12 +3,78 @@ module.exports = { moduleType: 'locale', name: 'zh-TW', - dictionary: {}, + dictionary: { + 'Autoscale': '自動縮放', // components/modebar/buttons.js:139 + 'Box Select': '矩形選擇', // components/modebar/buttons.js:103 + 'Click to enter Colorscale title': '點擊以輸入色階標題', // plots/plots.js:437 + 'Click to enter Component A title': '點擊以輸入元件 A 標題', // plots/ternary/ternary.js:386 + 'Click to enter Component B title': '點擊以輸入元件 B 標題', // plots/ternary/ternary.js:400 + 'Click to enter Component C title': '點擊以輸入元件 C 標題', // plots/ternary/ternary.js:411 + 'Click to enter Plot title': '點擊以輸入繪圖標題', // plot_api/plot_api.js:579 + 'Click to enter X axis title': '點擊以輸入 X 軸標題', // plots/plots.js:435 + 'Click to enter Y axis title': '點擊以輸入 Y 軸標題', // plots/plots.js:436 + 'Compare data on hover': '滑鼠懸停時比較資料', // components/modebar/buttons.js:167 + 'Double-click on legend to isolate one trace': '雙擊圖例以隔離單一軌跡', // components/legend/handle_click.js:90 + 'Double-click to zoom back out': '雙擊回復縮放', // plots/cartesian/dragbox.js:299 + 'Download plot as a png': '下載繪圖為 PNG 圖檔', // components/modebar/buttons.js:52 + 'Download plot': '下載繪圖', // components/modebar/buttons.js:53 + 'Edit in Chart Studio': '於 Chart Studio 編輯', // components/modebar/buttons.js:76 + 'IE only supports svg. Changing format to svg.': 'IE 僅支援 SVG,將變更格式為 SVG。', // components/modebar/buttons.js:60 + 'Lasso Select': '套索選擇', // components/modebar/buttons.js:112 + 'Orbital rotation': '軌道旋轉', // components/modebar/buttons.js:279 + 'Pan': '平移', // components/modebar/buttons.js:94 + 'Produced with Plotly.js': '使用 Plotly.js 製作', // components/modebar/modebar.js:256 + 'Reset': '重置', // components/modebar/buttons.js:432 + 'Reset axes': '重置軸', // components/modebar/buttons.js:148 + 'Reset camera to default': '重置相機至預設位置', // components/modebar/buttons.js:314 + 'Reset camera to last save': '重置相機至上次儲存的位置', // components/modebar/buttons.js:322 + 'Reset view': '重置視圖', // components/modebar/buttons.js:583 + 'Reset views': '重置視圖', // components/modebar/buttons.js:529 + 'Show closest data on hover': '滑鼠懸停時顯示最接近的資料', // components/modebar/buttons.js:157 + 'Snapshot succeeded': '快照成功', // components/modebar/buttons.js:66 + 'Sorry, there was a problem downloading your snapshot!': '抱歉,下載快照時發生錯誤!', // components/modebar/buttons.js:69 + 'Taking snapshot - this may take a few seconds': '產生快照中 - 可能需要一點時間', // components/modebar/buttons.js:57 + 'Zoom': '縮放', // components/modebar/buttons.js:85 + 'Zoom in': '放大', // components/modebar/buttons.js:121 + 'Zoom out': '縮小', // components/modebar/buttons.js:130 + 'close:': '關閉:', // traces/ohlc/transform.js:139 + 'trace': '軌跡:', // plots/plots.js:439 + 'lat:': '緯度:', // traces/scattergeo/calc.js:48 + 'lon:': '經度:', // traces/scattergeo/calc.js:49 + 'q1:': '第一四分位數:', // traces/box/calc.js:130 + 'q3:': '第三四分位數:', // traces/box/calc.js:131 + 'source:': '來源:', // traces/sankey/plot.js:140 + 'target:': '目標:', // traces/sankey/plot.js:141 + 'lower fence:': '下圍籬值:', // traces/box/calc.js:134 + 'upper fence:': '上圍籬值:', // traces/box/calc.js:135 + 'max:': '最大:', // traces/box/calc.js:132 + 'mean ± σ:': '平均 ± σ:', // traces/box/calc.js:133 + 'mean:': '平均:', // traces/box/calc.js:133 + 'median:': '中位數:', // traces/box/calc.js:128 + 'min:': '最小:', // traces/box/calc.js:129 + 'Turntable rotation': '轉盤旋轉:', // components/modebar/buttons.js:288 + 'Toggle Spike Lines': '切換尖峰線', // components/modebar/buttons.js:548 + 'open:': '開啟:', // traces/ohlc/transform.js:136 + 'high:': '高:', // traces/ohlc/transform.js:137 + 'low:': '低:', // traces/ohlc/transform.js:138 + 'Toggle show closest data on hover': '切換滑鼠懸停顯示最接近的資料', // components/modebar/buttons.js:353 + 'incoming flow count:': '傳入流量計數:', // traces/sankey/plot.js:142 + 'outgoing flow count:': '傳出流量計數:', // traces/sankey/plot.js:143 + 'kde:': 'kde:', // traces/violin/calc.js:73 + 'Click to enter radial axis title': '點擊以輸入輻射軸標題', + 'new text': '新文本' + }, format: { days: ['星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'], - shortDays: ['周日', '周一', '周二', '周三', '周四', '周五', '周六'], - months: ['一月', '二月', '三月', '四月', '五月', '六月', '七月', '八月', '九月', '十月', '十一月', '十二月'], - shortMonths: ['一', '二', '三', '四', '五', '六', '七', '八', '九', '十', '十一', '十二'], - date: '%Y/%m/%d' + shortDays: ['週日', '週一', '週二', '週三', '週四', '週五', '週六'], + months: [ + '一月', '二月', '三月', '四月', '五月', '六月', + '七月', '八月', '九月', '十月', '十一月', '十二月' + ], + shortMonths: [ + '1月', '2月', '3月', '4月', '5月', '6月', + '7月', '8月', '9月', '10月', '11月', '12月' + ], + date: '%Y-%m-%d' } }; From 42e3bec308589e400448eb6b26d95afed5d1281c Mon Sep 17 00:00:00 2001 From: sec2 Date: Fri, 1 Jul 2022 08:12:41 +0800 Subject: [PATCH 2/5] 2022-07-01 Added missing keys --- lib/locales/zh-tw.js | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/lib/locales/zh-tw.js b/lib/locales/zh-tw.js index 1af9c5f73a5..cb5a966618e 100644 --- a/lib/locales/zh-tw.js +++ b/lib/locales/zh-tw.js @@ -13,12 +13,19 @@ module.exports = { 'Click to enter Plot title': '點擊以輸入繪圖標題', // plot_api/plot_api.js:579 'Click to enter X axis title': '點擊以輸入 X 軸標題', // plots/plots.js:435 'Click to enter Y axis title': '點擊以輸入 Y 軸標題', // plots/plots.js:436 + 'Click to enter radial axis title': '點擊以輸入輻射軸標題', // plots/polar/polar.js:575 'Compare data on hover': '滑鼠懸停時比較資料', // components/modebar/buttons.js:167 'Double-click on legend to isolate one trace': '雙擊圖例以隔離單一軌跡', // components/legend/handle_click.js:90 'Double-click to zoom back out': '雙擊回復縮放', // plots/cartesian/dragbox.js:299 - 'Download plot as a png': '下載繪圖為 PNG 圖檔', // components/modebar/buttons.js:52 - 'Download plot': '下載繪圖', // components/modebar/buttons.js:53 + 'Download plot as a png': '下載圖表為 PNG 圖檔', // components/modebar/buttons.js:52 + 'Download plot': '下載圖表', // components/modebar/buttons.js:53 + 'Draw circle': '繪製圓圈', // components/modebar/buttons.js:171 + 'Draw closed freeform': '繪製封閉的自由形式', // components/modebar/buttons.js:135 + 'Draw line': '繪製線條', // components/modebar/buttons.js:153 + 'Draw open freeform': '繪製開放的自由形式', // components/modebar/buttons.js:144 + 'Draw rectangle': '繪製矩形', // components/modebar/buttons.js:162 'Edit in Chart Studio': '於 Chart Studio 編輯', // components/modebar/buttons.js:76 + 'Erase active shape': '清除作用中的形狀', // components/modebar/buttons.js:180 'IE only supports svg. Changing format to svg.': 'IE 僅支援 SVG,將變更格式為 SVG。', // components/modebar/buttons.js:60 'Lasso Select': '套索選擇', // components/modebar/buttons.js:112 'Orbital rotation': '軌道旋轉', // components/modebar/buttons.js:279 @@ -38,6 +45,7 @@ module.exports = { 'Zoom in': '放大', // components/modebar/buttons.js:121 'Zoom out': '縮小', // components/modebar/buttons.js:130 'close:': '關閉:', // traces/ohlc/transform.js:139 + 'concentration': '集中', // traces/sankey/plot.js:160 'trace': '軌跡:', // plots/plots.js:439 'lat:': '緯度:', // traces/scattergeo/calc.js:48 'lon:': '經度:', // traces/scattergeo/calc.js:49 @@ -61,7 +69,6 @@ module.exports = { 'incoming flow count:': '傳入流量計數:', // traces/sankey/plot.js:142 'outgoing flow count:': '傳出流量計數:', // traces/sankey/plot.js:143 'kde:': 'kde:', // traces/violin/calc.js:73 - 'Click to enter radial axis title': '點擊以輸入輻射軸標題', 'new text': '新文本' }, format: { From 747e3e0a6c08af6f6cff2600bb26d5c7a609d9df Mon Sep 17 00:00:00 2001 From: sec2 Date: Fri, 1 Jul 2022 11:29:45 +0800 Subject: [PATCH 3/5] Small fixes for some terms --- lib/locales/zh-tw.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/locales/zh-tw.js b/lib/locales/zh-tw.js index cb5a966618e..1bfdc5291cc 100644 --- a/lib/locales/zh-tw.js +++ b/lib/locales/zh-tw.js @@ -14,15 +14,15 @@ module.exports = { 'Click to enter X axis title': '點擊以輸入 X 軸標題', // plots/plots.js:435 'Click to enter Y axis title': '點擊以輸入 Y 軸標題', // plots/plots.js:436 'Click to enter radial axis title': '點擊以輸入輻射軸標題', // plots/polar/polar.js:575 - 'Compare data on hover': '滑鼠懸停時比較資料', // components/modebar/buttons.js:167 + 'Compare data on hover': '游標停留時比較資料', // components/modebar/buttons.js:167 'Double-click on legend to isolate one trace': '雙擊圖例以隔離單一軌跡', // components/legend/handle_click.js:90 'Double-click to zoom back out': '雙擊回復縮放', // plots/cartesian/dragbox.js:299 'Download plot as a png': '下載圖表為 PNG 圖檔', // components/modebar/buttons.js:52 'Download plot': '下載圖表', // components/modebar/buttons.js:53 'Draw circle': '繪製圓圈', // components/modebar/buttons.js:171 - 'Draw closed freeform': '繪製封閉的自由形式', // components/modebar/buttons.js:135 + 'Draw closed freeform': '繪製封閉的任意圖形', // components/modebar/buttons.js:135 'Draw line': '繪製線條', // components/modebar/buttons.js:153 - 'Draw open freeform': '繪製開放的自由形式', // components/modebar/buttons.js:144 + 'Draw open freeform': '繪製開放的任意圖形', // components/modebar/buttons.js:144 'Draw rectangle': '繪製矩形', // components/modebar/buttons.js:162 'Edit in Chart Studio': '於 Chart Studio 編輯', // components/modebar/buttons.js:76 'Erase active shape': '清除作用中的形狀', // components/modebar/buttons.js:180 @@ -37,7 +37,7 @@ module.exports = { 'Reset camera to last save': '重置相機至上次儲存的位置', // components/modebar/buttons.js:322 'Reset view': '重置視圖', // components/modebar/buttons.js:583 'Reset views': '重置視圖', // components/modebar/buttons.js:529 - 'Show closest data on hover': '滑鼠懸停時顯示最接近的資料', // components/modebar/buttons.js:157 + 'Show closest data on hover': '游標停留時顯示最接近的資料', // components/modebar/buttons.js:157 'Snapshot succeeded': '快照成功', // components/modebar/buttons.js:66 'Sorry, there was a problem downloading your snapshot!': '抱歉,下載快照時發生錯誤!', // components/modebar/buttons.js:69 'Taking snapshot - this may take a few seconds': '產生快照中 - 可能需要一點時間', // components/modebar/buttons.js:57 @@ -55,11 +55,11 @@ module.exports = { 'target:': '目標:', // traces/sankey/plot.js:141 'lower fence:': '下圍籬值:', // traces/box/calc.js:134 'upper fence:': '上圍籬值:', // traces/box/calc.js:135 - 'max:': '最大:', // traces/box/calc.js:132 + 'max:': '最大值:', // traces/box/calc.js:132 'mean ± σ:': '平均 ± σ:', // traces/box/calc.js:133 - 'mean:': '平均:', // traces/box/calc.js:133 + 'mean:': '平均值:', // traces/box/calc.js:133 'median:': '中位數:', // traces/box/calc.js:128 - 'min:': '最小:', // traces/box/calc.js:129 + 'min:': '最小值:', // traces/box/calc.js:129 'Turntable rotation': '轉盤旋轉:', // components/modebar/buttons.js:288 'Toggle Spike Lines': '切換尖峰線', // components/modebar/buttons.js:548 'open:': '開啟:', // traces/ohlc/transform.js:136 From a5e2912ffbcf16e4638d0c3b40d33e35b7ba1e76 Mon Sep 17 00:00:00 2001 From: alexcjohnson Date: Thu, 7 Jul 2022 22:23:51 -0400 Subject: [PATCH 4/5] changelog for zh-tw translation --- draftlogs/6247_add.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 draftlogs/6247_add.md diff --git a/draftlogs/6247_add.md b/draftlogs/6247_add.md new file mode 100644 index 00000000000..2b8bd4dfbf1 --- /dev/null +++ b/draftlogs/6247_add.md @@ -0,0 +1 @@ +- Add official Chinese (Taiwan) translation (locale `zh-tw`) [[#6238](https://github.com/plotly/plotly.js/pull/6238)] with thanks to @sec2 for the contribution! From b5d34dc5be93a5d4cd24ba1fb5f41d29ce44543f Mon Sep 17 00:00:00 2001 From: alexcjohnson Date: Thu, 7 Jul 2022 22:25:38 -0400 Subject: [PATCH 5/5] fix links in sinhala and zh-tw changelogs --- draftlogs/6238_add.md | 2 +- draftlogs/6247_add.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/draftlogs/6238_add.md b/draftlogs/6238_add.md index 207a8557070..42cfc4b11d4 100644 --- a/draftlogs/6238_add.md +++ b/draftlogs/6238_add.md @@ -1 +1 @@ -- Add official Sinhala translation (locale `si`) [[#2249](https://github.com/plotly/plotly.js/pull/2249)] with thanks to @sujithranga for the contribution! +- Add official Sinhala translation (locale `si`) [[#6238](https://github.com/plotly/plotly.js/pull/6238)] with thanks to @sujithranga for the contribution! diff --git a/draftlogs/6247_add.md b/draftlogs/6247_add.md index 2b8bd4dfbf1..cff8c4f0094 100644 --- a/draftlogs/6247_add.md +++ b/draftlogs/6247_add.md @@ -1 +1 @@ -- Add official Chinese (Taiwan) translation (locale `zh-tw`) [[#6238](https://github.com/plotly/plotly.js/pull/6238)] with thanks to @sec2 for the contribution! +- Add official Chinese (Taiwan) translation (locale `zh-tw`) [[#6247](https://github.com/plotly/plotly.js/pull/6247)] with thanks to @sec2 for the contribution!