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: create Glossary/Sticky_activation #22214

Merged
merged 3 commits into from
Jul 13, 2024
Merged

zh-CN: create Glossary/Sticky_activation #22214

merged 3 commits into from
Jul 13, 2024

Conversation

PassionPenguin
Copy link
Contributor

No description provided.

@PassionPenguin PassionPenguin requested a review from a team as a code owner July 6, 2024 14:56
@PassionPenguin PassionPenguin requested review from t7yang and removed request for a team July 6, 2024 14:56
@github-actions github-actions bot added the l10n-zh Issues related to Chinese content. label Jul 6, 2024
Copy link
Contributor

github-actions bot commented Jul 6, 2024

Preview URLs

Flaws (2)

URL: /zh-CN/docs/Glossary/Sticky_activation
Title: 粘性激活
Flaw count: 2

  • macros:
    • /zh-CN/docs/Glossary/Transient_activation does not exist but fell back to /en-US/docs/Glossary/Transient_activation
    • /zh-CN/docs/Glossary/Transient_activation does not exist but fell back to /en-US/docs/Glossary/Transient_activation
External URLs (1)

URL: /zh-CN/docs/Glossary/Sticky_activation
Title: 粘性激活

(comment last updated: 2024-07-13 13:11:28)


**粘性激活**(或“粘性用户激活”)是一种表示用户按下了按钮、移动了鼠标、使用了菜单或执行了其他用户交互窗口状态。

如果用户当前正在与页面交互或自页面加载以来完成了触摸、指针或键盘交互,则该页面被视为“用户已激活”。如果某个页面被设置了黏性激活状态,则在会话期间不会该状态被重置(与{{Glossary("Transient activation", "短暂激活")}}不同)。
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
如果用户当前正在与页面交互或自页面加载以来完成了触摸、指针或键盘交互,则该页面被视为“用户已激活”。如果某个页面被设置了黏性激活状态,则在会话期间不会该状态被重置(与{{Glossary("Transient activation", "短暂激活")}}不同)。
如果用户当前正在与页面交互或自页面加载以来完成了触摸、指针或键盘交互,则该页面被视为“用户已激活”。如果某个页面被设置了黏性激活状态,则在会话期间不会该状态被重置(与{{Glossary("Transient activation", "瞬态激活")}}不同)。
Copy link
Contributor Author

Choose a reason for hiding this comment

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

嗯,确实“瞬态”这个词比“短暂”更能体现一���

翻译的时候搜了transient activation,我当时只看到了一个“短暂激活”(也只出现了一次)就直接拿来用了
Uploading image.png…


如果用户当前正在与页面交互或自页面加载以来完成了触摸、指针或键盘交互,则该页面被视为“用户已激活”。如果某个页面被设置了黏性激活状态,则在会话期间不会该状态被重置(与{{Glossary("Transient activation", "短暂激活")}}不同)。

参见[由用户激活控制的功能](/zh-CN/docs/Web/Security/User_activation)以查看需要*粘性激活*的 API 示例。
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
参见[由用户激活控制的功能](/zh-CN/docs/Web/Security/User_activation)以查看需要*粘性激活*的 API 示例。
参见[由用户激活控制的特性](/zh-CN/docs/Web/Security/User_activation)以查看需要*粘性激活*的 API 示例。
## 参见

- [HTML 动态标准 > 黏性激活](https://html.spec.whatwg.org/multipage/interaction.html#sticky-activation)
- {{Glossary("Transient activation", "短暂激活")}}
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
- {{Glossary("Transient activation", "短暂激活")}}
- {{Glossary("Transient activation", "瞬态激活")}}
@yin1999 yin1999 merged commit eb99de6 into mdn:main Jul 13, 2024
7 checks passed
@PassionPenguin PassionPenguin deleted the sac branch July 13, 2024 13:25
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.
2 participants