From 0a917a99c46ecfb722a23d04887542de8ae50ee9 Mon Sep 17 00:00:00 2001 From: Zhicheng Wang Date: Thu, 2 Jun 2016 15:17:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/404.jade | 2 +- public/_data.json | 13 +++---------- public/docs/ts/latest/guide/template-syntax.jade | 2 +- public/docs/ts/latest/guide/webpack.jade | 15 +++++++-------- 4 files changed, 12 insertions(+), 20 deletions(-) diff --git a/public/404.jade b/public/404.jade index d127557efd..8ced03feac 100644 --- a/public/404.jade +++ b/public/404.jade @@ -1,4 +1,4 @@ .l-main-section h2 404 - p 啊~~~ 你好像在找某些不存在的东西! + p 哎呦喂~~~您老找的东西好像不存在啊! diff --git a/public/_data.json b/public/_data.json index db51fd2e0d..1ff7ecb7b6 100644 --- a/public/_data.json +++ b/public/_data.json @@ -4,47 +4,40 @@ "title": "一套框架,多种平台", "subtitle": "同时适用手机与桌面" }, - + "404": { + "title": "出错了!" + }, "features": { "title": "特性与优点" }, - "contribute": { "title": "为Angular做贡献", "subtitle": "帮我们构建面向未来的框架", "autoformat": "true" }, - "news": { "title": "新闻" }, - "events": { "title": "事件", "subtitle": "我们将在哪里开会" }, - "support": { "title": "支持", "subtitle": "从Angular社区获得支持" }, - "presskit": { "title": "出版工具" }, - "books": { "title": "书籍" }, - "training": { "title": "培训" }, - "communities": { "title": "社区" }, - "tooling": { "title": "工具与库" } diff --git a/public/docs/ts/latest/guide/template-syntax.jade b/public/docs/ts/latest/guide/template-syntax.jade index 1964f1fcf8..a50fdd7851 100644 --- a/public/docs/ts/latest/guide/template-syntax.jade +++ b/public/docs/ts/latest/guide/template-syntax.jade @@ -9,7 +9,7 @@ block includes :marked Our Angular application manages what the user sees and can do, achieving this through the interaction of a Component class instance (the *component*) and its user-facing template. - 我们的Angular应用管理着用户之所见和所为,并通过组件的类实例和面向用户的模板来与用户交互。 + 我们的Angular应用管理着用户之所见和所为,并通过Component类的实例(*component*)和面向用户的模板来与用户交互。 Many of us are familiar with the component/template duality from our experience with model-view-controller (MVC) or model-view-viewmodel (MVVM). In Angular, the component plays the part of the controller/viewmodel, and the template represents the view. diff --git a/public/docs/ts/latest/guide/webpack.jade b/public/docs/ts/latest/guide/webpack.jade index 7ab72da8c2..b3dd522de6 100644 --- a/public/docs/ts/latest/guide/webpack.jade +++ b/public/docs/ts/latest/guide/webpack.jade @@ -114,8 +114,8 @@ a(id="entries-outputs") Here it sees that we're importing *@angular/core* so it adds that to its dependency list for (potential) inclusion in the bundle. It opens *@angular/core* and follows _its_ network of `import` statements until it has build the complete dependency graph from `app.ts` down. - 这里,它看到我们正在导入*@angular/core*,于是它把这个文件加入它的依赖列表里,为(有可能)把它打进包儿中做准备。 - 它打开*@angular/core*并追踪由_它的_`import`语句构成的网络,直到构建出从`app.ts`往下的整个依赖图谱。 + 这里,Webpack看到我们正在导入*@angular/core*,于是就这个文件加入到它的依赖列表里,为(有可能)把该文件打进包儿中做准备。 + 它打开*@angular/core*并追踪由_该文件的_`import`语句构成的网络,直到构建出从`app.ts`往下的整个依赖图谱。 Then it **outputs** these files to the `app.js` _bundle file_ designated in configuration: @@ -128,7 +128,7 @@ a(id="entries-outputs") We'll load it later with a <script> tag in our index.html. 这个`app.js`输出包儿是个单一的JavaScript文件,它包含我们程序的源码以及它的所有依赖。 - 后面我们将在`index.html`中用`<script>`标签来加载它。 + 后面我们将在`index.html`中用`