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

zh-cn: sync the translation of the second two articles in Get started with the web #23807

Conversation

familyboat
Copy link
Contributor

Description

更新web 入门的第三篇和第四篇文章。
更新的时候,对代码部分中的英文是否要翻译不是很确定,所以我保留了原样;对嵌入的图片的 alt 是否要翻译也不是很确定,也是保留了原样。
欢迎提出建议。

Motivation

Additional details

Related issues and pull requests

@familyboat familyboat requested a review from a team as a code owner September 27, 2024 10:29
@familyboat familyboat requested review from jasonren0403 and removed request for a team September 27, 2024 10:29
@github-actions github-actions bot added the l10n-zh Issues related to Chinese content. label Sep 27, 2024
Copy link
Contributor

github-actions bot commented Sep 27, 2024

Preview URLs

Flaws (32)

URL: /zh-CN/docs/Learn/Getting_started_with_the_web/Dealing_with_files
Title: 处理文件
Flaw count: 15

  • macros:
    • /zh-CN/docs/Learn/Tools_and_testing/Client-side_JavaScript_frameworks/React_interactivity_events_state does not exist but fell back to /en-US/docs/Learn/Tools_and_testing/Client-side_JavaScript_frameworks/React_interactivity_events_state
    • /zh-CN/docs/Learn/Tools_and_testing/Client-side_JavaScript_frameworks/React_interactivity_filtering_conditional_rendering does not exist but fell back to /en-US/docs/Learn/Tools_and_testing/Client-side_JavaScript_frameworks/React_interactivity_filtering_conditional_rendering
    • /zh-CN/docs/Learn/Tools_and_testing/Client-side_JavaScript_frameworks/React_accessibility does not exist but fell back to /en-US/docs/Learn/Tools_and_testing/Client-side_JavaScript_frameworks/React_accessibility
    • /zh-CN/docs/Learn/Tools_and_testing/Client-side_JavaScript_frameworks/React_resources does not exist but fell back to /en-US/docs/Learn/Tools_and_testing/Client-side_JavaScript_frameworks/React_resources
    • /zh-CN/docs/Learn/Tools_and_testing/Client-side_JavaScript_frameworks/Ember_getting_started does not exist but fell back to /en-US/docs/Learn/Tools_and_testing/Client-side_JavaScript_frameworks/Ember_getting_started
    • and 10 more flaws omitted

URL: /zh-CN/docs/Learn/Getting_started_with_the_web/HTML_basics
Title: HTML 基础
Flaw count: 17

  • macros:
    • /zh-CN/docs/Learn/Tools_and_testing/Client-side_JavaScript_frameworks/React_interactivity_events_state does not exist but fell back to /en-US/docs/Learn/Tools_and_testing/Client-side_JavaScript_frameworks/React_interactivity_events_state
    • /zh-CN/docs/Learn/Tools_and_testing/Client-side_JavaScript_frameworks/React_interactivity_filtering_conditional_rendering does not exist but fell back to /en-US/docs/Learn/Tools_and_testing/Client-side_JavaScript_frameworks/React_interactivity_filtering_conditional_rendering
    • /zh-CN/docs/Learn/Tools_and_testing/Client-side_JavaScript_frameworks/React_accessibility does not exist but fell back to /en-US/docs/Learn/Tools_and_testing/Client-side_JavaScript_frameworks/React_accessibility
    • /zh-CN/docs/Learn/Tools_and_testing/Client-side_JavaScript_frameworks/React_resources does not exist but fell back to /en-US/docs/Learn/Tools_and_testing/Client-side_JavaScript_frameworks/React_resources
    • /zh-CN/docs/Learn/Tools_and_testing/Client-side_JavaScript_frameworks/Ember_getting_started does not exist but fell back to /en-US/docs/Learn/Tools_and_testing/Client-side_JavaScript_frameworks/Ember_getting_started
    • and 10 more flaws omitted
  • broken_links:
    • Can't resolve /zh-CN/docs/learn/Accessibility
    • Can't resolve /zh-CN/docs/learn/HTML/Introduction_to_HTML/HTML_text_fundamentals#为什么我们需要结构化?
External URLs (1)

URL: /zh-CN/docs/Learn/Getting_started_with_the_web/Dealing_with_files
Title: 处理文件

(comment last updated: 2024-10-04 07:39:54)

familyboat and others added 5 commits September 27, 2024 18:34
…ex.md

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…ex.md

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…ex.md

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…ex.md

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
@yin1999
Copy link
Member

yin1999 commented Sep 29, 2024

更新的时候,对代码部分中的英文是否要翻译不是很确定,所以我保留了原样;对嵌入的图片的 alt 是否要翻译也不是很确定

都需要翻译,代码部分仅在有配套的 GitHub 实时示例时,不需要进行全内容的翻译(仅翻译不影响对应关系的注释等内容)

加粗效果如果无法正常应用,请使用 Markdown 原生语法的链接代替,并将加粗的样式放到链接文字内:

我想要加粗一个[**链接**](https://example.com),那我应该这么写。

@familyboat
Copy link
Contributor Author

尝试了你说的加粗效果的方法,但还是没法正确显示,你帮忙看一下这个部分。
code 部分和 Alt 部分的翻译,根据你说的,我是这样理解的:Alt部分都翻译了,code部分有的涉及到对应的英文图片,这部分就没有翻译,其他的就都翻译了。

Copy link
Member

@yin1999 yin1999 left a comment

Choose a reason for hiding this comment

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

请注意这些问题


这个元素的主要部分有:

1. **开始标签**(Opening tag):包含元素的名称(本例为 p),被大于号、小于号所包围。表示元素从这里开始或者开始起作用——在本例中即段落由此开始。
2. **结束标签**(Closing tag):与开始标签相似,只是其在元素名之前包含了一个斜杠。这表示着元素的结尾——在本例中即段落在此结束。初学者常常会犯忘记包含结束标签的错误,这可能会产生一些奇怪的结果。
1. **开始标签**(Opening tag):包含元素的名称(本例为 p),及包围名称的**大于号**、**小于号**。这表示元素从这里开始或者开始起作用——在本例中即段落由此开始。
Copy link
Member

Choose a reason for hiding this comment

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

英文文档用的是给“尖括号”加粗,可以调整一下翻译+样式

3. 由引号所包围的属性值
1. 属性与元素名称(或上一个属性,如果元素有超过一个属性的话)之间的一个空格
2. 属性名,后接一个等号
3. 引号包围的属性值
Copy link
Member

Choose a reason for hiding this comment

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

同上一处,调整一下翻译


> **备注:** `href` 这个名字可能开始看起来有点令人费解,代表超文本引用( **h**ypertext **ref**erence)。
> **备注:** `href` 这个名字可能一开始看起来有点令人费解,代表超文本引用(_**h**ypertext **ref**erence_)。
Copy link
Member

Choose a reason for hiding this comment

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

翻译尽量与原文对齐,请修改

@familyboat
Copy link
Contributor Author

已经根据评论意见进行了修改。

@familyboat familyboat requested a review from yin1999 October 4, 2024 07:40
@yin1999 yin1999 merged commit cfc1e38 into mdn:main Oct 4, 2024
7 checks passed
@familyboat familyboat deleted the update_second_two_articles_of_Getting_started_with_the_web branch October 4, 2024 13:16
@familyboat
Copy link
Contributor Author

不好意思,刚刚发现有一条建议被隐藏了,就没有应用。

sora32127 pushed a commit to sora32127/translated-content that referenced this pull request Oct 6, 2024
…d with the web` (mdn#23807)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: A1lo <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
l10n-zh Issues related to Chinese content.
Projects
Development

Successfully merging this pull request may close these issues.

2 participants