Skip to content

Commit

Permalink
Merge pull request #61 from 610t/main
Browse files Browse the repository at this point in the history
[UIFlow] [JP] Translation by 610t from 2024/11/25
  • Loading branch information
VAN0527 authored Dec 11, 2024
2 parents d664c2b + b9931c6 commit c5f9a97
Show file tree
Hide file tree
Showing 4 changed files with 100 additions and 41 deletions.
17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# UIFlow I18N
Let's translate the blocks!

[日本語](README_ja.md)

## For UIFlOW 1.x

[here](./uiflow-1.x/README.md)
Expand All @@ -26,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)
- Takeshi MUTOH [GitHub](https://github.com/610t) [Twitter](https://twitter.com/610t)
44 changes: 44 additions & 0 deletions README_ja.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# UIFlow I18N
ブロックを翻訳しよう!!

## For UIFlOW 1.x

[こちら](./uiflow-1.x/README.md)


## For UIFlOW 2.x

[こちら](./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. **完了:** おめでとうございます! あなたの翻訳は次のリリースに含まれます。貢献ありがとうございました!

## 翻訳チェック用環境
翻訳のチェックは、以下のような環境で行うことができます:

### UIFlow 1.0用
UIFlow Local( https://docs.m5stack.com/en/download )を使ってください。
macOS以外では、翻訳ファイルを置き換えることが可能で、これを使ってチェックすることができます。

詳細は、[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用
翻訳ファイルを確認するために、開発者モードがあります。
M5Stack UIFlowチームにご相談ください。

## 貢献者

- むとうたけし(Takeshi MUTOH) a.k.a 610t [GitHub](https://github.com/610t) [Twitter](https://twitter.com/610t)
6 changes: 3 additions & 3 deletions uiflow-1.x/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -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)",
Expand Down
74 changes: 37 additions & 37 deletions uiflow-2.x/ja.json
Original file line number Diff line number Diff line change
Expand Up @@ -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)",
Expand Down Expand Up @@ -4441,25 +4441,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)",
Expand Down Expand Up @@ -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"
}
}

0 comments on commit c5f9a97

Please sign in to comment.