From 30ef5680ae7d2d348d517df53d7fcb0215927d53 Mon Sep 17 00:00:00 2001 From: ian zhang Date: Sat, 9 Aug 2025 13:25:08 +0800 Subject: [PATCH 1/2] docs: translate pen and mouse as Chinese --- .../webdriver/actions_api/mouse.zh-cn.md | 7 +++--- .../webdriver/actions_api/pen.zh-cn.md | 22 +++++++++---------- 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/website_and_docs/content/documentation/webdriver/actions_api/mouse.zh-cn.md b/website_and_docs/content/documentation/webdriver/actions_api/mouse.zh-cn.md index a24aa5aa0cf..ce77a1349a2 100644 --- a/website_and_docs/content/documentation/webdriver/actions_api/mouse.zh-cn.md +++ b/website_and_docs/content/documentation/webdriver/actions_api/mouse.zh-cn.md @@ -1,10 +1,9 @@ --- -title: "Mouse actions" -linkTitle: "Mouse" +title: "鼠标操作" +linkTitle: "鼠标" weight: 4 -needsTranslation: true description: > - A representation of any pointer device for interacting with a web page. + 任何用于与网页进行交互的指针设备的表示形式. aliases: [ "/documentation/zh-cn/support_packages/mouse_and_keyboard_actions_in_detail/", "/zh-cn/documentation/support_packages/mouse_and_keyboard_actions_in_detail/" diff --git a/website_and_docs/content/documentation/webdriver/actions_api/pen.zh-cn.md b/website_and_docs/content/documentation/webdriver/actions_api/pen.zh-cn.md index 29bc6f2a5b6..bc388e2d570 100644 --- a/website_and_docs/content/documentation/webdriver/actions_api/pen.zh-cn.md +++ b/website_and_docs/content/documentation/webdriver/actions_api/pen.zh-cn.md @@ -1,22 +1,22 @@ --- -title: "Pen actions" -linkTitle: "Pen" +title: "笔操作" +linkTitle: "笔" weight: 5 description: > - A representation of a pen stylus kind of pointer input for interacting with a web page. + 一种用于与网页交互的类似笔尖的指针输入设备的表示. --- {{< badge-browser browser=Chromium wpt="perform_actions/pointer.py" >}} -A Pen is a type of pointer input that has most of the same behavior as a mouse, but can -also have event properties unique to a stylus. Additionally, while a mouse -has 5 buttons, a pen has 3 equivalent button states: +笔是一种指针输入设备,其行为大多与鼠标相同, +但也可以具有触控笔特有的事件属性。 +此外,鼠标有 5 个按钮,而笔有 3 种等效的按钮状态: -* 0 — Touch Contact (the default; equivalent to a left click) -* 2 — Barrel Button (equivalent to a right click) -* 5 — Eraser Button (currently unsupported by drivers) +* 0 - 触摸接触(默认设置;相当于左键单击) +* 2 - 桶形按钮(相当于右键点击) +* 5 - 橡皮擦按钮(当前驱动程序不支持) -## Using a Pen +## 使用笔 {{< tabpane text=true >}} {{< tab header="Java" >}} @@ -42,7 +42,7 @@ has 5 buttons, a pen has 3 equivalent button states: {{< /tab >}} {{< /tabpane >}} -## Adding Pointer Event Attributes +## 添加指针事件属性 {{< badge-version version="4.2" >}} From 8e8c70909d26ab380f508fc5d84dabe4188e0504 Mon Sep 17 00:00:00 2001 From: ian zhang Date: Sat, 9 Aug 2025 13:33:33 +0800 Subject: [PATCH 2/2] docs: translate pen and mouse as Chinese --- .../documentation/webdriver/actions_api/pen.zh-cn.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/website_and_docs/content/documentation/webdriver/actions_api/pen.zh-cn.md b/website_and_docs/content/documentation/webdriver/actions_api/pen.zh-cn.md index bc388e2d570..5cf7a9a2637 100644 --- a/website_and_docs/content/documentation/webdriver/actions_api/pen.zh-cn.md +++ b/website_and_docs/content/documentation/webdriver/actions_api/pen.zh-cn.md @@ -1,6 +1,6 @@ --- -title: "笔操作" -linkTitle: "笔" +title: "触控笔操作" +linkTitle: "触控笔" weight: 5 description: > 一种用于与网页交互的类似笔尖的指针输入设备的表示. @@ -8,15 +8,15 @@ description: > {{< badge-browser browser=Chromium wpt="perform_actions/pointer.py" >}} -笔是一种指针输入设备,其行为大多与鼠标相同, +触控笔是一种指针输入设备,其行为大多与鼠标相同, 但也可以具有触控笔特有的事件属性。 -此外,鼠标有 5 个按钮,而笔有 3 种等效的按钮状态: +此外,鼠标有 5 个按钮,而触控笔有 3 种等效的按钮状态: * 0 - 触摸接触(默认设置;相当于左键单击) -* 2 - 桶形按钮(相当于右键点击) +* 2 - 桶形按钮/侧键(相当于右键点击) * 5 - 橡皮擦按钮(当前驱动程序不支持) -## 使用笔 +## 使用触控笔 {{< tabpane text=true >}} {{< tab header="Java" >}}