Skip to content

Commit

Permalink
Add zh-CN localization for new lables (OpenStickCommunity#1157)
Browse files Browse the repository at this point in the history
* Add CN localization for new lables

* Apply changes made in PR OpenStickCommunity#1156 to avoid conflicts

* format bad indentation

* remove quotation marks

---------

Co-authored-by: Luke A <arntsonl@gmail.com>
  • Loading branch information
rebornsick and arntsonl authored Sep 28, 2024
1 parent 209de48 commit ad31775
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 21 deletions.
1 change: 0 additions & 1 deletion www/src/Locales/en/PinMapping.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ export default {
'pin-viewer': 'Pin viewer',
'pin-pressed': 'Pressed pin: {{pressedPin}}',
'pin-header-label': 'Pin',

'profile-label-title': 'Profile name',
'profile-label-description':
'Max 16 characters. Letters, numbers, and spaces allowed.',
Expand Down
21 changes: 17 additions & 4 deletions www/src/Locales/zh-CN/AddonsConfig.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,13 @@ export default {
'analog-adc-2-pin-y-label': '模拟摇杆2 Y 引脚',
'analog-adc-2-mode-label': '模拟摇杆2 模式',
'analog-adc-2-invert-label': '模拟摇杆2 反转',
'analog-force-circularity': '强制循环',
'analog-force-circularity': '强制圆形',
'inner-deadzone-size': '内部死区范围 (%)',
'outer-deadzone-size': '外部死区范围 (%)',
'analog-auto-calibrate': '自动校准',
'analog-smoothing': '平滑模拟信号',
'smoothing-factor': '平滑因数',
'analog-error-label': '误差率',
'turbo-header-text': '连发 (Turbo)',
'turbo-button-pin-label': '连发引脚',
'turbo-led-pin-label': '连发 LED 引脚',
Expand Down Expand Up @@ -116,9 +119,12 @@ export default {
'snes-extension-data-pin-label': 'Data 引脚',
'focus-mode-header-text': '专注模式配置',
'focus-mode-pin-label': '专注模式引脚',
'keyboard-host-header-text': '键盘配置',
'keyboard-host-sub-header-text':
'以下设置数据 +, - 和 5V(可选)引脚。仅数据 + 和 5V 引脚可配置。',
'keyboard-host-header-text': '键盘/鼠标主机配置',
'keyboard-host-sub-header-text': '键盘按键',
'keyboard-host-mouse-header-text': '鼠标按键',
'keyboard-host-left-mouse': '左键',
'keyboard-host-middle-mouse': '中键',
'keyboard-host-right-mouse': '右键',
'pin-config-moved-to-core-text':
'注意:此插件的引脚现在已在引脚映射页面上进行配置。',
'input-history-header-text': '输入历史',
Expand Down Expand Up @@ -149,4 +155,11 @@ export default {
'tilt-socd-mode-0': '上优先',
'tilt-socd-mode-1': '回中',
'tilt-socd-mode-2': '后输入优先',
'drv8833-rumble-header-text': 'DRV8833 马达震动配置',
'drv8833-rumble-left-motor-pin-label': '左马达引脚',
'drv8833-rumble-right-motor-pin-label': '右马达引脚',
'drv8833-rumble-motor-sleep-pin-label': '马达休眠引脚',
'drv8833-rumble-pwm-frequency-label': 'PWM 频率',
'drv8833-rumble-duty-min-label': '最小占空比',
'drv8833-rumble-duty-max-label': '最大占空比',
};
4 changes: 2 additions & 2 deletions www/src/Locales/zh-CN/CaptureButton.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export default {
'capture-button-button-label': '使用游戏控制器映射按键',
'capture-button-modal-title': '等待按下按键',
'capture-button-modal-content': '按下游戏控制器上的一个按键。',
'capture-button-modal-title': '等待按键按下',
'capture-button-modal-content': '请按下游戏控制器上的一个按键。',
'capture-button-modal-skip': '跳过按键',
'capture-button-modal-stop': '停止获取',
};
2 changes: 1 addition & 1 deletion www/src/Locales/zh-CN/CustomTheme.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export default {
'sub-header-text':
'在这里,你可以启用和配置自定义 LED 主题。<br />自定义主题可以使用控制器上的“下一个动画”和“上一个动画”快捷键进行切换。',
'list-text':
'<1>单击按键选择正常和按下的颜色。</1> <1>单击背景取消选择颜色</1> <1>右击按键预览按下后的颜色</1>',
'<1>单击按键选择正常和按下的颜色。</1> <1>单击背景取消选择颜色</1> <1>右击按键预览此按键按下后的颜色</1>',
'led-layout-label': '预览布局',
'color-picker-location': '拾色器位置',
'has-custom-theme-label': '启用',
Expand Down
23 changes: 16 additions & 7 deletions www/src/Locales/zh-CN/PinMapping.jsx
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
export default {
'header-text': '引脚映射',
'sub-header-text':
'在这里,您可以配置哪个引脚对应哪个动作。如果您不确定哪个按钮连接到哪个引脚,请尝试使用引脚查看器。',
'使用引脚查看器来查看按键到引脚的连接。',
'alert-text':
'将按键映射到未连接或不可用的引脚可能会导致设备无法正常工作。要清除无效配置,请转到 <2>恢复默认设置</2> 页面。',
'pin-viewer': '引脚查看器',
'pin-pressed': '按下的引脚:{{pressedPin}}',
'pin-header-label': '引脚',
'profile-label-title': '档案名称',
'profile-label-description':
'最多16个字符。允许使用字母、数字和空格。',
'profile-pin-mapping-title': '{{profileLabel}} - 引脚映射',
'profile-label-default': '档案 {{profileNumber}}',
'profile-label-default': 'Profile {{profileNumber}}',
'profile-add-button': '+ 新增档案',
'profile-disabled': ' - (禁用)',
'profile-enabled-tooltip':
'禁用的档案在使用快捷键切换档案时将不可用。',
'profile-pins-warning':
'尽量避免修改已设置为切换档案快捷键的按键或方向键,否则之后将很难理解你选择的档案配置!',
'profile-copy-base': '复制基础档案',
Expand Down Expand Up @@ -40,6 +47,8 @@ export default {
BUTTON_PRESS_A2: 'A2',
BUTTON_PRESS_L3: 'L3',
BUTTON_PRESS_R3: 'R3',
BUTTON_PRESS_A3: 'A3',
BUTTON_PRESS_A4: 'A4',
BUTTON_PRESS_FN: 'Function',
BUTTON_PRESS_DDI_UP: 'DDI 上',
BUTTON_PRESS_DDI_DOWN: 'DDI 下',
Expand All @@ -48,11 +57,11 @@ export default {
SUSTAIN_DP_MODE_DP: '方向模式: 十字键',
SUSTAIN_DP_MODE_LS: '方向模式: 左摇杆',
SUSTAIN_DP_MODE_RS: '方向模式: 右摇杆',
SUSTAIN_SOCD_MODE_UP_PRIO: '上优先 SOCD 覆盖',
SUSTAIN_SOCD_MODE_NEUTRAL: '回中 SOCD 覆盖',
SUSTAIN_SOCD_MODE_SECOND_WIN: '后输入优先 SOCD 覆盖',
SUSTAIN_SOCD_MODE_FIRST_WIN: '先输入优先 SOCD 覆盖',
SUSTAIN_SOCD_MODE_BYPASS: '关闭 SOCD 覆盖',
SUSTAIN_SOCD_MODE_UP_PRIO: 'SOCD覆盖 上优先',
SUSTAIN_SOCD_MODE_NEUTRAL: 'SOCD覆盖 回中',
SUSTAIN_SOCD_MODE_SECOND_WIN: 'SOCD覆盖 后输入优先',
SUSTAIN_SOCD_MODE_FIRST_WIN: 'SOCD覆盖 先输入优先',
SUSTAIN_SOCD_MODE_BYPASS: 'SOCD覆盖 关闭',
BUTTON_PRESS_TURBO: '连发',
BUTTON_PRESS_MACRO: '宏按钮',
BUTTON_PRESS_MACRO_1: '宏 1',
Expand Down
27 changes: 21 additions & 6 deletions www/src/Locales/zh-CN/SettingsPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default {
xinput: 'XInput',
'nintendo-switch': 'Nintendo Switch',
ps3: 'PS3',
generic: '通用 HID 设备',
generic: '通用HID设备',
keyboard: '键盘',
ps4: 'PS4',
ps5: 'PS5',
Expand All @@ -36,8 +36,8 @@ export default {
'input-mode-authentication': {
none: '无',
key: '上传的密钥文件',
usb: 'USB 主机',
i2c: '集成的 I2C',
usb: '主机 USB',
i2c: '集成的I2C',
},
'd-pad-mode-label': '方向模式',
'd-pad-mode-options': {
Expand All @@ -55,21 +55,31 @@ export default {
'first-win': '先输入优先',
off: '关闭',
},
'profile-label': '档案',
'debounce-delay-label': '去抖动延迟 (以毫秒为单位)',
'ps4-mode-explanation-text':
'PS4 模式允许 GP2040-CE 作为经过认证的 PS4 控制器运行。',
'ps4-mode-warning-text':
'<span>⏳ 警告 ⏳:</span>在没有认证的情况下 PS4 将在 8 分钟后超时并断开连接。',
'<span>⏳警告⏳:</span>在没有认证的情况下 PS4 将在 8 分钟后超时并断开连接。',
'ps4-usb-host-mode-text':
'<span>补充信息:</span>请确保已启用 USB 外围设备,并已插入兼容 PS4 的 USB 设备。',
'ps4-id-mode-label': '识别模式',
'ps4-id-mode-explanation-text':
'<ul><li>主机模式用于主要连接到 PS4 主机。</li><li>串流/模拟模式仅在连接到需要兼容 DualShock4 控制器的模拟层或远程游玩环境时使用。</li></ul>',
'ps4-id-mode-options': {
console: '主机',
emulation: '串流/模拟',
},
'ps5-mode-explanation-text':
'PS5 模式允许 GP2040-CE 作为经过认证的 PS5 兼容街机摇杆运行。',
'ps5-mode-warning-text':
'<span>⏳ 警告 ⏳:</span>在没有认证的情况下 PS5 将在 8 分钟后超时并断开连接。',
'<span>⏳警告⏳:</span>在没有认证的情况下 PS5 将在 8 分钟后超时并断开连接。',
'ps5-usb-host-mode-text':
'<span>补充信息:</span>请确保已启用 USB 外围设备,并已插入兼容 PS5 的 USB 设备。',
'xbone-mode-text':
'<span>补充信息:</span>Xbox One 模式需要 USB 主机(USB Host)连接和 USB 加密狗才能正确认证。',
'xinput-mode-text':
'<span>补充信息:</span> Xbox 360 模式可以在没有身份验证或连接USB加密狗的情况下工作。',
'hotkey-settings-label': '快捷键设置',
'hotkey-settings-sub-header':
'<strong>Fn</strong> 组合映射在<link_pinmap>引脚映射</link_pinmap>页面提供了一个可映射的Function按键。 要选择 <strong>Fn</strong> 组合映射选项,请同时按住 Function 按键和其他快捷键。<br />此外, 可从下拉列表中选择 <strong>None</strong> 以取消分配按钮',
Expand All @@ -82,7 +92,7 @@ export default {
'home-button': 'Home 键',
'capture-button': 'Capture 键',
'socd-up-priority': 'SOCD 上优先',
'socd-neutral': 'SOCD 回中模式',
'socd-neutral': 'SOCD 回中',
'socd-last-win': 'SOCD 后输入优先',
'socd-first-win': 'SOCD 先输入优先',
'socd-off': 'SOCD 关闭',
Expand All @@ -106,13 +116,18 @@ export default {
'a2-button': 'A2 键',
'a3-button': 'A3 键',
'a4-button': 'A4 键',
'dpad-up': '十字键 上',
'dpad-down': '十字键 下',
'dpad-left': '十字键 左',
'dpad-right': '十字键 右',
'touchpad-button': '触摸板',
'load-profile-1': '加载 档案 #1',
'load-profile-2': '加载 档案 #2',
'load-profile-3': '加载 档案 #3',
'load-profile-4': '加载 档案 #4',
'reboot-default': '重启 GP2040-CE',
'next-profile': '下一个档案',
'previous-profile': '上一个档案',
},
'forced-setup-mode-label': '强制设置模式',
'forced-setup-mode-options': {
Expand Down

0 comments on commit ad31775

Please sign in to comment.