-
Notifications
You must be signed in to change notification settings - Fork 34
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
base: translate
Are you sure you want to change the base?
Translate bootstrap 31/31 #55
Conversation
问题不少,请详细查阅。 |
], | ||
"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>。", |
There was a problem hiding this comment.
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)属性。", |
There was a problem hiding this comment.
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>。", |
There was a problem hiding this comment.
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> 使其称为块级元素,你的按钮会伸展并填满页面整个水平空间并让后续的元素流到这个块下方的 \"新的一行\" 。", |
There was a problem hiding this comment.
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 按钮上吧。" |
There was a problem hiding this comment.
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> 元素吧。", |
There was a problem hiding this comment.
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>。", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
曲解原文
建议:给 id 为 target6
的 button
元素设置文本为#target6
。
03-front-end-libraries/bootstrap.md
Outdated
* 图片 | ||
* 表格 | ||
* 表单 | ||
* 导航栏 |
There was a problem hiding this comment.
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>--></code>.", | ||
"testString": "assert(code.match(/-->.*\\n+.+/g), 'Be sure to close your comment with <code>--></code>.');" | ||
"text": "确保你的注释有通过 <code>--></code> 正确的闭合。", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
语句不通
03-front-end-libraries/bootstrap.md
Outdated
|
||
This section introduces some of the ways to use Bootstrap in your web projects. | ||
这个章节介绍了在网页项目中使用 Bootstrap 的一些方式。 |
There was a problem hiding this comment.
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
翻译章节
前端库和框架:Bootstrap
翻译文件