Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Translate bootstrap 31/31 #55

Open
wants to merge 3 commits into
base: translate
Choose a base branch
from

Conversation

thewindsword
Copy link

翻译章节

前端库和框架:Bootstrap

翻译文件

  • [ x ] translate /03-front-end-libraries/bootstrap.json 31/31
  • [ x ] translate /03-front-end-libraries/bootstrap.md 1/1

@huluoyang
Copy link
Contributor

问题不少,请详细查阅。

@huluoyang huluoyang added the need update Use when a translation (?) PR has been reviewed and needs to address comments label Aug 3, 2018
],
"tests": [
{
"text": "Your <code>div</code> element should have the class <code>container-fluid</code>.",
"testString": "assert($(\"div\").hasClass(\"container-fluid\"), 'Your <code>div</code> element should have the class <code>container-fluid</code>.');"
"text": "你的 <code>div</code> 元素应该具有属性 class 并且值为 <code>container-fluid</code>。",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

翻译生硬
建议: div 元素的 class 属性应该为 container-fluid

},
{
"text": "Your new image should not have the class <code>smaller-image</code>.",
"testString": "assert(!$(\"img:eq(1)\").hasClass(\"smaller-image\"), 'Your new image should not have the class <code>smaller-image</code>.');"
"text": "你的新图片不应该含有 <code>smaller-image</code> 的类(class)属性。",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

去掉类属性这一说法,只有 class 属性。

"With responsive design, there is no need to design a mobile version of your website. It will look good on devices with screens of any width.",
"You can add Bootstrap to any app by adding the following code to the top of your HTML:",
"之前,在 freeCodeCamp 的 HTML5 和 CSS 章节中我们构建了一个 Cat Photo App。这次我们将会使用最受欢迎的响应式 CSS 框架 Bootstrap 来美化它。",
"Bootstrap 会根据你的屏幕大小来调节 HTML 元素的大小——因此称为 <code>响应式设计( Responsive Design )</code>。",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

破折号参考 style guide,应该为:——

"<button class='btn btn-default'>Submit</button>",
"By making them block elements with the additional class of <code>btn-block</code>, your button will stretch to fill your page's entire horizontal space and any elements following it will flow onto a \"new line\" below the block.",
"通过为按钮添加 class <code>btn-block</code> 使其称为块级元素,你的按钮会伸展并填满页面整个水平空间并让后续的元素流到这个块下方的 \"新的一行\" ",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

流到这个块级元素的下方,即新开一行。

"Note that these buttons still need the <code>btn</code> class.",
"Add Bootstrap's <code>btn-block</code> class to your Bootstrap button."
"记住这些按钮仍然需要 <code>btn</code> 这个 class",
"添加 Bootstrap<code>btn-block</code> 类到你 Bootstrap 按钮上吧。"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

class 原文输出即可,不要翻译成类。

@@ -2027,21 +2028,21 @@
"id": "bad87fee1348bd9aec908849",
"title": "Add Elements within Your Bootstrap Wells",
"description": [
"Now we're several <code>div</code> elements deep on each column of our row. This is as deep as we'll need to go. Now we can add our <code>button</code> elements.",
"Nest three <code>button</code> elements within each of your <code>well</code> <code>div</code> elements."
"现在我们已经在行内的每一列都嵌套了好几层 <code>div</code> 元素。这已经足够了,现在让我们添加 <code>button</code> 元素吧。",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

several div elements
好几个 div 元素
哪里来得好几层?
建议:现在每一行的每一列都有了 div 元素,这已经足够了,现在让我们添加 button 元素吧。

},
{
"text": "Give your <code>button</code> element with the id <code>target6</code> the text <code>#target6</code>.",
"testString": "assert(new RegExp(\"#target6\",\"gi\").test($(\"#target6\").text()), 'Give your <code>button</code> element with the id <code>target6</code> the text <code>#target6</code>.');"
"text": "为你的 id 为 <code>target6</code> 的 <code>button</code> 元素输入文本 <code>#target6</code>。",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

曲解原文
建议:给 id 为 target6button 元素设置文本为#target6

* 图片
* 表格
* 表单
* 导航栏
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

navigation 导航
navigationBar 导航栏

},
{
"text": "Be sure to close your comment with <code>--&#62;</code>.",
"testString": "assert(code.match(/-->.*\\n+.+/g), 'Be sure to close your comment with <code>--&#62;</code>.');"
"text": "确保你的注释有通过 <code>--&#62;</code> 正确的闭合。",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

语句不通


This section introduces some of the ways to use Bootstrap in your web projects.
这个章节介绍了在网页项目中使用 Bootstrap 的一些方式。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个章节介绍了如何使用 Bootstrap 来设计响应式界面。

next review Responsively Style Radio Buttons chapter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need update Use when a translation (?) PR has been reviewed and needs to address comments
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants