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 Fullscreen API #22047

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tianyeeT
Copy link
Contributor

Description

Motivation

Additional details

Related issues and pull requests

@tianyeeT tianyeeT requested a review from a team as a code owner June 28, 2024 04:51
@tianyeeT tianyeeT requested review from t7yang and removed request for a team June 28, 2024 04:51
@github-actions github-actions bot added the l10n-zh Issues related to Chinese content. label Jun 28, 2024
Copy link
Contributor

Preview URLs

Flaws (1)

URL: /zh-CN/docs/Web/API/Fullscreen_API
Title: Fullscreen API
Flaw count: 1

  • macros:
    • /zh-CN/docs/Web/API/ShadowRoot/fullscreenElement does not exist but fell back to /en-US/docs/Web/API/ShadowRoot/fullscreenElement
External URLs (1)

URL: /zh-CN/docs/Web/API/Fullscreen_API
Title: Fullscreen API


- {{DOMxRef("Document.exitFullscreen()")}}
- : 用于请求从全屏模式切换到窗口模式,会返回一个 {{jsxref("Promise")}},会在全屏模式完全关闭的时候被置为 resolved 状态
- : 请求 {{Glossary("user agent")}} 从全屏模式切换回窗口模式。返回一个 {{jsxref("Promise")}},在全屏模式完全关闭后解决
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
- : 请求 {{Glossary("user agent")}} 从全屏模式切换回窗口模式。返回一个 {{jsxref("Promise")}},在全屏模式完全关闭后解决
- : 请求 {{Glossary("user agent")}} 从全屏模式切换回窗口模式。返回一个 {{jsxref("Promise")}},在全屏模式完全关闭后被兑现
- : 请求浏览器(user agent)将特定元素(甚至延伸到它的后代元素)置为全屏模式,隐去屏幕上的浏览器所有 UI 元素,以及其他应用。返回一个 {{jsxref("Promise")}},并会在全屏模式被激活的时候变成 resolved 状态。

## 属性
- : 请求用户代理将指定元素(及其后代)置于全屏模式,移除所有浏览器的用户界面元素以及所有其他应用程序。返回一个 {{jsxref("Promise")}},在全屏模式激活后解决。
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
- : 请求用户代理将指定元素(及其后代)置于全屏模式,移除所有浏览器的用户界面元素以及所有其他应用程序。返回一个 {{jsxref("Promise")}},在全屏模式激活后解决
- : 请求用户代理将指定元素(及其后代)置于全屏模式,移除所有浏览器的用户界面元素以及所有其他应用程序。返回一个 {{jsxref("Promise")}},在全屏模式激活后被兑现
- {{DOMxRef("DocumentOrShadowRoot.fullscreenElement")}}
- : `fullscreenElement` 属性提供了当前在 DOM(或者 shadow DOM)里被展示为全屏模式的 {{DOMxRef("Element")}},如果这个值为 `null`,文档不处于全屏模式
- {{DOMxRef("Document.fullscreenElement")}} / {{DOMxRef("ShadowRoot.fullscreenElement")}}
- : `fullscreenElement` 属性告诉你当前在 DOM( shadow DOM)中以全屏模式显示的 {{DOMxRef("Element")}}。如果为 `null`,则文档(或 shadow DOM)不在全屏模式
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
- : `fullscreenElement` 属性告诉你当前在 DOM(或 shadow DOM)中以全屏模式显示的 {{DOMxRef("Element")}}。如果为 `null`,则文档(或 shadow DOM)不在全屏模式。
- : `fullscreenElement` 属性告诉你当前在 DOM(或影子 DOM)中以全屏模式显示的 {{DOMxRef("Element")}}。如果为 `null`,则文档(或影子 DOM)不在全屏模式。

> **备注:** 请改用 {{DOMxRef("ShadowRoot")}} {{DOMxRef("Document")}} 上的 {{DOMxRef("Document.fullscreenElement", "fullscreenElement")}} 属性;如果它不是 null,则它是就是当前在全屏模式下显示的元素
> **备注:** 使用 {{DOMxRef("Document.fullscreenElement", "fullscreenElement")}} 属性在 {{DOMxRef("Document")}} {{DOMxRef("ShadowRoot")}} 上;如果它不为 `null`,则它是一个当前正在以全屏模式显示的 {{DOMxRef("Element")}}
Copy link
Contributor

Choose a reason for hiding this comment

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

奇怪的语序?

@yin1999 yin1999 marked this pull request as draft June 28, 2024 07:06

- {{DOMxRef("Document.exitFullscreen()")}}
- : 用于请求从全屏模式切换到窗口模式,会返回一个 {{jsxref("Promise")}},会在全屏模式完全关闭的时候被置为 resolved 状态
- : 请求 {{Glossary("user agent")}} 从全屏模式切换回窗口模式。返回一个 {{jsxref("Promise")}},在全屏模式完全关闭后解决
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
- : 请求 {{Glossary("user agent")}} 从全屏模式切换回窗口模式。返回一个 {{jsxref("Promise")}},在全屏模式完全关闭后解决。
- : 请求{{Glossary("user agent", "用户代理")}}从全屏模式切换回窗口模式。返回一个 {{jsxref("Promise")}},在全屏模式完全关闭后解决。
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.
3 participants