Skip to content

Commit 50096b9

Browse files
committed
fix(a11y): wire about dialog locale binding
1 parent 3f1b028 commit 50096b9

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

tests/test_locale_manager.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,11 @@ def test_chinese_locales_do_not_passthrough_english(self):
109109
self.ENGLISH_VALUES,
110110
f"{locale}.{key} still ships English",
111111
)
112+
self.assertNotEqual(
113+
_TRANSLATIONS[locale]["scroll.smart_shift"],
114+
"SmartShift",
115+
f"{locale}.scroll.smart_shift still ships English",
116+
)
112117

113118

114119
if __name__ == "__main__":

ui/locale_manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@
333333
"scroll.wheel_mode_desc": "\u5728\u89e6\u89c9\u68d8\u8f6e\u6eda\u52a8\u548c\u987a\u6ed1\u98de\u8f6e\u6eda\u52a8\u4e4b\u95f4\u5207\u6362\u3002",
334334
"scroll.ratchet": "\u68d8\u8f6e",
335335
"scroll.freespin": "\u98de\u8f6e",
336-
"scroll.smart_shift": "SmartShift",
336+
"scroll.smart_shift": "智能切换",
337337
"scroll.smart_shift_desc": "\u6eda\u8f6e\u6eda\u52a8\u8f83\u5feb\u65f6\uff0c\u81ea\u52a8\u4ece\u9010\u884c\u6eda\u52a8\u5207\u6362\u5230\u9ad8\u901f\u98de\u8f6e\u6a21\u5f0f\u3002",
338338
"scroll.sensitivity_value": "\u7075\u654f\u5ea6",
339339
"scroll.scroll_mode_section": "\u6eda\u8f6e\u6a21\u5f0f",
@@ -543,7 +543,7 @@
543543
"scroll.wheel_mode_desc": "\u5728\u89f8\u89ba\u68d8\u8f2a\u6372\u52d5\u548c\u9806\u6ed1\u98db\u8f2a\u6372\u52d5\u4e4b\u9593\u5207\u63db\u3002",
544544
"scroll.ratchet": "\u68d8\u8f2a",
545545
"scroll.freespin": "\u98db\u8f2a",
546-
"scroll.smart_shift": "SmartShift",
546+
"scroll.smart_shift": "智慧切換",
547547
"scroll.smart_shift_desc": "\u6372\u8ef8\u6eda\u52d5\u8f03\u5feb\u6642\uff0c\u81ea\u52d5\u5f9e\u9010\u884c\u6372\u52d5\u5207\u63db\u5230\u9ad8\u901f\u98db\u8f2a\u6a21\u5f0f\u3002",
548548
"scroll.sensitivity_value": "\u9748\u654f\u5ea6",
549549
"scroll.scroll_mode_section": "\u6eda\u8f2a\u6a21\u5f0f",

ui/qml/Main.qml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ ApplicationWindow {
2626
: (Qt.platform.os === "windows"
2727
? "Consolas"
2828
: "monospace")
29+
property var s: lm.strings
2930
property int currentPage: 0
3031
property Item hoveredNavItem: null
3132
property string hoveredNavText: ""

0 commit comments

Comments
 (0)