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: update the translation of "BookInstance detail page and challenge" #23953

Merged
merged 4 commits into from
Oct 11, 2024

Conversation

ikenk
Copy link
Contributor

@ikenk ikenk commented Oct 9, 2024

Description

Updated bookinstance_detail_page_and_challenge doc

Motivation

To update the documentation regularly

Additional details

Related issues and pull requests

@ikenk ikenk requested a review from a team as a code owner October 9, 2024 13:42
@ikenk ikenk requested review from irvin and removed request for a team October 9, 2024 13:42
@github-actions github-actions bot added the l10n-zh Issues related to Chinese content. label Oct 9, 2024
Copy link
Contributor

github-actions bot commented Oct 9, 2024

Preview URLs

Flaws (15)

URL: /zh-CN/docs/Learn/Server-side/Express_Nodejs/Displaying_data/BookInstance_detail_page_and_challenge
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
External URLs (1)

URL: /zh-CN/docs/Learn/Server-side/Express_Nodejs/Displaying_data/BookInstance_detail_page_and_challenge
Title: 书本实例详情页面与自我挑战

(comment last updated: 2024-10-11 08:17:56)

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.

一些建议

## 书本实例细节页面

`BookInstance`细节页面,需要呈现每一个`BookInstance`的信息,`_id` 字段值(自动产生)做识别。它包含了 `Book` 名称 (也是一个连结,连到 书本细节页面),接着是纪录中的其他的信息
`BookInstance` 细节页面需要展示每一个 `BookInstance` 的信息,使用其(自动生成的)`_id` 字段值进行识别。它包含了 `Book` 名称(作为*书本细节页面*的链接)以及记录中的其他信息
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
`BookInstance` 细节页面需要展示每一个 `BookInstance` 的信息,使用其(自动生成的)`_id` 字段值进行识别。它包含了 `Book` 名称(作为*书本细节页面*的链接)以及记录中的其他信息。
`BookInstance` 细节页面需要展示每一个 `BookInstance` 的信息,使用其(自动生成的)`_id` 字段值进行标识。它包含了 `Book` 名称(作为*书本细节页面*的链接)以及记录中的其他信息。

.exec();

if (bookInstance === null) {
// No results.
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// No results.
// 没有结果。


## 自我挑战

目前,我们网站上显示的大多数日期,都使用默认的 JavaScript 格式(例如 _Tue Dec 06 2016 15:49:58 GMT+1100_(AUS 东部夏令时间)。本文的挑战,是改善作者`Author`生命周期日期显示的外观信息(死亡/出生日期)和 BookInstance 详细信息页面,使用格式:December 6th, 2016。
目前,我们网站上显示的大多数日期都使用默认的 JavaScript 格式(例如 _Tue Dec 06 2016 15:49:58 GMT+1100(AUS 东部夏令时间)_)。本文的挑战是改善作者 `Author` 的寿命信息(死亡/出生日期)和*书本实例详细信息*页面的日期显示外观,以使用以下格式:Oct 6th, 2016。
Copy link
Member

Choose a reason for hiding this comment

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

和截图里面的对应

Suggested change
目前,我们网站上显示的大多数日期都使用默认的 JavaScript 格式(例如 _Tue Dec 06 2016 15:49:58 GMT+1100AUS 东部夏令时间)_)。本文的挑战是改善作者 `Author` 的寿命信息(死亡/出生日期)和*书本实例详细信息*页面的日期显示外观,以使用以下格式:Oct 6th, 2016。
目前,我们网站上显示的大多数日期都使用默认的 JavaScript 格式(例如 _Tue Oct 06 2020 15:49:58 GMT+1100 (AUS Eastern Daylight Time)_)。本文的挑战是改善作者 `Author` 的寿命信息(死亡/出生日期)和*书本实例详细信息*页面的日期显示外观,以使用以下格式:Oct 6th, 2016。


> [!NOTE]
> 你可以使用与我们用于 Book Instance List 的相同方法(将生命周期的虚拟属性,添加到`Author`模型,并使用[moment](https://www.npmjs.com/package/moment)来设置日期字符串的格式)。
> 你可以使用与*书本实例列表*相同的方法(将生命周期的虚拟属性添加到 `Author` 模型并使用[luxon](https://www.npmjs.com/package/luxon)来设置日期字符串的格式)。
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
> 你可以使用与*书本实例列表*相同的方法(将生命周期的虚拟属性添加到 `Author` 模型并使用[luxon](https://www.npmjs.com/package/luxon)来设置日期字符串的格式)。
> 你可以使用与*书本实例列表*相同的方法(将生命周期的虚拟属性添加到 `Author` 模型并使用 [luxon](https://www.npmjs.com/package/luxon) 来设置日期字符串的格式)。

@ikenk ikenk requested a review from yin1999 October 11, 2024 06:01
…ookinstance_detail_page_and_challenge/index.md
@yin1999 yin1999 changed the title updated bookinstance_detail_page_and_challenge doc zh-cn: update the translation of "BookInstance detail page and challenge" Oct 11, 2024
@yin1999 yin1999 enabled auto-merge (squash) October 11, 2024 08:17
@yin1999 yin1999 merged commit 1b8f31b into mdn:main Oct 11, 2024
6 checks passed
@ikenk ikenk deleted the update-BookInstance-detail-page-and-challenge branch October 11, 2024 14:12
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