diff --git a/public/_includes/_footer.jade b/public/_includes/_footer.jade
index fbe6d0f98c..236cd4b972 100644
--- a/public/_includes/_footer.jade
+++ b/public/_includes/_footer.jade
@@ -66,8 +66,8 @@ else
footer(class="background-steel")
small.text-caption Powered by Google ©2010-2016. Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0.
- small.text-caption Powered by Google ©2010-2016. 代码授权协议:MIT式协议。 文档授权协议:CC BY 4.0.
+ small.text-caption.translated-cn Powered by Google ©2010-2016. 代码授权协议:MIT式协议。 文档授权协议:CC BY 4.0.
a(aria-label="View Style Guide" href=styleguide title="Style Guide" class="styleguide-trigger text-snow" md-button)
span.icon-favorite
- a(aria-label="查看风格指南" href=styleguide title="风格指南" class="styleguide-trigger text-snow" md-button)
+ a(aria-label="查看风格指南" href=styleguide title="风格指南" class="styleguide-trigger text-snow translated-cn" md-button)
span.icon-favorite
diff --git a/public/_includes/_hero-home.jade b/public/_includes/_hero-home.jade
index 6795c124ea..feafcc8d48 100644
--- a/public/_includes/_hero-home.jade
+++ b/public/_includes/_hero-home.jade
@@ -1,9 +1,9 @@
-header(class="background-sky")
+header(class="background-sky").translated-cn
.hero.background-superhero-paper.is-large
h1.text-headline.hero-logo #{title}
#{subtitle}
.hero-cta
a(href="/docs/ts/latest/quickstart.html" class="md-raised button button-large button-plain" md-button) 开始吧!
- h2 点击“译文”可显示/隐藏“原文”,点击“原文”可隐藏自身
+ h2. 点击“译文”可显示/隐藏“原文”,点击“原文”可隐藏自身
diff --git a/public/_includes/_hover-card.jade b/public/_includes/_hover-card.jade
index df57eda266..2ceb581eb3 100644
--- a/public/_includes/_hover-card.jade
+++ b/public/_includes/_hover-card.jade
@@ -1,6 +1,6 @@
- var hasIcon = icon ? 'has-icon' : ''
- var iconNumber = number ? number : ''
-a(class="hover-card is-button #{hasIcon}" href="#{url}" md-button)
+a(class="hover-card translated-cn is-button #{hasIcon}" href="#{url}" md-button)
if icon
span(class="hover-card-icon #{icon}") #{iconNumber}
diff --git a/public/_includes/_main-nav.jade b/public/_includes/_main-nav.jade
index edd3d6457a..cb338a5298 100644
--- a/public/_includes/_main-nav.jade
+++ b/public/_includes/_main-nav.jade
@@ -2,7 +2,7 @@
- if (language !== 'ts' || language !== 'js' || language !== 'dart') { language = 'ts'; }
md-toolbar(class="main-nav background-regal l-pinned-top l-layer-5",scroll-y-offset-element)
- nav
+ nav.translated-cn
h1 Angular by Google
button(class="main-nav-button main-nav-mobile-trigger l-right" aria-label="查看菜单" ng-click="appCtrl.toggleMainMenu($event)" md-button) 网站菜单
diff --git a/public/_includes/_next-item.jade b/public/_includes/_next-item.jade
index cc75e7109d..8dbf3af0ac 100644
--- a/public/_includes/_next-item.jade
+++ b/public/_includes/_next-item.jade
@@ -7,7 +7,7 @@ for page, slug in data
// CHECK IF CURRENT PAGE IS SET, THEN SET NEXT PAGE
if currentPage
if !nextPage && page.nextable
- .l-sub-section
+ .l-sub-section.translated-cn
h3 下一步
a(href="/docs/#{current.path[1]}/#{current.path[2]}/#{current.path[3]}/#{slug}.html") #{page.title}
diff --git a/public/docs/_includes/_side-nav.jade b/public/docs/_includes/_side-nav.jade
index 2e3b9229b4..739c76b249 100644
--- a/public/docs/_includes/_side-nav.jade
+++ b/public/docs/_includes/_side-nav.jade
@@ -66,10 +66,10 @@ nav.side-nav.l-pinned-left.l-layer-4.l-offset-nav
div(class="side-nav-secondary" ng-class="appCtrl.showDocsNav ? 'is-visible' : ''")
.nav-blocks
- a(class="nav-title #{isQuickstartSelected(cur)}" href="#{qs.href}" title="#{qs.tooltip}") 快速起步
+ a(class="nav-title translated-cn #{isQuickstartSelected(cur)}" href="#{qs.href}" title="#{qs.tooltip}") 快速起步
.nav-blocks
- a(class="nav-title #{anyItemSelected(tutorial)}" href="#{tutorial[0].href}" title="#{tutorial[0].tooltip}") 教程
+ a(class="nav-title translated-cn #{anyItemSelected(tutorial)}" href="#{tutorial[0].href}" title="#{tutorial[0].tooltip}") 教程
img(class="inline-arrow-down-svg" src="/resources/images/icons/ic_keyboard_arrow_down_black_24px.svg")
.nav-ordered-lists(class="#{isCollapsed(anyItemSelected(tutorial))}")
ul
@@ -77,25 +77,25 @@ nav.side-nav.l-pinned-left.l-layer-4.l-offset-nav
li(class="nav-list-item #{item.class}"): a(href="#{item.href}" title="#{item.tooltip}") #{index + 1}. #{item.navTitle}
.nav-blocks
- a(class="nav-title #{anyItemSelected(basics)}" href="#{basics[0].href}" title="#{basics[0].tooltip}") 基础知识
+ a(class="nav-title translated-cn #{anyItemSelected(basics)}" href="#{basics[0].href}" title="#{basics[0].tooltip}") 基础知识
img(class="inline-arrow-down-svg" src="/resources/images/icons/ic_keyboard_arrow_down_black_24px.svg")
.nav-ordered-lists(class="#{isCollapsed(anyItemSelected(basics))}")
ul
each item, index in basics
- li(class="nav-list-item #{item.class}"): a(href="#{item.href}" title="#{item.tooltip}") #{index + 1}. #{item.navTitle}
+ li(class="nav-list-item translated-cn #{item.class}"): a(href="#{item.href}" title="#{item.tooltip}") #{index + 1}. #{item.navTitle}
.nav-blocks
- a(class="nav-title #{anyItemSelected(guide)}" href="#{guide[0].href}" title="#{guide[0].tooltip}") 开发指南
+ a(class="nav-title translated-cn #{anyItemSelected(guide)}" href="#{guide[0].href}" title="#{guide[0].tooltip}") 开发指南
img(class="inline-arrow-down-svg" src="/resources/images/icons/ic_keyboard_arrow_down_black_24px.svg")
.nav-unordered-lists(class="#{isCollapsed(anyItemSelected(guide))}")
ul
each item in guide
- li(class="nav-list-item #{item.class}"): a(href="#{item.href}" title="#{item.tooltip}") #{item.navTitle}
+ li(class="nav-list-item translated-cn #{item.class}"): a(href="#{item.href}" title="#{item.tooltip}") #{item.navTitle}
.nav-blocks
- a(class="nav-title #{anyItemSelected(cookbook)}" href="#{cookbook[0].href}" title="#{cookbook[0].tooltip}") 烹饪宝典
+ a(class="nav-title translated-cn #{anyItemSelected(cookbook)}" href="#{cookbook[0].href}" title="#{cookbook[0].tooltip}") 烹饪宝典
img(class="inline-arrow-down-svg" src="/resources/images/icons/ic_keyboard_arrow_down_black_24px.svg")
.nav-unordered-lists(class="#{isCollapsed(anyItemSelected(cookbook))}")
@@ -104,7 +104,7 @@ nav.side-nav.l-pinned-left.l-layer-4.l-offset-nav
li(class="nav-list-item #{item.class}"): a(href="#{item.href}" title="#{item.tooltip}") #{item.navTitle}
.nav-blocks
- a(class="nav-title #{isApiReferenceSelected()}" href="#{reference[0].href}" title="#{reference[0].tooltip}") API参考
+ a(class="nav-title translated-cn #{isApiReferenceSelected()}" href="#{reference[0].href}" title="#{reference[0].tooltip}") API参考手册
script.
// Could put in appCtrl but only needed here and clear here
diff --git a/public/docs/_includes/_ts-temp.jade b/public/docs/_includes/_ts-temp.jade
index 30e089e841..a4f4bd22d3 100644
--- a/public/docs/_includes/_ts-temp.jade
+++ b/public/docs/_includes/_ts-temp.jade
@@ -25,9 +25,9 @@ if secondaryPath
if slug == current.path[4]
- name = 'the ' + item.title + ' chapter'
-p.
+p.translated-cn.
这个章节在 #{lang} 语种下还不可用。
建议您阅读TypeScript版本。
-a(href=path, class='md-primary md-button md-ink-ripple').
+a(href=path, class='md-primary md-button md-ink-ripple').translated-cn.
阅读!{name}TypeScript版本
// != partial(path)
diff --git a/public/docs/ts/latest/guide/index.jade b/public/docs/ts/latest/guide/index.jade
index 1b0f18a63b..d4b806a0db 100644
--- a/public/docs/ts/latest/guide/index.jade
+++ b/public/docs/ts/latest/guide/index.jade
@@ -197,7 +197,7 @@ block example-links
The [API Reference](../api/) is the authority on every public-facing member of the Angular libraries.
- [API参考](../api/)是关于Angular库中每一个公有成员的权威参考资料。
+ [API参考手册](../api/)是关于Angular库中每一个公有成员的权威参考资料。
# Feedback
# 提供反馈
diff --git a/public/docs/ts/latest/guide/pipes.jade b/public/docs/ts/latest/guide/pipes.jade
index e004a16989..0f8148af7a 100644
--- a/public/docs/ts/latest/guide/pipes.jade
+++ b/public/docs/ts/latest/guide/pipes.jade
@@ -79,7 +79,7 @@ p.
Learn more about these and many other built-in pipes in the the [API Reference](../api/#!?apiFilter=pipe);
filter for entries that include the word "pipe".
- 要学习更多内建管道的知识,参见[API参考](../api/#!?apiFilter=pipe),并用“pipe”为关键词对结果进行过滤。
+ 要学习更多内建管道的知识,参见[API参考手册](../api/#!?apiFilter=pipe),并用“pipe”为关键词对结果进行过滤。
Angular 2 doesn't have a `FilterPipe` or an `OrderByPipe` for reasons explained in an [appendix below](#no-filter-pipe).
@@ -693,7 +693,7 @@ a(id="pure-pipe-pure-fn")
Explore Angular's inventory of built-in pipes in the [API Reference](../api/#!?apiFilter=pipe).
Try writing a custom pipe and perhaps contributing it to the community.
- 要浏览Angular的所有内建管道,请到[API参考](../api/#!?apiFilter=pipe)。
+ 要浏览Angular的所有内建管道,请到[API参考手册](../api/#!?apiFilter=pipe)。
学着写写自定义管道,并贡献给开发社区。
a(id="no-filter-pipe")
diff --git a/public/docs/ts/latest/guide/template-syntax.jade b/public/docs/ts/latest/guide/template-syntax.jade
index d92bd911c0..7a9db38a71 100644
--- a/public/docs/ts/latest/guide/template-syntax.jade
+++ b/public/docs/ts/latest/guide/template-syntax.jade
@@ -840,7 +840,7 @@ table
[contentChild](../api/core/ContentChild-var.html).
如果我们不得不读取目标元素上的属性或调用它的某个方法,我们得用另一种技术。
- 参见API参考中的[viewChild](../api/core/index/ViewChild-var.html)和
+ 参见API参考手册中的[viewChild](../api/core/index/ViewChild-var.html)和
[contentChild](../api/core/index/ContentChild-var.html)。
// TODO (global): once we have api docs everywhere, change /docs/ts/latest/ to ../
diff --git a/public/docs/ts/latest/index.jade b/public/docs/ts/latest/index.jade
index 6e123b3559..8e6c4f7ad2 100644
--- a/public/docs/ts/latest/index.jade
+++ b/public/docs/ts/latest/index.jade
@@ -32,7 +32,7 @@ div.card-row.docs-landing.layout-align-space-around-center.layout-row.flex
md-card-content.layout-align-space-between-center.layout-column.flex
div
h2.text-headline.text-uppercase API Reference
- h2.text-headline.text-uppercase API参考
+ h2.text-headline.text-uppercase API参考手册
p An advanced reference of all Angular Classes, Methods, etc.
p 一份高级的开发参考,包括所有Angular类、方法等。
diff --git a/public/translate/cn/about.jade b/public/translate/cn/about.jade
index 36f8be0739..e86c4ed2c1 100644
--- a/public/translate/cn/about.jade
+++ b/public/translate/cn/about.jade
@@ -29,8 +29,8 @@
## 当前状态
目前:
- - 除“API参考”之外的全部章节都已经完成了翻译和第一遍校对,目前正在进行第二遍校对和内部评审。预计很快可以开始正式推出。
- - “API参考”尚未开始翻译。同时,由于技术限制,它也不像其它文档那么容易翻译,谁有什么好想法可以提出来。
+ - 除“API参考手册”之外的全部章节都已经完成了翻译和第一遍校对,目前正在进行第二遍校对和内部评审。预计很快可以开始正式推出。
+ - “API参考手册”尚未开始翻译。同时,由于技术限制,它也不像其它文档那么容易翻译,谁有什么好想法可以提出来。
- 由于技术限制,“API小抄”尚无法进行同步翻译,目前取的是rc.1版
- 官方仍在不断更新英文文档。我们通常会在一天内同步完毕;如果出现大量修改时,我们会争取在一周内同步完毕。