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 translation for HTMLMediaElement #23712

Merged
merged 4 commits into from
Sep 21, 2024
Merged

Conversation

IvanHanloth
Copy link
Contributor

Description

Update some description of

Motivation

Additional details

Related issues and pull requests

@IvanHanloth IvanHanloth requested a review from a team as a code owner September 20, 2024 14:11
@IvanHanloth IvanHanloth requested review from t7yang and removed request for a team September 20, 2024 14:11
@github-actions github-actions bot added the l10n-zh Issues related to Chinese content. label Sep 20, 2024
Copy link
Contributor

github-actions bot commented Sep 20, 2024

Preview URLs

Flaws (12)

Note! 2 documents with no flaws that don't need to be listed. 🎉

URL: /zh-CN/docs/Web/API/HTMLMediaElement/audioTracks
Title: HTMLMediaElement:audioTracks 属性
Flaw count: 4

  • macros:
    • /zh-CN/docs/Web/API/AudioTrackList does not exist but fell back to /en-US/docs/Web/API/AudioTrackList
    • /zh-CN/docs/Web/API/AudioTrackList does not exist but fell back to /en-US/docs/Web/API/AudioTrackList
    • /zh-CN/docs/Web/API/AudioTrackList/getTrackById does not exist but fell back to /en-US/docs/Web/API/AudioTrackList/getTrackById
    • /zh-CN/docs/Web/API/AudioTrackList does not exist but fell back to /en-US/docs/Web/API/AudioTrackList

URL: /zh-CN/docs/Web/API/HTMLMediaElement/canplay_event
Title: HTMLMediaElement:canplay 事件
Flaw count: 8

  • macros:
    • /zh-CN/docs/Web/API/HTMLMediaElement/waiting_event does not exist but fell back to /en-US/docs/Web/API/HTMLMediaElement/waiting_event
    • /zh-CN/docs/Web/API/HTMLMediaElement/seeking_event does not exist but fell back to /en-US/docs/Web/API/HTMLMediaElement/seeking_event
    • /zh-CN/docs/Web/API/HTMLMediaElement/seeked_event does not exist but fell back to /en-US/docs/Web/API/HTMLMediaElement/seeked_event
    • /zh-CN/docs/Web/API/HTMLMediaElement/ratechange_event does not exist but fell back to /en-US/docs/Web/API/HTMLMediaElement/ratechange_event
    • /zh-CN/docs/Web/API/HTMLMediaElement/volumechange_event does not exist but fell back to /en-US/docs/Web/API/HTMLMediaElement/volumechange_event
    • and 3 more flaws omitted

(comment last updated: 2024-09-21 02:55:59)


- {{domxref("HTMLAudioElement")}}
- {{domxref("HTMLVideoElement")}}
- {{HTMLElement("audio")}}
- {{HTMLElement("video")}}
- {{HTMLElement("video")}}
Copy link
Contributor

Choose a reason for hiding this comment

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

[mdn-linter] reported by reviewdog 🐶

Suggested change
- {{HTMLElement("video")}}
- {{HTMLElement("video")}}

Copy link
Member

Choose a reason for hiding this comment

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

少了末尾的空行

files/zh-cn/web/api/htmlmediaelement/audiotracks/index.md Outdated Show resolved Hide resolved
files/zh-cn/web/api/htmlmediaelement/buffered/index.md Outdated Show resolved Hide resolved
IvanHanloth and others added 2 commits September 20, 2024 23:09
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

这里列出了当前 PR 存在的问题,下次请注意一下


## 语法

在类似 {{domxref("EventTarget.addEventListener", "addEventListener()")}} 的方法中使用此事件名,或者设置一个事件处理器属性。
Copy link
Member

Choose a reason for hiding this comment

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

可省略最后的量词


## 事件类型

一个通用型 {{domxref("Event")}} 。
Copy link
Member

Choose a reason for hiding this comment

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

多了个空格,这里写“通用 Event”即可


- {{domxref("HTMLAudioElement")}}
- {{domxref("HTMLVideoElement")}}
- {{HTMLElement("audio")}}
- {{HTMLElement("video")}}
- {{HTMLElement("video")}}
Copy link
Member

Choose a reason for hiding this comment

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

少了末尾的空行

```plain
audio|video.audioTracks
```
所返回的列表是 _活的_;这指的是,当音频轨道从媒体元素上增加或删除时,列表的内容将会动态的变化。一旦你引用了该列表,你可以监控它以检测何时有新的音轨被添加或已存在的音轨被删除。参阅 [AudioTrackList events](/zh-CN/docs/Web/API/AudioTrackList#events) 来学习更多关于获取一个媒体元素音轨列表变化的信息。
Copy link
Member

Choose a reason for hiding this comment

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

返回的列表是“动态的”,注意,中文之间不能有空格,这里可以用星号来表示斜体

Comment on lines 56 to 58
- {{domxref("HTMLMediaElement")}}: 用于指定 `HTMLMediaElement.audioTracks` 属性的接口
- {{HTMLElement("audio")}}, {{HTMLElement("video")}}
- {{domxref("AudioTrack")}}, {{domxref("AudioTrackList")}}
Copy link
Member

Choose a reason for hiding this comment

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

注意标点符号

</tr>
</tbody>
</table>
当用户代理可以播放媒体时就会触发 **`canplay`** 事件,但是预计没有加载足够的数据以流畅的播放媒体至结束,可能需要停顿来缓存更多内容。
Copy link
Member

Choose a reason for hiding this comment

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

我们对事件的第一段的描述格式是固定的,“xxx 事件会在 xxx 时触发”。


## 事件类型

一个通用型 {{domxref("Event")}} 。
Copy link
Member

Choose a reason for hiding this comment

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

同第一个文档


使用 `addEventListener()`
使用 `addEventListener()`:
Copy link
Member

Choose a reason for hiding this comment

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

标点错了,原来是对的

});
```

使用 `oncanplay` 事件处理器属性:
使用`oncanplay`事件处理器属性:
Copy link
Member

Choose a reason for hiding this comment

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

空格应该保留


## 参见

- {{domxref("HTMLAudioElement")}}
- {{domxref("HTMLVideoElement")}}
- {{HTMLElement("audio")}}
- {{HTMLElement("video")}}
- {{HTMLElement("video")}}
Copy link
Member

Choose a reason for hiding this comment

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

最后必须保留一个空行

@yin1999 yin1999 changed the title [zh-CN]: Update translation for HTMLMediaElement [zh-cn]: update translation for HTMLMediaElement Sep 21, 2024
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.

感谢🙏

@yin1999 yin1999 merged commit 31e75a2 into mdn:main Sep 21, 2024
7 checks passed
sora32127 pushed a commit to sora32127/translated-content that referenced this pull request Oct 6, 2024
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