内容微调

This commit is contained in:
Zhicheng Wang 2016-06-29 13:11:23 +08:00
parent 55dc7c9476
commit fb22c0556c
8 changed files with 31 additions and 23 deletions

View File

@ -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": "书籍"

View File

@ -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 <a href="/resources/">Community</a>
li <a href="/resources/">社区</a>
li <a href="/presskit.html">Press Kit</a>
li <a href="/presskit.html">出版配套</a>
li <a href="/presskit.html">宣传资料</a>
.c3
h3.text-headline HELP
@ -65,7 +65,10 @@ else
footer(class="background-steel")
p
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>.
p
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)
span.icon-favorite

View File

@ -1,6 +1,7 @@
header(class="background-sky")
.hero.background-superhero-paper.is-large
h1.text-headline.hero-logo #{title}<br>#{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) 开始吧!

View File

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

View File

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

View File

@ -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快速开始"
}
}

View File

@ -1,5 +1,6 @@
{
"index": {
"title": "Resources"
"title": "资源库",
"subtitle": "Angular 2的资源库"
}
}

View File

@ -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')