根据Hantsy的意见,把所有“API参考”改为“API参考手册”

为非对照模式的中文添加translated-cn类,以便自动加空格
This commit is contained in:
Zhicheng Wang 2016-06-19 17:04:46 +08:00
parent 80a044fa7c
commit d46b4911e6
12 changed files with 24 additions and 24 deletions

View File

@ -66,8 +66,8 @@ else
footer(class="background-steel") footer(class="background-steel")
small.text-caption Powered by Google ©2010-2016. Code licensed under an <a href="/license" class="text-snow">MIT-style License</a>. Documentation licensed under <a class="text-snow" href="http://creativecommons.org/licenses/by/4.0/">CC BY 4.0</a>. small.text-caption Powered by Google ©2010-2016. Code licensed under an <a href="/license" class="text-snow">MIT-style License</a>. Documentation licensed under <a class="text-snow" href="http://creativecommons.org/licenses/by/4.0/">CC BY 4.0</a>.
small.text-caption Powered by Google ©2010-2016. 代码授权协议:<a href="/license" class="text-snow">MIT式协议</a>。 文档授权协议:<a class="text-snow" href="http://creativecommons.org/licenses/by/4.0/">CC BY 4.0</a>. small.text-caption.translated-cn Powered by Google ©2010-2016. 代码授权协议:<a href="/license" class="text-snow">MIT式协议</a>。 文档授权协议:<a class="text-snow" href="http://creativecommons.org/licenses/by/4.0/">CC BY 4.0</a>.
a(aria-label="View Style Guide" href=styleguide title="Style Guide" class="styleguide-trigger text-snow" md-button) a(aria-label="View Style Guide" href=styleguide title="Style Guide" class="styleguide-trigger text-snow" md-button)
span.icon-favorite 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 span.icon-favorite

View File

@ -1,9 +1,9 @@
header(class="background-sky") header(class="background-sky").translated-cn
.hero.background-superhero-paper.is-large .hero.background-superhero-paper.is-large
h1.text-headline.hero-logo #{title}<br>#{subtitle} h1.text-headline.hero-logo #{title}<br>#{subtitle}
.hero-cta .hero-cta
a(href="/docs/ts/latest/quickstart.html" class="md-raised button button-large button-plain" md-button) 开始吧! a(href="/docs/ts/latest/quickstart.html" class="md-raised button button-large button-plain" md-button) 开始吧!
h2 点击“译文”可显示/隐藏“原文”,点击“原文”可隐藏自身 h2. 点击“译文”可显示/隐藏“原文”,点击“原文”可隐藏自身

View File

@ -1,6 +1,6 @@
- var hasIcon = icon ? 'has-icon' : '' - var hasIcon = icon ? 'has-icon' : ''
- var iconNumber = number ? number : '' - 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 if icon
span(class="hover-card-icon #{icon}") #{iconNumber} span(class="hover-card-icon #{icon}") #{iconNumber}

View File

@ -2,7 +2,7 @@
- if (language !== 'ts' || language !== 'js' || language !== 'dart') { language = 'ts'; } - 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) md-toolbar(class="main-nav background-regal l-pinned-top l-layer-5",scroll-y-offset-element)
nav nav.translated-cn
h1 <a href="/" md-button>Angular <sup>by Google</sup></a> h1 <a href="/" md-button>Angular <sup>by Google</sup></a>
button(class="main-nav-button main-nav-mobile-trigger l-right" aria-label="查看菜单" ng-click="appCtrl.toggleMainMenu($event)" md-button) 网站菜单 <span class="icon icon-arrow-drop-down"></span> button(class="main-nav-button main-nav-mobile-trigger l-right" aria-label="查看菜单" ng-click="appCtrl.toggleMainMenu($event)" md-button) 网站菜单 <span class="icon icon-arrow-drop-down"></span>

View File

@ -7,7 +7,7 @@ for page, slug in data
// CHECK IF CURRENT PAGE IS SET, THEN SET NEXT PAGE // CHECK IF CURRENT PAGE IS SET, THEN SET NEXT PAGE
if currentPage if currentPage
if !nextPage && page.nextable if !nextPage && page.nextable
.l-sub-section .l-sub-section.translated-cn
h3 下一步 h3 下一步
a(href="/docs/#{current.path[1]}/#{current.path[2]}/#{current.path[3]}/#{slug}.html") #{page.title} a(href="/docs/#{current.path[1]}/#{current.path[2]}/#{current.path[3]}/#{slug}.html") #{page.title}

View File

@ -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' : ''") div(class="side-nav-secondary" ng-class="appCtrl.showDocsNav ? 'is-visible' : ''")
.nav-blocks .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 .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") img(class="inline-arrow-down-svg" src="/resources/images/icons/ic_keyboard_arrow_down_black_24px.svg")
.nav-ordered-lists(class="#{isCollapsed(anyItemSelected(tutorial))}") .nav-ordered-lists(class="#{isCollapsed(anyItemSelected(tutorial))}")
ul 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} li(class="nav-list-item #{item.class}"): a(href="#{item.href}" title="#{item.tooltip}") #{index + 1}. #{item.navTitle}
.nav-blocks .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") img(class="inline-arrow-down-svg" src="/resources/images/icons/ic_keyboard_arrow_down_black_24px.svg")
.nav-ordered-lists(class="#{isCollapsed(anyItemSelected(basics))}") .nav-ordered-lists(class="#{isCollapsed(anyItemSelected(basics))}")
ul ul
each item, index in basics 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 .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") img(class="inline-arrow-down-svg" src="/resources/images/icons/ic_keyboard_arrow_down_black_24px.svg")
.nav-unordered-lists(class="#{isCollapsed(anyItemSelected(guide))}") .nav-unordered-lists(class="#{isCollapsed(anyItemSelected(guide))}")
ul ul
each item in guide 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 .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") img(class="inline-arrow-down-svg" src="/resources/images/icons/ic_keyboard_arrow_down_black_24px.svg")
.nav-unordered-lists(class="#{isCollapsed(anyItemSelected(cookbook))}") .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} li(class="nav-list-item #{item.class}"): a(href="#{item.href}" title="#{item.tooltip}") #{item.navTitle}
.nav-blocks .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. script.
// Could put in appCtrl but only needed here and clear here // Could put in appCtrl but only needed here and clear here

View File

@ -25,9 +25,9 @@ if secondaryPath
if slug == current.path[4] if slug == current.path[4]
- name = 'the <b><i>' + item.title + '</i></b> chapter' - name = 'the <b><i>' + item.title + '</i></b> chapter'
p. p.translated-cn.
这个章节在 #{lang} 语种下还不可用。 这个章节在 #{lang} 语种下还不可用。
建议您阅读TypeScript版本。 建议您阅读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版本 阅读!{name}TypeScript版本
// != partial(path) // != partial(path)

View File

@ -197,7 +197,7 @@ block example-links
The [API Reference](../api/) is the authority on every public-facing member of the Angular libraries. The [API Reference](../api/) is the authority on every public-facing member of the Angular libraries.
[API参考](../api/)是关于Angular库中每一个公有成员的权威参考资料。 [API参考手册](../api/)是关于Angular库中每一个公有成员的权威参考资料。
# Feedback # Feedback
# 提供反馈 # 提供反馈

View File

@ -79,7 +79,7 @@ p.
Learn more about these and many other built-in pipes in the the [API Reference](../api/#!?apiFilter=pipe); 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". 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). 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). 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. 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") a(id="no-filter-pipe")

View File

@ -840,7 +840,7 @@ table
[contentChild](../api/core/ContentChild-var.html). [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)。 [contentChild](../api/core/index/ContentChild-var.html)。
// TODO (global): once we have api docs everywhere, change /docs/ts/latest/ to ../ // TODO (global): once we have api docs everywhere, change /docs/ts/latest/ to ../

View File

@ -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 md-card-content.layout-align-space-between-center.layout-column.flex
div div
h2.text-headline.text-uppercase API Reference 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 An advanced reference of all Angular Classes, Methods, etc.
p 一份高级的开发参考包括所有Angular类、方法等。 p 一份高级的开发参考包括所有Angular类、方法等。

View File

@ -29,8 +29,8 @@
## 当前状态 ## 当前状态
目前: 目前:
- 除“API参考”之外的全部章节都已经完成了翻译和第一遍校对目前正在进行第二遍校对和内部评审。预计很快可以开始正式推出。 - 除“API参考手册”之外的全部章节都已经完成了翻译和第一遍校对,目前正在进行第二遍校对和内部评审。预计很快可以开始正式推出。
- “API参考”尚未开始翻译。同时由于技术限制它也不像其它文档那么容易翻译谁有什么好想法可以提出来。 - “API参考手册”尚未开始翻译。同时,由于技术限制,它也不像其它文档那么容易翻译,谁有什么好想法可以提出来。
- 由于技术限制“API小抄”尚无法进行同步翻译目前取的是rc.1版 - 由于技术限制“API小抄”尚无法进行同步翻译目前取的是rc.1版
- 官方仍在不断更新英文文档。我们通常会在一天内同步完毕;如果出现大量修改时,我们会争取在一周内同步完毕。 - 官方仍在不断更新英文文档。我们通常会在一天内同步完毕;如果出现大量修改时,我们会争取在一周内同步完毕。