Skip to content

Commit

Permalink
Adding Chinese localization for web config (#1035)
Browse files Browse the repository at this point in the history
* Adding Chinese localization for web config

* Fix DDI config translation

* missunderstand meaning of dual directional

* Add translations for the newly added lables

* Adding Chinese translation for Rotary Encoders addon

- Adding Chinese translation for Rotary Encoders addon
- Polishing Chinese translations
- Changed order of "Pin LED" to "LED Pin"
- Removed labels that are not in use

* Add untranslated localization for zh-CN
  • Loading branch information
rebornsick authored Jun 17, 2024
1 parent b759c63 commit 5ec189c
Show file tree
Hide file tree
Showing 18 changed files with 513 additions and 112 deletions.
8 changes: 2 additions & 6 deletions www/src/Locales/en/AddonsConfig.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default {
'analog-auto-calibrate': 'Auto Calibration',
'turbo-header-text': 'Turbo',
'turbo-button-pin-label': 'Turbo Pin',
'turbo-led-pin-label': 'Turbo Pin LED',
'turbo-led-pin-label': 'Turbo LED Pin',
'turbo-shmup-dial-pin-label': 'Turbo Dial (ADC ONLY)',
'turbo-shot-count-label': 'Turbo Shot Count',
'turbo-shmup-mode-label': 'SHMUP MODE',
Expand All @@ -49,14 +49,10 @@ export default {
'turbo-shmup-button-mask-4-label': 'Charge Button 4 Assignment',
'turbo-shmup-mix-mode-label': 'Simultaneous Priority Mode',
'joystick-selection-slider-header-text': 'Joystick Selection Slider',
'joystick-selection-slider-pin-one-label': 'Slider Pin One',
'joystick-selection-slider-pin-two-label': 'Slider Pin Two',
'joystick-selection-slider-mode-zero-label': 'Slider Pin Mode Default',
'joystick-selection-slider-mode-one-label': 'Slider Pin Mode One',
'joystick-selection-slider-mode-two-label': 'Slider Pin Mode Two',
'input-reverse-header-text': 'Input Reverse',
'input-reverse-button-pin-label': 'Reverse Input Pin',
'input-reverse-led-pin-label': 'Reverse Input Pin LED',
'input-reverse-led-pin-label': 'Reverse Input LED Pin',
'input-reverse-action-up-label': 'Reverse Up',
'input-reverse-action-down-label': 'Reverse Down',
'input-reverse-action-left-label': 'Reverse Left',
Expand Down
21 changes: 21 additions & 0 deletions www/src/Locales/zh-CN/Addons/Rotary.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
export default {
'header-text': '旋转编码器',
'encoder-one-label': '编码器 1',
'encoder-two-label': '编码器 2',
'encoder-pin-a-label': '引脚 A/CLK',
'encoder-pin-b-label': '引脚 B/DT',
'encoder-ppr-label': '每圈脉冲数 (PPR)',
'encoder-reset-after-label': '复位等待时间 (ms)',
'encoder-allow-wrap-around-label': '允许回绕',
'encoder-multiplier-label': '乘数',
'encoder-mode-label': '控制模式',
'encoder-mode-none': '无',
'encoder-mode-left-analog-x': '左模拟摇杆 X 轴',
'encoder-mode-left-analog-y': '左模拟摇杆 Y 轴',
'encoder-mode-right-analog-x': '右模拟摇杆 X 轴',
'encoder-mode-right-analog-y': '右模拟摇杆 Y 轴',
'encoder-mode-left-trigger': '左扳机键',
'encoder-mode-right-trigger': '右扳机键',
'encoder-mode-dpad-x': '十字键 左/右',
'encoder-mode-dpad-y': '十字键 上/下',
};
77 changes: 77 additions & 0 deletions www/src/Locales/zh-CN/Addons/WiiAddon.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
export default {
'header-text': 'Wii 扩展',
'sub-header-text':
'<0>注意:如果显示屏同时启用,此插件将被禁用。</0>',
'sda-pin-label': 'I2C SDA 引脚',
'scl-pin-label': 'I2C SCL 引脚',
'block-label': 'I2C 模块',
'speed-label': 'I2C 速度',
'section-digital': '数字',
'section-analog': '模拟',
'option-simple': '简易',
'option-advanced': '进阶',
'controller-nunchuk': '双截棍手柄',
'controller-classic': '经典',
'controller-taiko': '太鼓',
'controller-guitar': '吉他',
'controller-drum': '鼓',
'controller-turntable': '转台',
'controller-button-a': 'A',
'controller-button-b': 'B',
'controller-button-c': 'C',
'controller-button-x': 'X',
'controller-button-y': 'Y',
'controller-button-z': 'Z',
'controller-button-l': 'L',
'controller-button-r': 'R',
'controller-button-zl': 'ZL',
'controller-button-zr': 'ZR',
'controller-button-minus': 'Minus',
'controller-button-home': 'Home',
'controller-button-plus': 'Plus',
'controller-button-up': '上',
'controller-button-down': '下',
'controller-button-left': '左',
'controller-button-right': '右',
'controller-button-euphoria': 'Euphoria',
'controller-button-leftgreen': '绿色 (左侧)',
'controller-button-leftred': '红色 (左侧)',
'controller-button-leftblue': '蓝色 (左侧)',
'controller-button-rightgreen': '绿色 (右侧)',
'controller-button-rightred': '红色 (右侧)',
'controller-button-rightblue': '蓝色 (右侧)',
'controller-button-orange': '橙色',
'controller-button-red': '红色',
'controller-button-blue': '蓝色',
'controller-button-green': '绿色',
'controller-button-yellow': '黄色',
'controller-button-pedal': '踏板',
'controller-button-strumup': '向上扫弦',
'controller-button-strumdown': '向下扫弦',
'controller-button-donleft': ' 咚 左侧',
'controller-button-katleft': '咔 右侧',
'controller-button-donright': '咚 右侧',
'controller-button-katright': '咔 左侧',
'controller-analog-stick': '摇杆',
'controller-analog-leftstick': '左摇杆',
'controller-analog-rightstick': '右摇杆',
'controller-analog-lefttrigger': 'L',
'controller-analog-righttrigger': 'R',
'controller-analog-leftturntable': '转台左转',
'controller-analog-rightturntable': '转台右转',
'controller-analog-fader': '音量控制器',
'controller-analog-effects': '音效旋钮',
'controller-analog-whammybar': '颤音摇把',
'controller-analog-axis-x': 'X 轴 +/-',
'controller-analog-axis-y': 'Y 轴 +/-',
'controller-analog-axis-trigger': '扳机键',
'analog-axis-mode-trigger':
'<0>完整的值范围将被发送到接口。</0>',
'analog-axis-mode-button':
'<0>这个功能作为一个数字开关,当达到定义的阈值后,会设置一个“按下”的状态。</0>',
'analog-axis-mode-normal-direction':
'<0>所有的值范围将被转换为游戏杆的一个轴,其中最低值被认为是负边缘,最大值是正边缘。</0>',
'analog-axis-mode-invert-direction':
'<0>所有的值范围将被转换为游戏杆的一个轴,其中最低值被认为是正边缘,最大值是负边缘。</0>',
'button-save': '保存控制器',
};
168 changes: 101 additions & 67 deletions www/src/Locales/zh-CN/AddonsConfig.jsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
export default {
'header-text': '附加功能配置',
'sub-header-text': '使用下面的选项重新配置 GP2040-CE 中的附加功能。',
'header-text': '插件配置',
'sub-header-text':
'使用下面的选项重新配置 GP2040-CE 中的插件。',
'bootsel-header-text': 'BOOTSEL 键配置',
'bootsel-sub-header-text':
'注意:如果设置了按键,OLED 可能会失去响应,取消设置以恢复。',
'bootsel-button-pin-label': 'BOOTSEL 键',
'on-board-led-configuration-label': '板载 LED 配置',
'on-board-led-mode-label': 'LED 模式',
'analog-header-text': '模拟',
'on-board-led-mode-option-0': '关闭',
'on-board-led-mode-option-1': '模式指示器',
'on-board-led-mode-option-2': '输入检测',
'on-board-led-mode-option-3': 'PS4/5 认证',
'analog-header-text': '模拟摇杆 (Analog)',
'analog-warning':
'注意:启用此功能时,模拟摇杆将会覆盖游戏控制器的左摇杆和右摇杆输入',
'analog-available-pins-text': '可用引脚: {{pins}}',
'analog-available-pins-option-not-set': 'None',
'analog-available-pins-option-not-set': '',
'analog-adc-1-pin-x-label': '模拟摇杆1 X 引脚',
'analog-adc-1-pin-y-label': '模拟摇杆1 Y 引脚',
'analog-adc-1-mode-label': '模拟摇杆1 模式',
Expand All @@ -21,11 +26,13 @@ export default {
'analog-adc-2-mode-label': '模拟摇杆2 模式',
'analog-adc-2-invert-label': '模拟摇杆2 反转',
'analog-force-circularity': '强制循环',
'inner-deadzone-size': '内部死区范围 (%)',
'outer-deadzone-size': '外部死区范围 (%)',
'analog-auto-calibrate': '自动校准',
'turbo-header-text': 'Turbo 连发',
'turbo-button-pin-label': 'Turbo 引脚',
'turbo-led-pin-label': 'Turbo 引脚 LED',
'turbo-shmup-dial-pin-label': 'Turbo Dial(仅ADC',
'turbo-header-text': '连发 (Turbo)',
'turbo-button-pin-label': '连发引脚',
'turbo-led-pin-label': '连发 LED 引脚',
'turbo-shmup-dial-pin-label': '连发旋钮 (仅ADC)',
'turbo-shot-count-label': '每秒连发次数',
'turbo-shmup-mode-label': 'SHMUP 模式',
'turbo-shmup-always-on-1-label': '总是开启连发 1',
Expand All @@ -41,98 +48,125 @@ export default {
'turbo-shmup-button-mask-3-label': '蓄力按钮 3 分配',
'turbo-shmup-button-mask-4-label': '蓄力按钮 4 分配',
'turbo-shmup-mix-mode-label': '同时优先模式',
'joystick-selection-slider-header-text': '方向模式选择',
'joystick-selection-slider-pin-one-label': '引脚1',
'joystick-selection-slider-pin-two-label': '引脚2',
'joystick-selection-slider-mode-zero-label': '默认模式',
'joystick-selection-slider-mode-one-label': '方向模式1',
'joystick-selection-slider-mode-two-label': '方向模式2',
'joystick-selection-slider-header-text': '方向模式选择滑块',
'joystick-selection-slider-mode-zero-label': '滑块默认模式',
'input-reverse-header-text': '输入反转',
'input-reverse-button-pin-label': '输入反转引脚',
'input-reverse-led-pin-label': '输入反转引脚 LED',
'input-reverse-led-pin-label': '输入反转 LED 引脚 ',
'input-reverse-action-up-label': '反转上方向',
'input-reverse-action-down-label': '反转下方向',
'input-reverse-action-left-label': '反转左方向',
'input-reverse-action-right-label': '反转右方向',
'reverse-action-disable-label': '禁用',
'reverse-action-enable-label': '启用',
'reverse-action-neutral-label': '中性',
'i2c-analog-ads1219-header-text': 'I2C 模拟 ADS1219',
'i2c-analog-ads1219-scl-pin-label': 'I2C 模拟 ADS1219 SCL 引脚',
'i2c-analog-ads1219-sda-pin-label': 'I2C 模拟 ADS1219 SDA 引脚',
'i2c-analog-ads1219-block-label': 'I2C 模拟 ADS1219 Block',
'i2c-analog-ads1219-speed-label': 'I2C 模拟 ADS1219 Speed',
'i2c-analog-ads1219-address-label': 'I2C 模拟 ADS1219 地址',
'dual-directional-input-header-text': 'Dual Directional 输入',
'dual-directional-input-up-pin-label': 'Dual Up 引脚',
'dual-directional-input-down-pin-label': 'Dual Down 引脚',
'dual-directional-input-left-pin-label': 'Dual Left 引脚',
'dual-directional-input-right-pin-label': 'Dual Right 引脚',
'dual-directional-input-dpad-mode-label': 'Dual 方向模式',
'i2c-analog-ads1219-header-text': 'I2C Analog ADS1219',
'i2c-analog-ads1219-scl-pin-label': 'I2C Analog ADS1219 SCL 引脚',
'i2c-analog-ads1219-sda-pin-label': 'I2C Analog ADS1219 SDA 引脚',
'i2c-analog-ads1219-block-label': 'I2C Analog ADS1219 模块',
'i2c-analog-ads1219-speed-label': 'I2C Analog ADS1219 速度',
'i2c-analog-ads1219-address-label': 'I2C Analog ADS1219 地址',
'dual-directional-input-header-text': '双重方向输入 (DDI)',
'dual-directional-input-up-pin-label': '双重 Up 引脚',
'dual-directional-input-down-pin-label': '双重 Down 引脚',
'dual-directional-input-left-pin-label': '双重 Left 引脚',
'dual-directional-input-right-pin-label': '双重 Right 引脚',
'dual-directional-input-dpad-mode-label': '双十字键模式',
'dual-directional-input-combine-mode-label': '混合模式',
'dual-directional-input-four-way-joystick-mode-label':
'Dual Directional 4向摇杆模式',
'tilt-header-text': 'Tilt 输入',
'tilt-1-pin-label': 'Tilt 1 引脚',
'tilt-2-pin-label': 'Tilt 2 引脚',
'tilt-left-analog-up-pin-label': 'Tilt Left Analog Up 引脚',
'tilt-left-analog-down-pin-label': 'Tilt Left Analog Down 引脚',
'tilt-left-analog-left-pin-label': 'Tilt Left Analog Left 引脚',
'tilt-left-analog-right-pin-label': 'Tilt Left Analog Right 引脚',
'tilt-right-analog-up-pin-label': 'Tilt Right Analog Up 引脚',
'tilt-right-analog-down-pin-label': 'Tilt Right Analog Down 引脚',
'tilt-right-analog-left-pin-label': 'Tilt Right Analog Left 引脚',
'tilt-right-analog-right-pin-label': 'Tilt Right Analog Right 引脚',
'tilt-socd-mode-label': 'Tilt SOCD 模式',
'双重4向摇杆模式',
'tilt-header-text': '倾斜输入 (Tilt Input)',
'tilt-1-pin-label': '倾斜1 引脚',
'tilt-1-factor-left-x-label': '倾斜1 左X轴百分比',
'tilt-1-factor-left-y-label': '倾斜1 左Y轴百分比',
'tilt-1-factor-right-x-label': '倾斜1 右X轴百分比',
'tilt-1-factor-right-y-label': '倾斜1 右Y轴百分比',
'tilt-2-pin-label': '倾斜2 引脚',
'tilt-2-factor-left-x-label': '倾斜2 左X轴百分比',
'tilt-2-factor-left-y-label': '倾斜2 左Y轴百分比',
'tilt-2-factor-right-x-label': '倾斜2 右X轴百分比',
'tilt-2-factor-right-y-label': '倾斜2 右Y轴百分比',
'tilt-left-analog-up-pin-label': '倾斜左模拟 Up 引脚',
'tilt-left-analog-down-pin-label': '倾斜左模拟 Down 引脚',
'tilt-left-analog-left-pin-label': '倾斜左模拟 Left 引脚',
'tilt-left-analog-right-pin-label': '倾斜左模拟 Right 引脚',
'tilt-right-analog-up-pin-label': '倾斜右模拟 Up 引脚',
'tilt-right-analog-down-pin-label': '倾斜右模拟 Down 引脚',
'tilt-right-analog-left-pin-label': '倾斜右模拟 Left 引脚',
'tilt-right-analog-right-pin-label': '倾斜右模拟 Right 引脚',
'tilt-socd-mode-label': '倾斜 SOCD 模式',
'buzzer-speaker-header-text': '蜂鸣器',
'buzzer-speaker-pin-label': '蜂鸣器引脚',
'buzzer-speaker-enable-pin-label': '启用蜂鸣器引脚',
'buzzer-speaker-volume-label': '蜂鸣器音量',
'extra-button-header-text': '额外按键配置',
'extra-button-pin-label': '额外按键引脚',
'extra-button-map-label': '额外按键',
'player-number-header-text': '玩家编号(仅X-INPUT模式生效)',
'player-number-header-text': '玩家编号 (仅 X-INPUT 模式生效)',
'player-number-sub-header': '警告',
'player-number-sub-header-text':
'警告: 请仅在连接了多个启用玩家编号功能的 GP2040-CE 设备时启用此功能 ',
'请仅在连接了多个启用玩家编号功能的 GP2040-CE 设备时启用此功能 ',
'player-number-label': '玩家编号',
'socd-cleaning-mode-selection-slider-header-text': 'SOCD 覆盖模式',
'socd-cleaning-mode-selection-slider-header-text':
'SOCD 覆盖模式选择滑块',
'socd-cleaning-mode-selection-slider-sub-header-text':
'注意:PS4, PS3 and Nintendo Switch输入模式不支持设置SOCD覆盖模式为关闭,默认设置为回中模式。',
'socd-cleaning-mode-selection-slider-mode-default-label': 'SOCD 默认模式',
'socd-cleaning-mode-selection-slider-mode-one-label': 'SOCD 模式1',
'注意:PS4, PS3 and Nintendo Switch输入模式不支持设置 SOCD 覆盖模式为关闭,默认设置为回中模式。',
'socd-cleaning-mode-selection-slider-mode-default-label':
'SOCD 滑块默认模式',
'socd-cleaning-mode-selection-slider-mode-one-label': 'SOCD 滑块模式 1',
'socd-cleaning-mode-selection-slider-pin-one-label': '引脚 1',
'socd-cleaning-mode-selection-slider-mode-two-label': 'SOCD 模式2',
'socd-cleaning-mode-selection-slider-mode-two-label': 'SOCD 滑块模式 2',
'socd-cleaning-mode-selection-slider-pin-two-label': '引脚 2',
'ps4-mode-header-text': 'PS4 模式',

'ps4-mode-sub-header': '免责声明!',
'ps4-mode-sub-header-text': 'GP2040-CE 从不会提供这些文件!!!',
'ps4-mode-text': '请上传以下3个文件,然后点击"验证并保存"启用PS4模式。',
'ps4-mode-private-key-label': 'Private Key (PEM)',
'ps4-mode-serial-number-label': 'Serial Number (16 Bytes in Hex Ascii)',
'ps4-mode-signature-label': 'Signature (256 Bytes in Binary)',
'wii-extension-header-text': 'Wii 扩展',
'wii-extension-sub-header-text':
'<0>注意: 如果同时启用了显示屏功能, 此附加功能将会被禁用。</0> <1>当前已支持的控制器</1> <0>Classic/Classic Pro:支持模拟摇杆和十字键。 B = B1, A = B2, Y = B3, X = B4, L = L1, ZL = L2, R = R1, ZR = R2, Minus = S1, Plus = S2, Home = A1</0> <0>Nunchuck:支持模拟摇杆。 C = B1, Z = B2</0> <0>Guitar Hero Guitar:支持模拟摇杆。 Green = B1, Red = B2, Blue = B3, Yellow = B4, Orange = L1, Strum Up = Up, Strum Down = Down, Minus = S1, Plus = S2</0>',
'wii-extension-sda-pin-label': 'I2C SDA 引脚',
'wii-extension-scl-pin-label': 'I2C SCL 引脚',
'wii-extension-block-label': 'I2C Block',
'wii-extension-speed-label': 'I2C 速度',
'snes-extension-header-text': 'SNES 扩展配置',
'ps4-mode-sub-header': '免责声明!',
'ps4-mode-sub-header-text': 'GP2040-CE 从不会提供这些文件!!!',
'ps4-mode-text':
'请上传以下 3 个文件,然后点击“验证并保存”启用 PS4 模式。',
'ps4-mode-private-key-label': '密钥 (PEM)',
'ps4-mode-serial-number-label': '序列号 (16 字节的十六进制 ASCII 码)',
'ps4-mode-signature-label': '签名 (256 字节的二进制文件)',
'snes-extension-header-text': 'SNES 扩展配置',
'snes-extension-sub-header-text':
'<0>注意: 如果同时启用了显示屏功能, 此附加功能将会被禁用。</0> <1>当前已支持的控制器</1> <0>SNES pad:支持十字键。 B = B1, A = B2, Y = B3, X = B4, L = L1, R = R1, Select = S1, Start = S2</0> <0>SNES mouse:支持模拟摇杆。 Left Click = B1, Right Click = B2</0> <0>NES:支持十字键。 B = B1, A = B2, Select = S1, Start = S2</0>',
'<0>注意: 如果同时启用了显示屏功能, 此插件将会被禁用。</0> <1>当前已支持的控制器</1> <0>SNES pad:支持十字键。 B = B1, A = B2, Y = B3, X = B4, L = L1, R = R1, Select = S1, Start = S2</0> <0>SNES mouse:支持模拟摇杆。 Left Click = B1, Right Click = B2</0> <0>NES:支持十字键。 B = B1, A = B2, Select = S1, Start = S2</0>',
'snes-extension-clock-pin-label': 'Clock 引脚',
'snes-extension-latch-pin-label': 'Latch 引脚',
'snes-extension-data-pin-label': 'Data 引脚',
'focus-mode-header-text': '专注模式配置',
'focus-mode-header-text': '专注模式配置',
'focus-mode-pin-label': '专注模式引脚',
'keyboard-host-header-text': '键盘配置',
'keyboard-host-sub-header-text':
'以下设置数据 +, - 和 5V(可选)引脚. 仅数据 + 和 5V 引脚可配置。',
'以下设置数据 +, - 和 5V(可选)引脚。仅数据 + 和 5V 引脚可配置。',
'keyboard-host-d-plus-label': 'D+',
'keyboard-host-d-minus-label': 'D-',
'keyboard-host-five-v-label': '5V Power(可选)',
'keyboard-host-five-v-label': '5V 供电 (可选)',
'pin-config-moved-to-core-text':
'注意:此插件的引脚现在已在引脚映射页面上进行配置。',
'input-history-header-text': '输入历史',
'input-history-length-label': '历史长度(字符)',
'input-history-length-label': '历史长度 (字符)',
'input-history-col-label': '列',
'input-history-row-label': '行',
'analog1256-header-text': 'Analog ADS1256 (SPI)',
'analog1256-block-label': 'SPI 模块',
'analog1256-cs-pin': 'Chip Select (CS) 引脚',
'analog1256-drdy-pin': 'Data Ready (DRDY) 引脚',
'analog1256-analog-max': '模拟最大值',
'analog1256-enable-triggers': '启用触发器',
'joystick-selection-slider-mode-0': '十字键',
'joystick-selection-slider-mode-1': '左模拟摇杆',
'joystick-selection-slider-mode-2': '右模拟摇杆',
'dual-directional-input-dual-dpad-mode-0': '十字键',
'dual-directional-input-dual-dpad-mode-1': '左模拟摇杆',
'dual-directional-input-dual-dpad-mode-2': '右模拟摇杆',
'dual-directional-input-combine-mode-0': '混合',
'dual-directional-input-combine-mode-1': '控制器覆盖',
'dual-directional-input-combine-mode-2': 'DDI 覆盖',
'dual-directional-input-combine-mode-3': '无',
'socd-slider-mode-0': '上优先',
'socd-slider-mode-1': '回中',
'socd-slider-mode-2': '后输入优先',
'socd-slider-mode-3': '先输入优先',
'socd-slider-mode-4': 'SOCD 覆盖关闭',
'tilt-socd-mode-0': '上优先',
'tilt-socd-mode-1': '回中',
'tilt-socd-mode-2': '后输入优先',
};
7 changes: 6 additions & 1 deletion www/src/Locales/zh-CN/BackupPage.jsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
export default {
'pin-version-warning-text':
'从 v0.7.6 之前的文件导入引脚映射没有任何效果。',
'saved-success-message': '保存为:{{name}}',
'save-header-text': '备份至文件',
'save-export-option-label': '导出 {{api}} 选项',
Expand All @@ -8,6 +10,9 @@ export default {
'api-gamepad-text': '游戏控制器',
'api-led-text': 'LED',
'api-ledTheme-text': '自定义 LED 主题',
'api-macros-text': '宏映射',
'api-pins-text': '引脚映射',
'api-addons-text': '附加功能',
'api-profiles-text': '档案映射',
'api-addons-text': '插件',
'api-splash-text': '启动图像',
};
Loading

0 comments on commit 5ec189c

Please sign in to comment.