Skip to content

Commit 5c3d9d3

Browse files
authored
fix: cn text & promopt (#1147)
* fix: i18n and ignore cn files * chore: add prompt
1 parent 2fd4a1f commit 5c3d9d3

File tree

16 files changed

+187
-172
lines changed

16 files changed

+187
-172
lines changed

.github/workflows/docs-commit.translate.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,5 @@ jobs:
4141
inputFiles: '${{ steps.changed_files.outputs.files }}'
4242
outputFiles: 'docs/cn/**/*.md'
4343
languages: 'Simplified-Chinese'
44-
prompt: "You are a translation engine that has knowledge of databases and is familiar with SQL, HTML, Markdown and JSON syntax. \ Databend is a cloud-native data warehouse and an alternative to Snowflake. \ I am translating the Databend documentation for helping users.\ Translate the Markdown or JSON content I'll paste later into {targetLanguage}.\ You must strictly follow the rules below.\ - Never change the Markdown markup structure. Don't add or remove links. Do not change any URL.\ - Never change the contents of code blocks even if they appear to have a bug.\ - Always preserve the original line breaks. Do not add or remove blank lines.\ - Never touch the permalink such as `{/*examples*/}` at the end of each heading.\ - Never touch HTML-like tags such as `<Notes>`.\ - Correctly format the document for best rendering. \ - Please do not translate database or computing-specific terms.\ -Keep the structure consistent with the source document and do not delete anything."
44+
prompt: "You are a translation engine that has knowledge of databases and is familiar with SQL, HTML, Markdown and JSON syntax. \ Databend is a cloud-native data warehouse and an alternative to Snowflake. \ I am translating the Databend documentation for helping users.\ Translate the Markdown or JSON content I'll paste later into {targetLanguage}.\ You must strictly follow the rules below.\ - Never change the Markdown markup structure. Don't add or remove links. Do not change any URL.\ - Never change the contents of code blocks even if they appear to have a bug.\ - Always preserve the original line breaks. Do not add or remove blank lines.\ - Never touch the permalink such as `{/*examples*/}` at the end of each heading.\ - Never touch HTML-like tags such as `<Notes>`.\ - Correctly format the document for best rendering. \ - Please do not translate database or computing-specific terms.\ -Keep the structure consistent with the source document and do not delete anything.\ -If you see the phrase 'time travel' in the description of the document, translate it as '时间回溯'."
4545
basePath: "https://api.deepseek.com"

docs/cn/guides/00-overview/00-editions/00-dce/index.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: Databend 社区版
33
---
4+
45
import Tabs from '@theme/Tabs';
56
import TabItem from '@theme/TabItem';
67
import IndexOverviewList from '@site/src/components/IndexOverviewList';
@@ -19,7 +20,7 @@ Databend 是一个开源的、弹性的、且对工作负载感知的云数据
1920
<TabItem value="Data Manipulation" label="数据操作">
2021

2122
- 支持原子操作,如 `SELECT``INSERT``DELETE``UPDATE``REPLACE``COPY``MERGE`
22-
- 提供高级功能,如时间旅行和多目录(Apache Hive / Apache Iceberg)。
23+
- 提供高级功能,如时间回溯和多目录(Apache Hive / Apache Iceberg)。
2324
- 支持以 CSV、JSON 和 Parquet 等多种格式[导入半结构化数据](/guides/load-data/load)
2425
- 支持半结构化数据类型,如 [ARRAY、MAP 和 JSON](/sql/sql-reference/data-types/)
2526
- 支持类似 Git 的 MVCC 存储,便于查询、克隆和恢复历史数据。
@@ -36,4 +37,4 @@ Databend 是一个开源的、弹性的、且对工作负载感知的云数据
3637

3738
了解更多关于 Databend 社区版的信息,请参阅以下主题:
3839

39-
<IndexOverviewList />
40+
<IndexOverviewList />

docs/cn/guides/00-overview/00-editions/01-dee/10-enterprise-features.md

Lines changed: 82 additions & 82 deletions
Large diffs are not rendered by default.

docs/cn/guides/00-overview/00-editions/02-dc/02-editions.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ Databend Cloud 提供三种版本:**标准版**、**商业版**和**专属版*
2323
| SOC 1 Type I 认证。 ||||
2424
| 所有数据的自动加密。 ||||
2525
| 对象级访问控制。 ||||
26-
| 标准时间旅行(最长 1 天),用于访问/恢复修改和删除的数据。 ||||
27-
| 通过故障安全机制对修改/删除的数据进行灾难恢复(时间旅行之外的 7 天)。 ||||
28-
| 扩展时间旅行|| 90 天 | 90 天 |
26+
| 标准时间回溯(最长 1 天),用于访问/恢复修改和删除的数据。 ||||
27+
| 通过故障安全机制对修改/删除的数据进行灾难恢复(时间回溯之外的 7 天)。 ||||
28+
| 扩展时间回溯|| 90 天 | 90 天 |
2929
| 列级安全,对表或视图中的列应用掩码策略。 ||||
3030
| 通过账户使用情况 ACCESS_HISTORY 视图审计用户访问历史。 ||||
3131
| 使用 AWS PrivateLink 支持与 Databend Cloud 服务的私有连接。 ||||

docs/cn/guides/57-data-management/02-data-recovery.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,24 @@ sidebar_label: 数据恢复
55

66
本主题解释了如何使用 Databend Cloud 恢复更改或删除的数据。
77

8-
## 时间旅行:轻松访问过去的数据
8+
## 时间回溯:轻松访问过去的数据
99

10-
通过 Databend 时间旅行,即使数据已被更改或删除,您也可以回顾并检索过去的数据。它非常适用于:
10+
通过 Databend 时间回溯,即使数据已被更改或删除,您也可以回顾并检索过去的数据。它非常适用于:
1111

1212
- **恢复已删除的数据:** 帮助您找回重要的东西,如不小心或故意删除的表、数据库。
1313

1414
- **复制和保存过去的数据:** 允许您复制并保存早期的重要数据。
1515

1616
- **查看过去的数据使用情况:** 使查看数据在某些时候是如何被使用或更改的变得更加容易。
1717

18-
### 时间旅行的主要用途
18+
### 时间回溯的主要用途
1919

2020
- **访问过去的数据:** 查看过去的数据,即使它已经被更改或删除。
2121
- **恢复丢失的数据:** 恢复被删除的表和数据库。
2222

23-
### 时间旅行 SQL 扩展
23+
### 时间回溯 SQL 扩展
2424

25-
- **时间旅行的 SQL 扩展:** 在 SELECT 语句和 CREATE 命令中使用特殊的 SQL 子句,如[`AT`](/sql/sql-commands/query-syntax/query-at),以指定您想要访问的历史准确点。
25+
- **时间回溯的 SQL 扩展:** 在 SELECT 语句和 CREATE 命令中使用特殊的 SQL 子句,如[`AT`](/sql/sql-commands/query-syntax/query-at),以指定您想要访问的历史准确点。
2626
- **恢复已删除的数据:** 对表、数据库使用`UNDROP`命令。
2727

2828
### 设置数据保留期
@@ -33,7 +33,7 @@ sidebar_label: 数据恢复
3333
- 对于持久化数据:从 **0 到 90 天** 中选择任何期限。
3434

3535
:::info 注意
36-
设置保留期为 0 天意味着该数据将不适用于时间旅行
36+
设置保留期为 0 天意味着该数据将不适用于时间回溯
3737
:::
3838

3939
### 调整数据保留时间
@@ -42,21 +42,22 @@ sidebar_label: 数据恢复
4242

4343
## 故障安全:为您的数据提供额外保护
4444

45-
Databend Cloud 中的故障安全是一个额外的安全特性,与时间旅行不同。它旨在保护您的数据免受系统问题或安全事件的影响。
45+
Databend Cloud 中的故障安全是一个额外的安全特性,与时间回溯不同。它旨在保护您的数据免受系统问题或安全事件的影响。
4646

4747
### 故障安全的工作原理
4848

49-
故障安全在时间旅行期结束后提供固定的 7 天恢复窗口。
49+
故障安全在时间回溯期结束后提供固定的 7 天恢复窗口。
5050

5151
故障安全包括:
5252

5353
- **元数据恢复:** 使用元服务中的版本控制来恢复已删除的表。
5454
- **数据恢复:** 使用 AWS S3 的版本控制来保存已更改或删除的数据。
5555

5656
:::caution 注意
57+
5758
- 故障安全是 Databend Cloud 提供的一项紧急服务,不可由用户配置。
5859
- 它应仅在其他恢复方法不起作用后使用。
59-
- 不旨在用于时间旅行期之外的常规历史数据访问
60+
- 不旨在用于时间回溯期之外的常规历史数据访问
6061
- 用于在出现大问题后恢复数据,您无法自行设置。
6162
- 恢复时间可能从几小时到几天不等,具体取决于情况。
62-
:::
63+
:::

docs/cn/guides/57-data-management/03-data-protection.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Databend Cloud 的持续数据保护(CDP)提供易于使用的功能,以
1515

1616
- 决定谁可以查看或使用 Databend Cloud 的不同部分。保持事物有序和安全。
1717

18-
- [时间旅行与故障安全](./02-data-recovery.md)
18+
- [时间回溯与故障安全](./02-data-recovery.md)
1919
- 恢复旧数据或丢失数据。
20-
- 时间旅行允许您查看并恢复过去的数据
20+
- 时间回溯允许您查看并恢复过去的数据
2121
- 故障安全用于大型紧急情况,当出现严重问题时,由 Databend Cloud 用于恢复数据。

docs/cn/guides/57-data-management/04-data-recycle.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ title: 数据清理与回收
33
sidebar_label: 数据回收
44
---
55

6-
在 Databend 中,当你执行 `DROP``TRUNCATE``DELETE` 命令时,数据并未真正删除,允许时间旅行回到之前的状态
6+
在 Databend 中,当你执行 `DROP``TRUNCATE``DELETE` 命令时,数据并未真正删除,允许时间回溯回到之前的状态
77

88
数据分为两种类型:
99

10-
- **历史数据**用于时间旅行,存储历史数据或已删除表的数据。
10+
- **历史数据**用于时间回溯,存储历史数据或已删除表的数据。
1111
- **临时数据**:系统用于存储溢出数据。
1212

1313
如果数据量较大,你可以运行几个命令([企业版功能](/guides/overview/editions/dee/enterprise-features))来删除这些数据,释放存储空间。
@@ -40,4 +40,4 @@ VACUUM TABLE <table_name>;
4040
VACUUM TEMPORARY FILES;
4141
```
4242

43-
了解更多 [VACUUM TEMPORARY FILES](/sql/sql-commands/administration-cmds/vacuum-temp-files)
43+
了解更多 [VACUUM TEMPORARY FILES](/sql/sql-commands/administration-cmds/vacuum-temp-files)

docs/cn/guides/90-community/02-rfcs/20221013-iceberg-catalog.md

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ WHERE normal_tbl.isbn = my_iceberg.iceberg_db.iceberg_tbl.isbn
5757

5858
在操作表时,所有数据仍然保留在用户提供的端点上。
5959

60-
### 时间旅行
60+
### 时间回溯
6161

62-
Iceberg 提供了一系列快照及其时间戳。在其上进行时间旅行是自然的
62+
Iceberg 提供了一系列快照及其时间戳。在其上进行时间回溯是自然的
6363

6464
```sql
6565
SELECT ...
@@ -83,7 +83,7 @@ SELECT snapshot_id FROM ICEBERG_SNAPSHOT(my_iceberg.iceberg_db.iceberg_tbl);
8383
(2 行)
8484
```
8585

86-
外部表正在读取的当前快照 id 将始终是最新的。但用户可以使用 `时间旅行``AT`
86+
外部表正在读取的当前快照 id 将始终是最新的。但用户可以使用 `时间回溯``AT`
8787

8888
## 参考级说明
8989

@@ -101,35 +101,35 @@ SELECT snapshot_id FROM ICEBERG_SNAPSHOT(my_iceberg.iceberg_db.iceberg_tbl);
101101

102102
### 类型约定
103103

104-
| Iceberg | 注意 | Databend |
105-
| --------------- | -------------------------------------------------------- | ------------------------------------ |
106-
| `boolean` | 真或假 | `BOOLEAN` |
107-
| `int` | 32位有符号整数 | `INT32` |
108-
| `long` | 64位有符号整数 | `INT64` |
109-
| `float` | 32位IEEE 754浮点数 | `FLOAT` |
110-
| `double` | 64位IEEE 754浮点数 | `DOUBLE` |
111-
| `decimal(P, S)` | 定点小数;精度P,小数位S | 不支持 |
112-
| `date` | 不含时区或时间的日历日期 | `DATE` |
113-
| `time` | 不含日期、时区的时间戳 | `TIMESTAMP`,将日期转换为今天 |
114-
| `timestamp` | 不含时区的时间戳 | `TIMESTAMP`将时区转换为GMT |
115-
| `timestamptz` | 含时区的时间戳 | `TIMESTAMP` |
116-
| `string` | UTF-8字符串 | `VARCHAR` |
117-
| `uuid` | 16字节固定长度字节数组,全球唯一标识符 | `VARCHAR` |
118-
| `fixed(L)` | 长度为L的固定长度字节数组 | `VARCHAR` |
119-
| `binary` | 任意长度的字节数组 | `VARCHAR` |
120-
| `struct` | 一组有类型的值 | `OBJECT` |
121-
| `list` | 某种元素类型的值的集合 | `ARRAY` |
122-
| `map` | | `OBJECT` |
104+
| Iceberg | 注意 | Databend |
105+
| --------------- | --------------------------------------- | ----------------------------- |
106+
| `boolean` | 真或假 | `BOOLEAN` |
107+
| `int` | 32 位有符号整数 | `INT32` |
108+
| `long` | 64 位有符号整数 | `INT64` |
109+
| `float` | 32 位 IEEE 754 浮点数 | `FLOAT` |
110+
| `double` | 64 位 IEEE 754 浮点数 | `DOUBLE` |
111+
| `decimal(P, S)` | 定点小数;精度 P,小数位 S | 不支持 |
112+
| `date` | 不含时区或时间的日历日期 | `DATE` |
113+
| `time` | 不含日期、时区的时间戳 | `TIMESTAMP`,将日期转换为今天 |
114+
| `timestamp` | 不含时区的时间戳 | `TIMESTAMP`将时区转换为 GMT |
115+
| `timestamptz` | 含时区的时间戳 | `TIMESTAMP` |
116+
| `string` | UTF-8 字符串 | `VARCHAR` |
117+
| `uuid` | 16 字节固定长度字节数组,全球唯一标识符 | `VARCHAR` |
118+
| `fixed(L)` | 长度为 L 的固定长度字节数组 | `VARCHAR` |
119+
| `binary` | 任意长度的字节数组 | `VARCHAR` |
120+
| `struct` | 一组有类型的值 | `OBJECT` |
121+
| `list` | 某种元素类型的值的集合 | `ARRAY` |
122+
| `map` | | `OBJECT` |
123123

124124
## 缺点
125125

126126
127127

128128
## 理由及替代方案
129129

130-
### Iceberg外部表
130+
### Iceberg 外部表
131131

132-
从Iceberg存储创建外部表
132+
从 Iceberg 存储创建外部表
133133

134134
```sql
135135
CREATE EXTERNAL TABLE [IF NOT EXISTS] [db.]table_name
@@ -145,7 +145,7 @@ ENGINE_OPTIONS=(
145145
)
146146
```
147147

148-
将引入一个新的表引擎`ICEBERG`所有数据仍将保留在Iceberg存储中。外部表还应支持用户查询其快照数据和时间旅行
148+
将引入一个新的表引擎`ICEBERG`所有数据仍将保留在 Iceberg 存储中。外部表还应支持用户查询其快照数据和时间回溯
149149

150150
```sql
151151
SELECT snapshot_id FROM ICEBERG_SNAPSHOT('<db_name>', '<external_table_name');
@@ -157,7 +157,7 @@ SELECT snapshot_id FROM ICEBERG_SNAPSHOT('<db_name>', '<external_table_name');
157157
73556087355608
158158
```
159159

160-
经讨论,上述目录方式被选中,因为它对Iceberg特性的支持更完整,且更符合Hive目录的当前设计
160+
经讨论,上述目录方式被选中,因为它对 Iceberg 特性的支持更完整,且更符合 Hive 目录的当前设计
161161

162162
## 先前的艺术
163163

@@ -169,9 +169,9 @@ SELECT snapshot_id FROM ICEBERG_SNAPSHOT('<db_name>', '<external_table_name');
169169

170170
## 未来可能性
171171

172-
### 从Iceberg快照创建表
172+
### 从 Iceberg 快照创建表
173173

174-
Iceberg提供快照功能,可以从中创建表。
174+
Iceberg 提供快照功能,可以从中创建表。
175175

176176
```sql
177177
CREATE TABLE [IF NOT EXISTS] [db.]table_name
@@ -190,7 +190,7 @@ ENGINE_OPTIONS = (
190190

191191
### 架构演化
192192

193-
外部表中默认使用的Iceberg快照应始终是最新提交的那一个
193+
外部表中默认使用的 Iceberg 快照应始终是最新提交的那一个
194194

195195
```sql
196196
SELECT snapshot_id from ICEBERG_SNAPSHOT(iceberg_catalog.iceberg_db.iceberg_tbl);
@@ -202,14 +202,14 @@ SELECT snapshot_id from ICEBERG_SNAPSHOT(iceberg_catalog.iceberg_db.iceberg_tbl)
202202
0000000000001
203203
```
204204

205-
支持模式演变使得databend能够修改Iceberg的内容
206-
例如,向Iceberg表中插入一个新记录
205+
支持模式演变使得 databend 能够修改 Iceberg 的内容
206+
例如,向 Iceberg 表中插入一个新记录
207207

208208
```sql
209209
INSERT INTO iceberg_catalog.iceberg_db.iceberg_tbl VALUES ('datafuselabs', 'How To Be a Healthy DBA', '2022-10-14');
210210
```
211211

212-
这将在Iceberg存储中创建一个新的快照
212+
这将在 Iceberg 存储中创建一个新的快照
213213

214214
```sql
215215
SELECT snapshot_id from ICEBERG_SNAPSHOT(iceberg_catalog.iceberg_db.iceberg_tbl);
@@ -220,4 +220,4 @@ SELECT snapshot_id from ICEBERG_SNAPSHOT(iceberg_catalog.iceberg_db.iceberg_tbl)
220220
---------------
221221
0000000000001
222222
0000000000002
223-
```
223+
```

docs/cn/sql-reference/10-sql-commands/00-ddl/00-database/undrop-database.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: 恢复删除的数据库
33
---
44

5-
恢复最近版本的已删除数据库。这利用了 Databend 的时间旅行特性;只有在保留期内(默认为24小时),才能恢复已删除的对象。
5+
恢复最近版本的已删除数据库。这利用了 Databend 的时间回溯特性;只有在保留期内(默认为 24 小时),才能恢复已删除的对象。
66

77
另见:[DROP DATABASE](ddl-drop-database.md)
88

@@ -36,4 +36,4 @@ root@localhost:8000/default> UNDROP DATABASE orders_2024;
3636
UNDROP DATABASE orders_2024
3737

3838
0 row read in 0.011 sec. Processed 0 row, 0 B (0 row/s, 0 B/s)
39-
```
39+
```

0 commit comments

Comments
 (0)