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 14:34:07 UTC

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

Tom-Goong 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_r277710569
 
 

 ##########
 File path: docs/dev/projectsetup/scala_api_quickstart.zh.md
 ##########
 @@ -176,55 +172,50 @@ quickstart/
                         └── StreamingJob.scala
 {% endhighlight %}
 
-The sample project is a __Maven project__, which contains two classes: _StreamingJob_ and _BatchJob_ are the basic skeleton programs for a *DataStream* and *DataSet* program.
-The _main_ method is the entry point of the program, both for in-IDE testing/execution and for proper deployments.
+样例项目是一个 __Maven 项目__, 包含了两个类: _StreamingJob_ 和 _BatchJob_ 是 *DataStream* 和 *DataSet* 程序的基本框架程序.
+_main_ 方法是程序的入口, 既用于 IDE 内的测试/执行,也用于合理部署。
 
-We recommend you __import this project into your IDE__.
+我们建议你将 __此项目导入你的 IDE__。
 
-IntelliJ IDEA supports Maven out of the box and offers a plugin for Scala development.
-From our experience, IntelliJ provides the best experience for developing Flink applications.
+IntelliJ IDEA 支持 Maven 开箱即用,并为Scala开发提供插件。
+从我们的经验来看,IntelliJ 提供了最好的Flink应用程序开发体验。
 
-For Eclipse, you need the following plugins, which you can install from the provided Eclipse Update Sites:
+对于 Eclipse,需要以下的插件,你可以从提供的 Eclipse Update Sites 安装这些插件:
 
 * _Eclipse 4.x_
   * [Scala IDE](http://download.scala-ide.org/sdk/lithium/e44/scala211/stable/site)
   * [m2eclipse-scala](http://alchim31.free.fr/m2e-scala/update-site)
   * [Build Helper Maven Plugin](https://repo1.maven.org/maven2/.m2e/connectors/m2eclipse-buildhelper/0.15.0/N/0.15.0.201207090124/)
 * _Eclipse 3.8_
-  * [Scala IDE for Scala 2.11](http://download.scala-ide.org/sdk/helium/e38/scala211/stable/site) or [Scala IDE for Scala 2.10](http://download.scala-ide.org/sdk/helium/e38/scala210/stable/site)
+  * [Scala IDE for Scala 2.11](http://download.scala-ide.org/sdk/helium/e38/scala211/stable/site) 或者 [Scala IDE for Scala 2.10](http://download.scala-ide.org/sdk/helium/e38/scala210/stable/site)
   * [m2eclipse-scala](http://alchim31.free.fr/m2e-scala/update-site)
   * [Build Helper Maven Plugin](https://repository.sonatype.org/content/repositories/forge-sites/m2e-extras/0.14.0/N/0.14.0.201109282148/)
 
-### Build Project
+### 构建
 
-If you want to __build/package your project__, go to your project directory and
-run the '`mvn clean package`' command.
-You will __find a JAR file__ that contains your application, plus connectors and libraries
-that you may have added as dependencies to the application: `target/<artifact-id>-<version>.jar`.
+如果你想要 __构建/打包你的项目__, 进入到你的项目目录,并执行命令‘`mvn clean package`’。
+你将 __找到一个 JAR 文件__,其中包含了你的应用程序,以及已作为依赖项添加到应用程序的连接器和库:`target/<artifact-id>-<version>.jar`。
 
-__Note:__ If you use a different class than *StreamingJob* as the application's main class / entry point,
-we recommend you change the `mainClass` setting in the `pom.xml` file accordingly. That way, the Flink
-can run time application from the JAR file without additionally specifying the main class.
+__注意:__ 如果你使用其他类而不是 *StreamingJob* 作为应用程序的主类/入口,我们建议你相应地更改 `pom.xml` 文件中 `mainClass` 的设置。这样,Flink 运行应用程序时无需另外指定主类。
 
 
-## Next Steps
+## 下一步
 
-Write your application!
+开始编写你的应用!
 
-If you are writing a streaming application and you are looking for inspiration what to write,
-take a look at the [Stream Processing Application Tutorial]({{ site.baseurl }}/tutorials/datastream_api.html#writing-a-flink-program)
+如果你准备编写流处理应用,正在寻找灵感来写什么,
+可以看看[流处理应用指南]({{ site.baseurl }}/tutorials/datastream_api.html#writing-a-flink-program)
 
-If you are writing a batch processing application and you are looking for inspiration what to write,
-take a look at the [Batch Application Examples]({{ site.baseurl }}/dev/batch/examples.html)
+如果你准备编写批处理应用,正在寻找灵感来写什么,
+可以看看[批处理应用样例]({{ site.baseurl }}/dev/batch/examples.html)
 
 Review comment:
   Great choice

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