diff --git a/public/_data.json b/public/_data.json index 1ff7ecb7b6..0a3207c9a7 100644 --- a/public/_data.json +++ b/public/_data.json @@ -15,11 +15,15 @@ "subtitle": "帮我们构建面向未来的框架", "autoformat": "true" }, + "resources": { + "title": "资源库", + "subtitle": "Angular 2的资源库" + }, "news": { "title": "新闻" }, "events": { - "title": "事件", + "title": "开发者会议", "subtitle": "我们将在哪里开会" }, "support": { @@ -27,7 +31,7 @@ "subtitle": "从Angular社区获得支持" }, "presskit": { - "title": "出版工具" + "title": "宣传资料" }, "books": { "title": "书籍" diff --git a/public/_includes/_footer.jade b/public/_includes/_footer.jade index 236cd4b972..d03ad20286 100644 --- a/public/_includes/_footer.jade +++ b/public/_includes/_footer.jade @@ -15,7 +15,7 @@ else .c3 h3.text-headline RESOURCES - h3.text-headline 资源 + h3.text-headline 资源库 ul.text-body // TODO: (ericjim) make a libraries page to showcase all angular 2 libraries @@ -29,7 +29,7 @@ else li Community li 社区 li Press Kit - li 出版配套 + li 宣传资料 .c3 h3.text-headline HELP @@ -65,8 +65,11 @@ 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.translated-cn Powered by Google ©2010-2016. 代码授权协议:MIT式协议。 文档授权协议:CC BY 4.0. + p + small.text-caption Powered by Google ©2010-2016. Code licensed under an MIT-style License. Documentation licensed under CC BY 4.0. + + p + 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 translated-cn" md-button) diff --git a/public/_includes/_hero-home.jade b/public/_includes/_hero-home.jade index 6795c124ea..ed497ff2b8 100644 --- a/public/_includes/_hero-home.jade +++ b/public/_includes/_hero-home.jade @@ -1,6 +1,7 @@ header(class="background-sky") .hero.background-superhero-paper.is-large - h1.text-headline.hero-logo #{title}
#{subtitle} + h1.text-headline.hero-logo.translated-cn #{title} + p.translated-cn #{subtitle} .hero-cta a(href="/docs/ts/latest/quickstart.html" class="md-raised button button-large button-plain" md-button) 开始吧! diff --git a/public/_includes/_hero.jade b/public/_includes/_hero.jade index 6e301a0b71..e029825873 100644 --- a/public/_includes/_hero.jade +++ b/public/_includes/_hero.jade @@ -15,7 +15,7 @@ if current.path[4] && current.path[3] == 'api' header(class="hero background-sky") div(class="inner-header") - h1(class="hero-title text-display-1 #{textFormat}") #{headerTitle} + h1(class="hero-title text-display-1 translated-cn #{textFormat}") #{headerTitle} if useBadges span(class="badges") if docType diff --git a/public/docs/_includes/_side-nav.jade b/public/docs/_includes/_side-nav.jade index a7be93033b..1a9eca5dd8 100644 --- a/public/docs/_includes/_side-nav.jade +++ b/public/docs/_includes/_side-nav.jade @@ -74,7 +74,8 @@ nav.side-nav.l-pinned-left.l-layer-4.l-offset-nav .nav-ordered-lists(class="#{isCollapsed(anyItemSelected(tutorial))}") ul each item, index in tutorial - 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.translated-cn(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}") 基础知识 @@ -83,7 +84,8 @@ nav.side-nav.l-pinned-left.l-layer-4.l-offset-nav .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 #{item.class}") + a.translated-cn(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}") 开发指南 @@ -92,7 +94,8 @@ nav.side-nav.l-pinned-left.l-layer-4.l-offset-nav .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 #{item.class}") + a.translated-cn(href="#{item.href}" title="#{item.tooltip}") #{item.navTitle} .nav-blocks a(class="nav-title #{anyItemSelected(cookbook)}" href="#{cookbook[0].href}" title="#{cookbook[0].tooltip}") 烹饪宝典 @@ -101,10 +104,11 @@ nav.side-nav.l-pinned-left.l-layer-4.l-offset-nav .nav-unordered-lists(class="#{isCollapsed(anyItemSelected(cookbook))}") ul each item in cookbook - li(class="nav-list-item #{item.class}"): a(href="#{item.href}" title="#{item.tooltip}") #{item.navTitle} + li(class="nav-list-item #{item.class}") + a.translated-cn(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.translated-cn(class="nav-title #{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/ts/latest/cookbook/_data.json b/public/docs/ts/latest/cookbook/_data.json index bf940d2d0c..3dca78d6ed 100644 --- a/public/docs/ts/latest/cookbook/_data.json +++ b/public/docs/ts/latest/cookbook/_data.json @@ -27,7 +27,8 @@ }, "dynamic-form": { "title": "动态表单", - "intro": "通过FormGroup渲染动态表单" + "intro": "通过FormGroup渲染动态表单", + "basics": true }, "dynamic-form-deprecated": { "title": "动态表单(已废弃)", @@ -35,12 +36,6 @@ "hide": true }, - "dynamic-form": { - "title": "Dynamic Forms", - "intro": "Render dynamic forms with NgFormModel", - "basics": true - }, - "set-document-title": { "title": "设置文档标题", "intro": "使用Title服务来设置文档标题或窗口标题" @@ -52,7 +47,7 @@ }, "visual-studio-2015": { - "title": "Visual Studio 2015 快速开始", + "title": "Visual Studio 2015快速开始", "intro": "使用Visual Studio 2015快速开始" } } diff --git a/public/resources/_data.json b/public/resources/_data.json index 43a2a280be..3bca6580ec 100644 --- a/public/resources/_data.json +++ b/public/resources/_data.json @@ -1,5 +1,6 @@ { "index": { - "title": "Resources" + "title": "资源库", + "subtitle": "Angular 2的资源库" } } diff --git a/public/resources/index.jade b/public/resources/index.jade index d728dc8327..1a509469ef 100644 --- a/public/resources/index.jade +++ b/public/resources/index.jade @@ -1,5 +1,5 @@ p.text-body - a(href='https://docs.google.com/a/rangle.io/forms/d/1qzWaDpTgTPe4iPDRF_VCT9aHXKimUocwlFnVJUdKabY/viewform?c=0&w=1') 想被列到这里吗?请填写这个表单! + a(href='https://www.gdgdocs.org/a/rangle.io/forms/d/1qzWaDpTgTPe4iPDRF_VCT9aHXKimUocwlFnVJUdKabY/viewform?c=0&w=1') 想被列到这里吗?请填写这个表单! .js-resources-ctrl.resources(ng-controller='ResourcesCtrl as ctrl') .section(ng-repeat='(category, categoryContent) in ctrl.fbObject')