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 2019/04/23 13:00:43 UTC

[GitHub] [flink] wuchong commented on a change in pull request #7799: [FLINK-11613][chinese-translation, Documentation]Translate the "Project Template for Scala" page into Chinese

wuchong commented on a change in pull request #7799: [FLINK-11613][chinese-translation,Documentation]Translate the "Project Template for Scala" page into Chinese
URL: https://github.com/apache/flink/pull/7799#discussion_r277661189
 
 

 ##########
 File path: docs/dev/projectsetup/scala_api_quickstart.zh.md
 ##########
 @@ -83,47 +83,45 @@ fork in run := true
 
 #### IntelliJ
 
-We recommend using [IntelliJ](https://www.jetbrains.com/idea/) for your Flink job development.
-In order to get started, you have to import your newly created project into IntelliJ.
-You can do this via `File -> New -> Project from Existing Sources...` and then choosing your project's directory.
-IntelliJ will then automatically detect the `build.sbt` file and set everything up.
+我们建议你使用 [IntelliJ](https://www.jetbrains.com/idea/) 来开发Flink作业。
+开始,你需要将新建的项目导入到 IntelliJ。
+通过 `File -> New -> Project from Existing Sources...` 操作路径,然后选择项目目录。之后 IntelliJ 将自动检测到 `build.sbt` 文件并设置好所有内容。
 
-In order to run your Flink job, it is recommended to choose the `mainRunner` module as the classpath of your __Run/Debug Configuration__.
-This will ensure, that all dependencies which are set to _provided_ will be available upon execution.
-You can configure the __Run/Debug Configurations__ via `Run -> Edit Configurations...` and then choose `mainRunner` from the _Use classpath of module_ dropbox.
+为了运行你的Flink作业,建议选择 `mainRunner` 模块作为 __Run/Debug Configuration__ 的类路径。
+这将确保在作业执行时可以使用所有设置为 _provided_ 的依赖项。
+你可以通过 `Run -> Edit Configurations...` 配置  __Run/Debug Configurations__,然后从 _Use classpath of module_ 下拉框中选择 `mainRunner`。
 
 #### Eclipse
 
-In order to import the newly created project into [Eclipse](https://eclipse.org/), you first have to create Eclipse project files for it.
-These project files can be created via the [sbteclipse](https://github.com/typesafehub/sbteclipse) plugin.
-Add the following line to your `PROJECT_DIR/project/plugins.sbt` file:
+为了将新建的项目导入 [Eclipse](https://eclipse.org/), 首先需要创建一个 Eclipse 项目文件。
+通过插件 [sbteclipse](https://github.com/typesafehub/sbteclipse) 创建项目文件,并将下面的内容添加到 `PROJECT_DIR/project/plugins.sbt` 文件中:
 
 {% highlight bash %}
 addSbtPlugin("com.typesafe.sbteclipse" % "sbteclipse-plugin" % "4.0.0")
 {% endhighlight %}
 
-In `sbt` use the following command to create the Eclipse project files
+在 `sbt` 中使用一下命令创建 Eclipse 项目文件
 
 {% highlight bash %}
 > eclipse
 {% endhighlight %}
 
-Now you can import the project into Eclipse via `File -> Import... -> Existing Projects into Workspace` and then select the project directory.
+现在你可以通过 `File -> Import... -> Existing Projects into Workspace` 将项目导入 Eclipse,然后选择项目目录。
 
 ## Maven
 
-### Requirements
+### 要求
 
-The only requirements are working __Maven 3.0.4__ (or higher) and __Java 8.x__ installations.
+唯一的要求是安装 __Maven 3.0.4__ (或更高版本) 和 __Java 8.x__。
 
 
-### Create Project
+### 创建项目
 
-Use one of the following commands to __create a project__:
+使用以下命令之一来 __创建项目__:
 
 <ul class="nav nav-tabs" style="border-bottom: none;">
-    <li class="active"><a href="#maven-archetype" data-toggle="tab">Use <strong>Maven archetypes</strong></a></li>
-    <li><a href="#quickstart-script" data-toggle="tab">Run the <strong>quickstart script</strong></a></li>
+    <li class="active"><a href="#maven-archetype" data-toggle="tab">使用 <strong>Maven 原型</strong></a></li>
 
 Review comment:
   ```suggestion
       <li class="active"><a href="#maven-archetype" data-toggle="tab">使用 <strong>Maven archetypes</strong></a></li>
   ```

----------------------------------------------------------------
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


With regards,
Apache Git Services