Skip to content

Translate javascript-algorithms-and-data-structures-projects #8

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

Closed
wants to merge 28 commits into from
Closed
Show file tree
Hide file tree
Changes from 8 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
f78814b
Progress: 1 / 22
Jul 20, 2018
41acf6f
Progress: 1 / 22
Jul 21, 2018
18c8fc7
Progress: 2 / 22
Jul 21, 2018
8aca09a
按以下规则修改用词:
Jul 21, 2018
6f6a563
算法和数据结构 - 项目实践 (1/5)
Jul 22, 2018
62ce95f
Merge branch 'translate' of github.com:freeCodeCampChina/challenges i…
Jul 22, 2018
d47c172
算法和数据结构 - 项目实践 (2/5)
Jul 22, 2018
e1f2d8a
Caesars Cipher
Jul 22, 2018
b3d19a1
Merge branch 'translate' of https://github.com/freeCodeCampChina/chal…
Jul 24, 2018
aa4dae5
修改1,2,3部分在pr的comment。
Jul 24, 2018
ae6b6cf
Telephone Number Validator
Jul 24, 2018
f004ea8
revert commit f78814b6c5cf1c70992e629531065b256eb95bca
Jul 25, 2018
a0a0aef
Add .gitignore, including patterns for OS, Vim, VSCode, Jetbrains and…
S1ngS1ng Jul 25, 2018
7dc217c
Translation of intermediate-algorithm-scripting, 50% (#11)
S1ngS1ng Jul 26, 2018
0b9612d
Add CONTRIBUTING.md (#15)
S1ngS1ng Jul 26, 2018
044f83b
Update .gitignore that captures .vscode.*\.json (#28)
S1ngS1ng Jul 27, 2018
1ecae28
Fix (#29)
huluoyang Jul 27, 2018
9e8c003
(WIP) style-guide (#33)
S1ngS1ng Jul 28, 2018
fdc9758
Translate managing-packages-with-npm (#1)
ifyour Jul 28, 2018
d075968
Translate responsive-web-design-projects (#2)
XERO75 Jul 28, 2018
a995b32
Translate information-security-with-helmet (#4)
stanleyyylau Jul 28, 2018
beb6af1
Translate object-oriented-programming (#12)
XiaoLuo01 Jul 28, 2018
035a81c
Translate basic-css (#17)
focus-kfc Jul 28, 2018
d9f3b01
Css grid (#30)
stevending1st Jul 28, 2018
7e8fa97
responsive-web-design-principles translate (#35)
rainpure Jul 28, 2018
04bd22e
更新:翻译格式与建议 (#37)
S1ngS1ng Jul 29, 2018
c22c82a
修改:
Jul 30, 2018
93ffab0
Cash Register
Jul 30, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions 01-responsive-web-design/css-grid.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@
"id": "5a858944d96184f06fd60d61",
"title": "Create Your First CSS Grid",
"description": [
"Turn any HTML element into a grid container by setting its <code>display</code> property to <code>grid</code>. This gives you the ability to use all the other properties associated with CSS Grid.",
"<strong>Note</strong><br>In CSS Grid, the parent element is referred to as the <dfn>container</dfn> and its children are called <dfn>items</dfn>.",
"对于任何 HTML 元素,如果我们把它的 <code>display</code> 的属性值设置为 <code>grid</code>,那么它就成为了一个网格容器。然后,你就可以使用 CSS 网格的其他属性。",
Copy link
Contributor

Choose a reason for hiding this comment

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

turn into 变成

"<strong>注意</strong><br> CSS 网格中,父元素叫做 <dfn>container</dfn>,而它的子元素叫 <dfn>items</dfn>",
"<hr>",
"Change the display of the div with the <code>container</code> class to <code>grid</code>."
"在 class 为 <code>container</code> 的 div 中,把其中的 display 属性值设置为 <code>grid</code>"
],
"tests": [
{
"text": "<code>container</code> class should have a <code>display</code> property with a value of <code>grid</code>.",
"testString": "assert(code.match(/.container\\s*?{[\\s\\S]*display\\s*?:\\s*?grid\\s*?;[\\s\\S]*}/gi), '<code>container</code> class should have a <code>display</code> property with a value of <code>grid</code>.');"
"text": " class <code>container</code> 的 div 中,把其中的 display 属性值设置为 <code>grid</code>",
"testString": "assert(code.match(/.container\\s*?{[\\s\\S]*display\\s*?:\\s*?grid\\s*?;[\\s\\S]*}/gi), ' class <code>container</code> 的 div 中,把其中的 display 属性值设置为 <code>grid</code>');"
}
],
"solutions": [],
Expand Down Expand Up @@ -64,17 +64,17 @@
"id": "5a9036d038fddaf9a66b5d32",
"title": "Add Columns with grid-template-columns",
"description": [
"Simply creating a grid element doesn't get you very far. You need to define the structure of the grid as well. To add some columns to the grid, use the <code>grid-template-columns</code> property on a grid container as demonstrated below:",
"简单地创建一个网格元素并不能取得很大的进展。你还需要明确网格的结构。在一个容器中使用 <code>grid-template-columns</code> 属性可以添加一些列,实列如下:",
"<blockquote>.container {<br>&nbsp;&nbsp;display: grid;<br>&nbsp;&nbsp;grid-template-columns: 50px 50px;<br>}</blockquote>",
"This will give your grid two columns that are 50px wide each.",
"The number of parameters given to the <code>grid-template-columns</code> property indicates the number of columns in the grid, and the value of each parameter indicates the width of each column.",
"上面的代码可以在网格容器中添加两列,宽度均为 50px",
"<code>grid-template-columns</code> 属性中,参数的个数代表列的个数,参数的值代表列的宽度。",
"<hr>",
"Give the grid container three columns that are <code>100px</code> wide each."
"在容器中设置三个列,每列宽度为 <code>100px</code>"
Copy link
Contributor

Choose a reason for hiding this comment

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

网格容器

],
"tests": [
{
"text": "<code>container</code> class should have a <code>grid-template-columns</code> property with three units of <code>100px</code>.",
"testString": "assert(code.match(/.container\\s*?{[\\s\\S]*grid-template-columns\\s*?:\\s*?100px\\s*?100px\\s*?100px\\s*?;[\\s\\S]*}/gi), '<code>container</code> class should have a <code>grid-template-columns</code> property with three units of <code>100px</code>.');"
"text": "在容器中应该有三个列,而且每列宽度为 <code>100px</code>",
Copy link
Contributor

Choose a reason for hiding this comment

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

在容器中应该有三个列,而且每列宽度为 <code>100px</code>。
容器有三列,每列宽度为 <code>100px</code>。
下面这种表述是否简洁点。

Copy link
Author

Choose a reason for hiding this comment

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

因为我现在没有再翻译网格css-grid.json这个文件,所以我就不修改了。

"testString": "assert(code.match(/.container\\s*?{[\\s\\S]*grid-template-columns\\s*?:\\s*?100px\\s*?100px\\s*?100px\\s*?;[\\s\\S]*}/gi), '在容器中应该有三个列,而且每列宽度为 <code>100px</code>');"
}
],
"solutions": [],
Expand Down
Loading