You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2020/08/20 02:53:50 UTC

[GitHub] [flink] wuchong commented on a change in pull request #13188: [hotfix][docs] Translate building.md to building.zh.md

wuchong commented on a change in pull request #13188:
URL: https://github.com/apache/flink/pull/13188#discussion_r473557284



##########
File path: docs/flinkDev/building.zh.md
##########
@@ -22,62 +22,63 @@ specific language governing permissions and limitations
 under the License.
 -->
 
-This page covers how to build Flink {{ site.version }} from sources.
+本篇主题是如何从版本 {{ site.version }} 的源码构建 Flink。
 
 * This will be replaced by the TOC
 {:toc}
 
-## Build Flink
+## 构建 Flink
 
-In order to build Flink you need the source code. Either [download the source of a release]({{ site.download_url }}) or [clone the git repository]({{ site.github_url }}).
+首先需要准备一份源码。有两种方法:第一种参考 [从发布版本下载源码]({{ site.download_url }});第二种参考 [从 Git 库克隆 Flink 源码]({{ site.github_url }})。
 
-In addition you need **Maven 3** and a **JDK** (Java Development Kit). Flink requires **at least Java 8** to build.
+还需要准备,**Maven 3** 和 **JDK** (Java开发套件)。Flink至少依赖 **Java 8** 来进行构建。
 
-*NOTE: Maven 3.3.x can build Flink, but will not properly shade away certain dependencies. Maven 3.2.5 creates the libraries properly.
+*注意:Maven 3.3.x 可以构建 Flink,但是不会去掉指定的依赖。Maven 3.2.5 可以很好地构建对应的库文件。
 To build unit tests use Java 8u51 or above to prevent failures in unit tests that use the PowerMock runner.*
+如果运行单元,则需要 Java 8u51 以上的版本来去掉PowerMock运行器带来的单元测试失败情况。
 
-To clone from git, enter:
+从 Git 克隆代码,输入:
 
 {% highlight bash %}
 git clone {{ site.github_url }}
 {% endhighlight %}
 
-The simplest way of building Flink is by running:
+最简单的构建 Flink 的方法,执行如下命令:
 
 {% highlight bash %}
 mvn clean install -DskipTests
 {% endhighlight %}
 
-This instructs [Maven](http://maven.apache.org) (`mvn`) to first remove all existing builds (`clean`) and then create a new Flink binary (`install`).
+上面的 [Maven](http://maven.apache.org) 指令,(`mvn`) 首先删除 (`clean`) 所有存在的构建,然后构建 (`install`) 一个新的 Flink 运行包。
 
-To speed up the build you can skip tests, QA plugins, and JavaDocs:
+为了加速构建,你可以跳过测试,QA 的插件和 JavaDocs 的生成,执行如下命令:
 
 {% highlight bash %}
 mvn clean install -DskipTests -Dfast
 {% endhighlight %}
 
-## 构建PyFlink
+## 构建 PyFlink
 
 #### 先决条件
 
-1. 构建Flink
+1. 构建 Flink
 
-    如果您想构建一个可用于pip安装的PyFlink包,您需要先构建Flink工程,如[构建Flink](#build-flink)中所述。
+    如果您想构建一个可用于 pip 安装的 PyFlink 包,您需要先构建 Flink 工程,如 [构建 Flink](#build-flink) 中所述。

Review comment:
       Yes. We should use "你". This has been mentioned in the translation specification: https://cwiki.apache.org/confluence/display/FLINK/Flink+Translation+Specifications




----------------------------------------------------------------
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:
users@infra.apache.org