From f253b4149ccb9a44d69ab52ca5d7153348d22303 Mon Sep 17 00:00:00 2001 From: Takeshi MUTOH Date: Mon, 25 Nov 2024 10:34:51 +0900 Subject: [PATCH 1/7] [UIFlow 2.0] [JP] Unit-Joystick2 Translate the "Joystick2" in UIFlow 2.0 under the Unit category into Japanese. --- uiflow-2.x/ja.json | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/uiflow-2.x/ja.json b/uiflow-2.x/ja.json index b279a1f..a94d089 100644 --- a/uiflow-2.x/ja.json +++ b/uiflow-2.x/ja.json @@ -4202,25 +4202,25 @@ "UNIT_JOYSTICK_GET_BUTTON_STATUS_MSG0": "%1 ボタンの状態を取得(return True or False)", "UNIT_JOYSTICK_SET_SWAP_X_MSG0": "%1 x軸の方向を入れ替え %2", "UNIT_JOYSTICK_SET_SWAP_Y_MSG0": "%1 y軸の方向を入れ替え %2", - "UNIT_JOYSTICK2_INIT_MSG0": "Init %1 I2C address %2 (0x08 ~ 0x77)", - "UNIT_JOYSTICK2_SET_ADDRESS_MSG0": "Set %1 I2C address %2 (0x08 ~ 0x77)", - "UNIT_JOYSTICK2_SET_AXIS_X_INVERT_MSG0": "%1 invert x-axis %2", - "UNIT_JOYSTICK2_SET_AXIS_Y_INVERT_MSG0": "%1 invert y-axis %2", - "UNIT_JOYSTICK2_SET_AXIS_SWAP_MSG0": "%1 swap x-axis and y-axis %2", - "UNIT_JOYSTICK2_GET_BUTTON_STATUS_MSG0": "get %1 button status (return True or False)", - "UNIT_JOYSTICK2_GET_ADC_VALUE_MSG0": "get %1 ADC value (return tuple)", - "UNIT_JOYSTICK2_FILL_COLOR_MSG0": "%1 fill color %2", - "UNIT_JOYSTICK2_GET_X_RAW_MSG0": "get %1 ADC value of x-axis", - "UNIT_JOYSTICK2_GET_Y_RAW_MSG0": "get %1 ADC value of y-axis", - "UNIT_JOYSTICK2_GET_X_POSITION_MSG0": "get %1 x-axis position", - "UNIT_JOYSTICK2_GET_Y_POSITION_MSG0": "get %1 y-axis position", - "UNIT_JOYSTICK2_GET_FIRMWARE_VERSION_MSG0": "get %1 firmware version (return int)", - "UNIT_JOYSTICK2_GET_AXIS_POSITION_MSG0": "get %1 position (return tuple)", - "UNIT_JOYSTICK2_SET_DEADZONE_ADC_MSG0": "Set %1 deadzone with ADC value X %2 (0 ~ 32768) and Y %3 (0 ~ 32768)", - "UNIT_JOYSTICK2_SET_DEADZONE_POSITION_MSG0": "Set %1 deadzone with position X %2 (0 ~ 4096) and Y %3 (0 ~ 4096)", - "UNIT_JOYSTICK2_SET_AXIS_X_MAPPING_MSG0": "Set %1 mapping parameters of the x-axis with %2 min negative ADC value (0 ~ 65536) %3 max negative ADC value (0 ~ 65536) %4 min positive ADC value (0 ~ 65536) %5 max positive ADC value (0 ~ 65536) %6", - "UNIT_JOYSTICK2_SET_AXIS_Y_MAPPING_MSG0": "Set %1 mapping parameters of the y-axis with %2 min negative ADC value (0 ~ 65536) %3 max negative ADC value (0 ~ 65536) %4 min positive ADC value (0 ~ 65536) %5 max positive ADC value (0 ~ 65536) %6", - "UNIT_JOYSTICK2_SET_LED_BRIGHTNESS_MSG0": "Set %1 LED brightness %2 % (0 ~ 100)", + "UNIT_JOYSTICK2_INIT_MSG0": "%1 I2Cアドレス %2 (0x08 ~ 0x77) で初期化", + "UNIT_JOYSTICK2_SET_ADDRESS_MSG0": "%1 I2Cアドレスを %2 (0x08 ~ 0x77)に設定", + "UNIT_JOYSTICK2_SET_AXIS_X_INVERT_MSG0": "%1 x軸を反転 %2", + "UNIT_JOYSTICK2_SET_AXIS_Y_INVERT_MSG0": "%1 y軸を反転 %2", + "UNIT_JOYSTICK2_SET_AXIS_SWAP_MSG0": "%1 x軸とy軸を交換 %2", + "UNIT_JOYSTICK2_GET_BUTTON_STATUS_MSG0": "%1 ボタンの状態(return True or False)", + "UNIT_JOYSTICK2_GET_ADC_VALUE_MSG0": "%1 ADCの値(return tuple)", + "UNIT_JOYSTICK2_FILL_COLOR_MSG0": "%1 の色を %2 に", + "UNIT_JOYSTICK2_GET_X_RAW_MSG0": "%1 x軸のADC値", + "UNIT_JOYSTICK2_GET_Y_RAW_MSG0": "get %1 y軸のADC値", + "UNIT_JOYSTICK2_GET_X_POSITION_MSG0": "%1 x軸の位置", + "UNIT_JOYSTICK2_GET_Y_POSITION_MSG0": "%1 y軸の位置", + "UNIT_JOYSTICK2_GET_FIRMWARE_VERSION_MSG0": "%1 ファームウエアバージョン(return int)", + "UNIT_JOYSTICK2_GET_AXIS_POSITION_MSG0": "%1 の位置(return tuple)", + "UNIT_JOYSTICK2_SET_DEADZONE_ADC_MSG0": "%1 ADC値のデッドゾーンをX %2 (0 ~ 32768),Y %3 (0 ~ 32768)に設定", + "UNIT_JOYSTICK2_SET_DEADZONE_POSITION_MSG0": "%1 位置のデッドゾーンをX %2 (0 ~ 4096),Y %3 (0 ~ 4096)に設定", + "UNIT_JOYSTICK2_SET_AXIS_X_MAPPING_MSG0": "%1 x軸のマッピングパラメータ %2 ADC値の負の最小値(0 ~ 65536) %3 ADC値の負の最大値(0 ~ 65536) %4 ADC値の正の最小値(0 ~ 65536) %5 ADC値の正の最大値(0 ~ 65536) %6", + "UNIT_JOYSTICK2_SET_AXIS_Y_MAPPING_MSG0": "%1 y軸のマッピングパラメータ %2 ADC値の負の最小値(0 ~ 65536) %3 ADC値の負の最大値(0 ~ 65536) %4 ADC値の正の最小値(0 ~ 65536) %5 ADC値の正の最大値(0 ~ 65536) %6", + "UNIT_JOYSTICK2_SET_LED_BRIGHTNESS_MSG0": "%1 LEDの輝度を %2 % (0 ~ 100)に設定", "UNIT_WATERING_INIT_MSG0": "Init %1", "UNIT_WATERING_GET_VOLTAGE_MSG0": "%1 get voltage (return float)", "UNIT_WATERING_GET_RAW_MSG0": "%1 get ADC raw value (return int)", From 6664694ffe61aa4fa294ae2f53527792b5e4af99 Mon Sep 17 00:00:00 2001 From: Takeshi MUTOH Date: Mon, 25 Nov 2024 16:02:12 +0900 Subject: [PATCH 2/7] [UIFlow 2.0] [JP] Unit-ToF 4M Translate the "ToF 4M" in UIFlow 2.0 under the Unit category into Japanese. --- uiflow-2.x/ja.json | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/uiflow-2.x/ja.json b/uiflow-2.x/ja.json index 0c945a4..248650b 100644 --- a/uiflow-2.x/ja.json +++ b/uiflow-2.x/ja.json @@ -3933,24 +3933,24 @@ "UNIT_NCIR2_SAVE_CONFIG_SETTING_MSG0": "save current configure settings", "UNIT_NCIR2_SET_I2C_ADDR_MSG0": "set I2C address", "UNIT_NCIR2_SET_I2C_ADDR_MSG1": "(0x08 ~ 0x77)", - "UNIT_TOF4M_INIT_MSG0": "Init", - "UNIT_TOF4M_INIT_MSG1": "I2C address", - "UNIT_TOF4M_INIT_MSG2": "(0x08 ~ 0x77)", - "UNIT_TOF4M_GET_DISTANCE_MSG0": "get", - "UNIT_TOF4M_GET_DISTANCE_MSG1": "target distance in mm (return int)", - "UNIT_TOF4M_GET_MEASUREMENT_TIMING_BUDGET_MSG0": "get", + "UNIT_TOF4M_INIT_MSG0": "", + "UNIT_TOF4M_INIT_MSG1": "I2Cアドレス", + "UNIT_TOF4M_INIT_MSG2": "(0x08 ~ 0x77)で初期化", + "UNIT_TOF4M_GET_DISTANCE_MSG0": "", + "UNIT_TOF4M_GET_DISTANCE_MSG1": "距離mm (return int)", + "UNIT_TOF4M_GET_MEASUREMENT_TIMING_BUDGET_MSG0": "", "UNIT_TOF4M_GET_MEASUREMENT_TIMING_BUDGET_MSG1": "measurement timing budget (return int)", - "UNIT_TOF4M_GET_DISTANCE_MODE_MSG0": "get", - "UNIT_TOF4M_GET_DISTANCE_MODE_MSG1": "distance mode (return int)", - "UNIT_TOF4M_GET_DATA_READY_MSG0": "get", - "UNIT_TOF4M_GET_DATA_READY_MSG1": "data ready (return int)", - "UNIT_TOF4M_SET_CONTINUOUS_START_MEASUREMENT_MSG0": "set continuous start measurement", - "UNIT_TOF4M_SET_CONTINUOUS_STOP_MEASUREMENT_MSG0": "set continuous stop measurement", - "UNIT_TOF4M_SET_MEASUREMENT_TIMING_BUDGET_MSG0": "set measurement timing budget", - "UNIT_TOF4M_SET_DISTANCE_MODE_MSG0": "set distance", - "UNIT_TOF4M_SET_DISTANCE_MODE_MSG1": "mode", - "UNIT_TOF4M_SET_I2C_ADDRESS_MSG0": "set I2C address", - "UNIT_TOF4M_SET_I2C_ADDRESS_MSG1": "(0x08 ~ 0x77)", + "UNIT_TOF4M_GET_DISTANCE_MODE_MSG0": "", + "UNIT_TOF4M_GET_DISTANCE_MODE_MSG1": "距離モード(return int)", + "UNIT_TOF4M_GET_DATA_READY_MSG0": "", + "UNIT_TOF4M_GET_DATA_READY_MSG1": "データ準備状態(return int)", + "UNIT_TOF4M_SET_CONTINUOUS_START_MEASUREMENT_MSG0": "連続データ取得モードを開始", + "UNIT_TOF4M_SET_CONTINUOUS_STOP_MEASUREMENT_MSG0": "連続データ取得モードを停止", + "UNIT_TOF4M_SET_MEASUREMENT_TIMING_BUDGET_MSG0": "measurement timing budgetを設定", + "UNIT_TOF4M_SET_DISTANCE_MODE_MSG0": "距離を", + "UNIT_TOF4M_SET_DISTANCE_MODE_MSG1": "モードに設定", + "UNIT_TOF4M_SET_I2C_ADDRESS_MSG0": "I2Cアドレスを", + "UNIT_TOF4M_SET_I2C_ADDRESS_MSG1": "(0x08 ~ 0x77)に設定", "UNIT_ANGLE8_INIT_MSG0": "初期化", "UNIT_ANGLE8_INIT_MSG1": "I2Cアドレス", "UNIT_ANGLE8_INIT_MSG2": "(0x08 ~ 0x77)", @@ -5266,4 +5266,4 @@ "OPENMV_IMAGE_FIND_FEATURES_MSG0": "%1 find features with %2 Haar Cascade object %3 threshold %4 scale %5 (return tuple)", "OPENMV_IMAGE_FIND_KEYPOINTS_MSG0": "%1 find keypoints with %2 region-of-interest %3 threshold %4 normalized %5 scale factor %6 max keypoints %7 corner detector %8", "OPENMV_LCD_DISPLAY_WRITE_MSG0": "Display write %1 with x scale %2 and y scale %3" -} \ No newline at end of file +} From 5e68a032f68570db606bc30d5a186db80883b24a Mon Sep 17 00:00:00 2001 From: Takeshi MUTOH Date: Tue, 26 Nov 2024 10:55:19 +0900 Subject: [PATCH 3/7] [UIFlow 1.0] [JP] Unit-ToF 4M Translate the "ToF 4M" in UIFlow 1.0 under the Unit category into Japanese. --- uiflow-1.x/ja.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/uiflow-1.x/ja.json b/uiflow-1.x/ja.json index e5c9e9a..07493f4 100644 --- a/uiflow-1.x/ja.json +++ b/uiflow-1.x/ja.json @@ -3758,9 +3758,9 @@ "UNIT_LORAE220_SEND_STR": "%1 Send %4 address %2 (0x0000 ~ 0xFFFF) channel %3 (0 ~ 30)", "UNIT_LORAE220_SEND_LIST": "%1 Send raw data %4 address %2 (0x0000 ~ 0xFFFF) channel %3 (0 ~ 30)", "UNIT_TOF4M": "TOF4M", - "UNIT_TOF4M_SET_DISTANCE_MODE": "%1 Set distance mode %2", - "UNIT_TOF4M_SET_MEASUREMENT_BUDGET": "%1 Set measurement timing budget %2 ms", - "UNIT_TOF4M_GET_SINGLE_DISTANCE": "%1 Get single distance value (mm, return int)", + "UNIT_TOF4M_SET_DISTANCE_MODE": "%1 距離モードを %2 に設定", + "UNIT_TOF4M_SET_MEASUREMENT_BUDGET": "%1 measurement timing budgetを %2 msに設定", + "UNIT_TOF4M_GET_SINGLE_DISTANCE": "%1 距離を一度取得(mm, return int)", "AXP_GET_TEMP_IN_AXP192_CORE2": "Get internal PMU Temperature", "WEIGH_SET_CALIBRATE_SCALE": "%1 Set calibrate scale weight %2 gram", "UNIT_GLASS2_INIT": "%1 Init device I2C address %2 (0x3C ~ 0x3D)", @@ -4348,4 +4348,4 @@ "UNIT_JOYSTICK2_SET_AXIS_X_MAPPING": "%1 Set mapping parameters of the x-axis with %2 min negative ADC value (0 ~ 65536) %3 max negative ADC value (0 ~ 65536) %4 min positive ADC value (0 ~ 65536) %5 max positive ADC value (0 ~ 65536) %6", "UNIT_JOYSTICK2_SET_AXIS_Y_MAPPING": "%1 Set mapping parameters of the y-axis with %2 min negative ADC value (0 ~ 65536) %3 max negative ADC value (0 ~ 65536) %4 min positive ADC value (0 ~ 65536) %5 max positive ADC value (0 ~ 65536) %6", "UNIT_JOYSTICK2_SET_LED_BRIGHTNESS": "%1 Set LED brightness %2 % (0 ~ 100)" -} \ No newline at end of file +} From f97d7372d2feb76002bf1e92c75c76295c63e143 Mon Sep 17 00:00:00 2001 From: Takeshi MUTOH Date: Wed, 27 Nov 2024 13:03:42 +0900 Subject: [PATCH 4/7] Add Japanese translation for README.md. --- README.md | 4 +++- README_ja.md | 31 +++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 README_ja.md diff --git a/README.md b/README.md index 872b164..8806c41 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ # UIFlow I18N Let's translate the blocks! +[日本語](README_ja.md)](README_ja.md) + ## For UIFlOW 1.x [here](./uiflow-1.x/README.md) @@ -28,4 +30,4 @@ Let's translate the blocks! ## Contributors -- Takeshi MUTOH [GitHub](https://github.com/610t) [Twitter](https://twitter.com/610t) \ No newline at end of file +- Takeshi MUTOH [GitHub](https://github.com/610t) [Twitter](https://twitter.com/610t) diff --git a/README_ja.md b/README_ja.md new file mode 100644 index 0000000..bb6f46e --- /dev/null +++ b/README_ja.md @@ -0,0 +1,31 @@ +# UIFlow I18N +ブロックを翻訳しよう!! + +## For UIFlOW 1.x + +[here](./uiflow-1.x/README.md) + + +## For UIFlOW 2.x + +[here](./uiflow-2.x/README.md) + +## 翻訳ガイド: + +1. **既に登録されているIssueを確認してください:** 翻訳を始める前に、作業が重複しないようにopenされているものとcloseされているものの両方のIssueを確認してください。 +2. **Issueを作成する:** UIFlowのバージョン(1.0か2.0)を指定してください。そして、翻訳しようとするモジュールと翻訳先の言語を含めてください。 + + • 例: Translate the “Button” module in UIFlow 2.0 under the Hardware category into Japanese. + + • Issueのタイトル: “[UIFlow 2.0] [JP] Hardware-Button”. + +3. **Repositoryをforkします:** このRepositoryを自分のアカウントにforkします。. +4. **翻訳の開始:** 翻訳をはじめます。既に翻訳された部分と似たスタイルで翻訳してください。文章は簡潔にし、値に関する参照は変更しないでください(例:return bytes)。 翻訳が終わったら、自分のRepositoryにpushします。 +5. **Pull Request前の確認:** 翻訳された文章が画面表示の制限に合っていることを確認してください。長すぎる文章や単語はウェブページの表示上の問題を引き起こす可能性があります。 +6. **Pull Request (PR)の作成:** 準備ができたらPRを作成します。PRには今回の翻訳に関するIssueにリンクし、Issueで議論されているモジュールと一致していることを確認してください。 +7. **レビューとマージ:** M5Stack UIFlowチームは、通常、新バージョンのリリースの週にレビューとマージを行なっています。このプロセスを辛抱強くお待ちください。 +8. **完了:** おめでとうございます! あなたの翻訳は次のリリースに含まれます。貢献ありがとうございました! + +## 貢献者 + +- むとうたけし(Takeshi MUTOH) a.k.a 610t [GitHub](https://github.com/610t) [Twitter](https://twitter.com/610t) From f65e6f8c3d3a0e46e66dbdb2803f465e4ed3f87a Mon Sep 17 00:00:00 2001 From: Takeshi MUTOH Date: Wed, 27 Nov 2024 13:29:51 +0900 Subject: [PATCH 5/7] Add check environment. --- README.md | 13 +++++++++++++ README_ja.md | 13 +++++++++++++ 2 files changed, 26 insertions(+) diff --git a/README.md b/README.md index 8806c41..b7f8835 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,19 @@ Let's translate the blocks! 7. **Review and Merge:** We typically review and merge contributions during the week of a new version release. Please be patient during this process. 8. **Completion:** Congratulations! Your translation will be included in the next release. Thank you for your contribution! +## Checking environment +You can check your translation using environment below: + +### For UIFlow 1.0 +You use UIFlow Local at https://docs.m5stack.com/en/download . +Except macOS, you can replace translation file, and can check it. + +[Not yet] More detail is .... + +### For UIFlow 2.0 +There is the developer mode for checking translation. +Please contact to M5Stack UIFlow team. + ## Contributors - Takeshi MUTOH [GitHub](https://github.com/610t) [Twitter](https://twitter.com/610t) diff --git a/README_ja.md b/README_ja.md index bb6f46e..9d79775 100644 --- a/README_ja.md +++ b/README_ja.md @@ -26,6 +26,19 @@ 7. **レビューとマージ:** M5Stack UIFlowチームは、通常、新バージョンのリリースの週にレビューとマージを行なっています。このプロセスを辛抱強くお待ちください。 8. **完了:** おめでとうございます! あなたの翻訳は次のリリースに含まれます。貢献ありがとうございました! +## 翻訳チェック用環境 +翻訳のチェックは、以下のような環境で行うことができます: + +### UIFlow 1.0用 +UIFlow Local( https://docs.m5stack.com/en/download )を使ってください。 +macOS以外では、翻訳ファイルを置き換えることが可能で、これを使ってチェックすることができます。 + +詳細は、[Local UIFlowの自由研究]の「翻訳ファイルの入れかえ」をご覧ください。 + +### UIFlow 2.0用 +翻訳ファイルを確認するために、開発者モードがあります。 +M5Stack UIFlowチームにご相談ください。 + ## 貢献者 - むとうたけし(Takeshi MUTOH) a.k.a 610t [GitHub](https://github.com/610t) [Twitter](https://twitter.com/610t) From dc5fbb36984e881fa89b0897d4d54c27b5bfed05 Mon Sep 17 00:00:00 2001 From: Takeshi MUTOH Date: Wed, 27 Nov 2024 21:23:33 +0900 Subject: [PATCH 6/7] Fix link. --- README_ja.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README_ja.md b/README_ja.md index 9d79775..bb5778f 100644 --- a/README_ja.md +++ b/README_ja.md @@ -3,12 +3,12 @@ ## For UIFlOW 1.x -[here](./uiflow-1.x/README.md) +[こちら](./uiflow-1.x/README.md) ## For UIFlOW 2.x -[here](./uiflow-2.x/README.md) +[こちら](./uiflow-2.x/README.md) ## 翻訳ガイド: @@ -33,7 +33,7 @@ UIFlow Local( https://docs.m5stack.com/en/download )を使ってください。 macOS以外では、翻訳ファイルを置き換えることが可能で、これを使ってチェックすることができます。 -詳細は、[Local UIFlowの自由研究]の「翻訳ファイルの入れかえ」をご覧ください。 +詳細は、[Local UIFlowの自由研究](https://scrapbox.io/M5S/Local_UIFlow%E3%81%AE%E8%87%AA%E7%94%B1%E7%A0%94%E7%A9%B6)の「翻訳ファイルの入れかえ」をご覧ください。 ### UIFlow 2.0用 翻訳ファイルを確認するために、開発者モードがあります。 From 26e2fc81f8e3e8362e3d5b8049c77a6138a0f451 Mon Sep 17 00:00:00 2001 From: Takeshi MUTOH Date: Mon, 2 Dec 2024 12:24:10 +0900 Subject: [PATCH 7/7] Fix link to README_ja.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index b7f8835..f1f1240 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # UIFlow I18N Let's translate the blocks! -[日本語](README_ja.md)](README_ja.md) +[日本語](README_ja.md) ## For UIFlOW 1.x