Skip to content

Commit 7d5b1e2

Browse files
committed
i18n: add zh-Hans for blogs
Signed-off-by: 82Flex <82flex@gmail.com>
1 parent b581dcb commit 7d5b1e2

61 files changed

Lines changed: 3425 additions & 139 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

blog/2025-04/a-simple-testcase.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This is a simple testcase that demonstrates how to use the [`touch`](/docs/lua-m
99

1010
:::note
1111
Download the multi-touch gesture recording from the following link:
12-
[rec_20221011184701.lua](assets/rec_20221011184701.lua)
12+
[rec_20221011184701.lua](./assets/rec_20221011184701.lua)
1313
:::
1414

1515
<!-- truncate -->

blog/2025-04/ant-forest-rainy.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ import VCR from './assets/707aca481a605277b1204639d60b806d.mp4';
2424

2525
----
2626

27+
脚本内容如下:
28+
2729
```lua title="自动能量雨@zqbb.lua" showLineNumbers
2830
function 点击(x, y)
2931
if x > 0 then

docs/lua-manual/appendix/cloud-control-apis.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The XXTouch Elite Cloud Control API is developed using the WebSocket protocol,
88

99
We also provide a cloud control server example [XXTouch-CloudControl](https://github.com/XXTouchNG/XXTouch-CloudControl), which you can customize according to your business needs.
1010

11-
![CloudControl.001](img/CloudControl.001.png)
11+
![CloudControl.001](./img/CloudControl.001.png)
1212

1313
You need to [configure the cloud control server address](https://elite.82flex.com/api-283425169) for the `elfclient` client.
1414
Once the client successfully connects to the WebSocket server, the server can communicate with the device following the specifications below.

docs/lua-manual/appendix/error-handling.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ sidebar_position: 4
66

77
XXTouch Elite follows [Lua Error Handling](https://cloudwu.github.io/lua53doc/manual.html#2.3) and outputs error messages and stack trace information to the log file `/var/mobile/Media/1ferver/log/script_error.log`. You can view this file in **X.X.T.E. Application****More****Error Logs**. If the error is not caught, an error prompt will pop up.
88

9-
![Syntax Error](img/Syntax_Error.001.png)
9+
![Syntax Error](./img/Syntax_Error.001.png)
1010

1111
You can explicitly throw an error in Lua code by calling the [error](https://cloudwu.github.io/lua53doc/manual.html#pdf-error) function. If you need to catch these errors in Lua, you can use [pcall](https://cloudwu.github.io/lua53doc/manual.html#pdf-pcall) or [xpcall](https://cloudwu.github.io/lua53doc/manual.html#pdf-xpcall) to call a function in **protected mode**.

docs/lua-manual/appendix/prebuilt-libraries.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ XXTouch Elite fully supports the [Lua programming interface](https://cloudwu.gi
88

99
:::note
1010
You can also refer to the following template to write your own extension libraries.
11-
[Extension\_Template\.zip \(1\.9 MB\)](assets/Extension_Template.zip)
11+
[Extension\_Template\.zip \(1\.9 MB\)](./assets/Extension_Template.zip)
1212
:::
1313

1414
## Open-Source Credits

docs/lua-manual/appendix/screen-coordinates.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ sidebar_position: 10
66

77
Please first turn off the **screen orientation lock** on your device, keep the earpiece at the top, and hold the device **vertically**. The coordinate system is shown in the following figure `Hardware Coordinates`:
88

9-
![Screen_Coordinates.001](img/Screen_Coordinates.001.png)
9+
![Screen_Coordinates.001](./img/Screen_Coordinates.001.png)
1010

1111
XXTouch Elite always uses physical pixels as units, with the hardware resolution coordinate system, rather than the logical resolution coordinate system or the view coordinate system. For information about coordinate systems on different devices, please refer to:
1212

@@ -17,5 +17,5 @@ XXTouch Elite always uses physical pixels as units, with the hardware resolutio
1717
:::tip
1818
In your script, you can change the screen coordinate system using the [`screen.init`](../screen.md#initialize-rotated-coordinate-system-screeninit) function.
1919

20-
![Screen_Coordinates.002](img/Screen_Coordinates.002.png)
20+
![Screen_Coordinates.002](./img/Screen_Coordinates.002.png)
2121
:::

docs/lua-manual/appendix/supported-url-schemes.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ These three methods will wake up XXTouch Elite and trigger corresponding behavi
1414

1515
## Open QR Scanner
1616

17-
![qr-scan](img/qr-scan.png)
17+
![qr-scan](./img/qr-scan.png)
1818

1919
```txt
2020
xxt://scan/
@@ -28,7 +28,7 @@ xxt://scan/
2828

2929
## Run Script
3030

31-
![qr-launch](img/qr-launch.png)
31+
![qr-launch](./img/qr-launch.png)
3232

3333
```txt
3434
xxt://launch/
@@ -46,7 +46,7 @@ xxt://launch/?path=%@
4646

4747
## Stop Script
4848

49-
![qr-stop](img/qr-stop.png)
49+
![qr-stop](./img/qr-stop.png)
5050

5151
```txt
5252
xxt://stop/
@@ -60,7 +60,7 @@ xxt://stop/
6060

6161
## Download Related
6262

63-
![qr-download](img/qr-download.png)
63+
![qr-download](./img/qr-download.png)
6464

6565
```txt
6666
xxt://download/?path=%@&url=%@
@@ -75,7 +75,7 @@ If `path` is not specified, the filename will be automatically guessed from the
7575

7676
## Restore Workspace
7777

78-
![qr-workspace](img/qr-workspace.png)
78+
![qr-workspace](./img/qr-workspace.png)
7979

8080
```txt
8181
xxt://workspace/

docs/lua-manual/auth.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ otp = auth.totp_next(UNIX_timestamp, QR_code_URL[, secret_key])
2626
#### Parameters and Return Values
2727

2828
- UNIX_timestamp
29-
- *integer*, can be obtained using the [`os.time`](https://cloudwu.github.io/lua53doc/manual.html#pdf-os.time) or [`sys.net_time`](sys.md#get-network-time-sysnet_time) functions.
29+
- *integer*, can be obtained using the [`os.time`](https://cloudwu.github.io/lua53doc/manual.html#pdf-os.time) or [`sys.net_time`](./sys.md#get-network-time-sysnet_time) functions.
3030
- QR_code_URL
3131
- *string*, a URL starting with `otpauth://totp/`.
3232
- secret_key
@@ -38,7 +38,7 @@ otp = auth.totp_next(UNIX_timestamp, QR_code_URL[, secret_key])
3838
The time-based one-time password algorithm defined in [RFC 6238](https://www.rfc-editor.org/rfc/rfc6238) is used to generate time-based one-time passwords. It is commonly used in two-factor authentication scenarios such as Google Authenticator.
3939

4040
:::tip
41-
Use the [`screen.qr_decode`](screen.md#-screen-qr-code-recognition-screenqr_decode) or [`image:qr_decode`](img.md#qr-code-recognition-in-an-image-imageqr_decode) functions to recognize QR codes on the screen or in images to obtain the **QR_code_URL**.
41+
Use the [`screen.qr_decode`](./screen.md#-screen-qr-code-recognition-screenqr_decode) or [`image:qr_decode`](./img.md#qr-code-recognition-in-an-image-imageqr_decode) functions to recognize QR codes on the screen or in images to obtain the **QR_code_URL**.
4242
:::
4343

4444
#### Example

docs/lua-manual/clear.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ success = clear.privileges(identifier)
6161
#### Parameters and Return Values
6262

6363
- identifier
64-
- *string*, [App Identifier](app.md#identifier)
64+
- *string*, [App Identifier](./app.md#identifier)
6565
- success *boolean*
6666

6767
#### Description
@@ -163,7 +163,7 @@ success = clear.app_data(identifier)
163163
#### Parameters and Return Values
164164

165165
- identifier
166-
- *string*, [App Identifier](app.md#identifier)
166+
- *string*, [App Identifier](./app.md#identifier)
167167
- success *boolean*
168168

169169
#### Description
@@ -208,7 +208,7 @@ When the **new_idfa** is `"READ"`, it only reads without clearing or modifying.
208208

209209
:::note
210210
You do not need to worry about the specific format of the **IDFA/V table**. Simply pass the return value **old_idfav_table** from the previous call as the parameter **new_idfav_table** to restore the system IDFA and IDFV identifiers to their original state.
211-
The **IDFA/V table** can be safely serialized by the [`plist`](plist.md) module.
211+
The **IDFA/V table** can be safely serialized by the [`plist`](./plist.md) module.
212212
:::
213213

214214
#### Example 1
@@ -268,7 +268,7 @@ success = clear.push_notifications(identifier)
268268
#### Parameters and Return Values
269269

270270
- identifier
271-
- *string*, [App Identifier](app.md#identifier)
271+
- *string*, [App Identifier](./app.md#identifier)
272272
- success *boolean*
273273

274274
:::info

docs/lua-manual/device.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ is_on = device.is_vpn_on() -- Get VPN status
422422
- When the VPN is connecting (not yet connected), **is_on** is `true`.
423423

424424
:::tip
425-
It is recommended to use the [`vpnconf`](vpnconf.md) module.
425+
It is recommended to use the [`vpnconf`](./vpnconf.md) module.
426426
:::
427427

428428
#### Example

0 commit comments

Comments
 (0)