fsk119 commented on a change in pull request #12758:
URL: https://github.com/apache/flink/pull/12758#discussion_r444674681
##########
File path: docs/dev/table/connectors/print.zh.md
##########
@@ -104,40 +104,40 @@ LIKE source_table (EXCLUDING ALL)
</div>
</div>
-Connector Options
+连接器选项
----------------
<table class="table table-bordered">
<thead>
<tr>
- <th class="text-left" style="width: 25%">Option</th>
- <th class="text-center" style="width: 8%">Required</th>
- <th class="text-center" style="width: 7%">Default</th>
- <th class="text-center" style="width: 10%">Type</th>
- <th class="text-center" style="width: 50%">Description</th>
+ <th class="text-left" style="width: 25%">选项名字</th>
+ <th class="text-center" style="width: 10%">是否可选</th>
+ <th class="text-center" style="width: 10%">默认参数</th>
+ <th class="text-center" style="width: 10%">数据类型</th>
+ <th class="text-center" style="width: 45%">描述</th>
</tr>
</thead>
<tbody>
<tr>
<td><h5>connector</h5></td>
- <td>required</td>
+ <td>必选</td>
<td style="word-wrap: break-word;">(none)</td>
<td>String</td>
- <td>Specify what connector to use, here should be 'print'.</td>
+ <td>指定要使用的连接器,此处应为 'print'</td>
</tr>
<tr>
<td><h5>print-identifier</h5></td>
- <td>optional</td>
+ <td>可选</td>
<td style="word-wrap: break-word;">(none)</td>
<td>String</td>
- <td>Message that identify print and is prefixed to the output of the
value.</td>
+ <td>配置一个标识符作为输出数据的前缀。</td>
</tr>
<tr>
<td><h5>standard-error</h5></td>
- <td>optional</td>
+ <td>可选</td>
<td style="word-wrap: break-word;">false</td>
<td>Boolean</td>
- <td>True, if the format should print to standard error instead of
standard out.</td>
+ <td>如果格式应打印为标准错误而不是标准输出,则为 True 。</td>
Review comment:
Please keep 'format' untranslated. I think format is an Object here
rather than style.
##########
File path: docs/dev/table/connectors/print.zh.md
##########
@@ -28,54 +28,54 @@ under the License.
* This will be replaced by the TOC
{:toc}
-The Print connector allows for writing every row to the standard output or
standard error stream.
+Print 连接器允许将每一行写入标准输出流或者标准错误流。
-It is designed for:
+设计目的:
-- Easy test for streaming job.
-- Very useful in production debugging.
+- 流处理的简易测试。
+- 非常方便实用的用于生产调试。
Review comment:
How about “对生产调试带来极大便利”?
##########
File path: docs/dev/table/connectors/print.zh.md
##########
@@ -28,54 +28,54 @@ under the License.
* This will be replaced by the TOC
{:toc}
-The Print connector allows for writing every row to the standard output or
standard error stream.
+Print 连接器允许将每一行写入标准输出流或者标准错误流。
-It is designed for:
+设计目的:
-- Easy test for streaming job.
-- Very useful in production debugging.
+- 流处理的简易测试。
+- 非常方便实用的用于生产调试。
-Four possible format options:
+四种可能的输出内容选项:
Review comment:
Please keep format untranslated.
##########
File path: docs/dev/table/connectors/print.zh.md
##########
@@ -28,54 +28,54 @@ under the License.
* This will be replaced by the TOC
{:toc}
-The Print connector allows for writing every row to the standard output or
standard error stream.
+Print 连接器允许将每一行写入标准输出流或者标准错误流。
-It is designed for:
+设计目的:
-- Easy test for streaming job.
-- Very useful in production debugging.
+- 流处理的简易测试。
Review comment:
How about "简单的流作业测试"?
##########
File path: docs/dev/table/connectors/print.zh.md
##########
@@ -28,54 +28,54 @@ under the License.
* This will be replaced by the TOC
{:toc}
-The Print connector allows for writing every row to the standard output or
standard error stream.
+Print 连接器允许将每一行写入标准输出流或者标准错误流。
-It is designed for:
+设计目的:
-- Easy test for streaming job.
-- Very useful in production debugging.
+- 流处理的简易测试。
+- 非常方便实用的用于生产调试。
-Four possible format options:
+四种可能的输出内容选项:
<table class="table table-bordered">
<thead>
<tr>
- <th class="text-left" style="width: 40%">Print</th>
- <th class="text-center" style="width: 30%">Condition1</th>
- <th class="text-center" style="width: 30%">Condition2</th>
+ <th class="text-left" style="width: 40%">打印内容</th>
+ <th class="text-center" style="width: 30%">条件 1</th>
+ <th class="text-center" style="width: 30%">条件 2</th>
</tr>
</thead>
<tbody>
<tr>
- <td><h5>PRINT_IDENTIFIER:taskId> output</h5></td>
- <td>PRINT_IDENTIFIER provided</td>
+ <td><h5>标识符:任务 ID > 输出数据</h5></td>
+ <td>需要提供前缀打印标识符</td>
<td>parallelism > 1</td>
</tr>
<tr>
- <td><h5>PRINT_IDENTIFIER> output</h5></td>
- <td>PRINT_IDENTIFIER provided</td>
+ <td><h5>标识符> 输出数据</h5></td>
+ <td>需要提供前缀打印标识符</td>
Review comment:
I think "未提供前缀打印标识符" is better.
##########
File path: docs/dev/table/connectors/print.zh.md
##########
@@ -28,54 +28,54 @@ under the License.
* This will be replaced by the TOC
{:toc}
-The Print connector allows for writing every row to the standard output or
standard error stream.
+Print 连接器允许将每一行写入标准输出流或者标准错误流。
-It is designed for:
+设计目的:
-- Easy test for streaming job.
-- Very useful in production debugging.
+- 流处理的简易测试。
+- 非常方便实用的用于生产调试。
-Four possible format options:
+四种可能的输出内容选项:
<table class="table table-bordered">
<thead>
<tr>
- <th class="text-left" style="width: 40%">Print</th>
- <th class="text-center" style="width: 30%">Condition1</th>
- <th class="text-center" style="width: 30%">Condition2</th>
+ <th class="text-left" style="width: 40%">打印内容</th>
+ <th class="text-center" style="width: 30%">条件 1</th>
+ <th class="text-center" style="width: 30%">条件 2</th>
</tr>
</thead>
<tbody>
<tr>
- <td><h5>PRINT_IDENTIFIER:taskId> output</h5></td>
- <td>PRINT_IDENTIFIER provided</td>
+ <td><h5>标识符:任务 ID > 输出数据</h5></td>
Review comment:
We should use the same format as the English version. It's not a good
idea to use different white space in Chinese translation. I think "标识符:任务 ID>
输出数据" is better.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]