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-tw]: add and update translation of documents under "writing_guidelines\howto" #25913

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

Conversation

weixiang0815
Copy link
Contributor

更新內容描述

基於 #25341 反映的翻譯文件同步需求,更新以下內容:

  1. 新增「mdn/writing_guidelines/howto」目錄下所有文件的翻譯
  2. 更新【編輯以及新增頁面】的翻譯,以符合原文最新內容

@weixiang0815 weixiang0815 requested a review from a team as a code owner February 16, 2025 14:53
@weixiang0815 weixiang0815 requested review from JasonLamv-t and removed request for a team February 16, 2025 14:53
@github-actions github-actions bot added the l10n-zh Issues related to Chinese content. label Feb 16, 2025
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Remaining comments which cannot be posted as a review comment to avoid GitHub Rate Limit

mdn-linter

[mdn-linter] reported by reviewdog 🐶

清單中的每個介面都應該有獨立頁面,作為 `https://developer.mozilla.org/zh-TW/docs/Web/API` 的子頁面。


[mdn-linter] reported by reviewdog 🐶

- *此介面未實作任何專屬屬性,但自 `\\{{domxref("XYZ")}}``\\{{domxref("XYZ2")}}` 繼承屬性。*
- *此介面也自 `\\{{domxref("XYZ")}}``\\{{domxref("XYZ2")}}` 繼承屬性。*
- *此介面未實作任何專屬方法,但自 `\\{{domxref("XYZ")}}``\\{{domxref("XYZ2")}}` 繼承方法。*
- *此介面也自 `\\{{domxref("XYZ")}}``\\{{domxref("XYZ2")}}` 繼承方法。*


[mdn-linter] reported by reviewdog 🐶


[mdn-linter] reported by reviewdog 🐶

IDL 代表**_介面定義語言_**(Interface Definition Language),其設計目的是用來描述 API。在更廣泛的計算領域中,有多種類型的 IDL,而瀏覽器所使用的 IDL 稱為 *WebIDL*。WebIDL 主要有兩種版本:一種來自 WebIDL 規範,另一種則是瀏覽器實作的版本。規範版本是正式的參考標準,而瀏覽器實作的 WebIDL 則描述特定瀏覽器實際支援的內容,並可能包含額外註解、非標準元素資訊,以及針對 IDL 規範的瀏覽器專屬擴充套件。


[mdn-linter] reported by reviewdog 🐶


[mdn-linter] reported by reviewdog 🐶


[mdn-linter] reported by reviewdog 🐶


[mdn-linter] reported by reviewdog 🐶

*當設為 `null` 值時,該 `null` 會被轉換為空字串 `""`,因此 `elt.innerHTML = null` 等同於 `elt.innerHTML = ""`*


[mdn-linter] reported by reviewdog 🐶

- 在該屬性的專屬頁面中,描述開頭應為:*唯讀的 **`HTMLMediaElement.error`** 屬性…*


[mdn-linter] reported by reviewdog 🐶


[mdn-linter] reported by reviewdog 🐶

*儘管此屬性為唯讀,修改它並不會拋出錯誤(即使在嚴格模式下);Setter 無效,並會被忽略。*


[mdn-linter] reported by reviewdog 🐶


[mdn-linter] reported by reviewdog 🐶

*唯讀屬性 **`HTMLMediaElement.buffered`** 會回傳一個新的 \\{{domxref("TimeRanges")}} 物件…*


[mdn-linter] reported by reviewdog 🐶

- *\\{{domxref("HTMLMediaElement.buffered")}}\\{{ReadOnlyInline}}*
- : *回傳一個新的 \\{{domxref("TimeRanges")}} 物件…*


[mdn-linter] reported by reviewdog 🐶

- : *回傳一個動態的 \\{{domxref("HTMLFormControlsCollection")}},包含…*


[mdn-linter] reported by reviewdog 🐶


[mdn-linter] reported by reviewdog 🐶


[mdn-linter] reported by reviewdog 🐶

- : 在參數描述的結尾新增以下句子:*[`null`](/zh-TW/docs/Web/JavaScript/Reference/Operators/null) 值會被視為與空字串 `""` 相同。*


[mdn-linter] reported by reviewdog 🐶


[mdn-linter] reported by reviewdog 🐶


[mdn-linter] reported by reviewdog 🐶


[mdn-linter] reported by reviewdog 🐶

- 在 WebIDL 檔案外,於規範文件內的說明段落中定義。這些說明通常以「*[要迭代的值](https://webidl.spec.whatwg.org/#dfn-value-iterator)*」開頭。


[mdn-linter] reported by reviewdog 🐶

- 在 WebIDL 檔案外,於規範文件內的說明段落中定義。這些說明通常以「*[要迭代的鍵值對](https://webidl.spec.whatwg.org/#dfn-value-pairs-to-iterate-over)*」開頭。


[mdn-linter] reported by reviewdog 🐶

使用 `Constructor` 註解定義建構子,可以帶有參數(或不帶參數,如上例)。我們會將所有匿名建構子記錄在其子頁面,例如上例的建構子會對應至 *Web/API/MessageChannel/MessageChannel*,標題為 `MessageChannel()`


[mdn-linter] reported by reviewdog 🐶

> [!NOTE]
> MDN 正逐步減少使用獨立字典文件。


[mdn-linter] reported by reviewdog 🐶

> [!NOTE]
> MDN 正在逐步減少使用獨立 `typedefs` 文件。

Copy link
Contributor

github-actions bot commented Feb 16, 2025

Preview URLs (10 pages)
Flaws (1)

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

URL: /zh-TW/docs/MDN/Writing_guidelines/Howto/Images_media
Title: 如何新增圖片與多媒體
Flaw count: 1

  • macros:
    • Can't resolve /zh-TW/docs/Glossary/長寬比
External URLs (32)

URL: /zh-TW/docs/MDN/Writing_guidelines/Howto/Images_media
Title: 如何新增圖片與多媒體


URL: /zh-TW/docs/MDN/Writing_guidelines/Howto/Write_a_new_entry_in_the_glossary
Title: 如何建立術語表條目


URL: /zh-TW/docs/MDN/Writing_guidelines/Howto/Document_a_CSS_property
Title: 如何撰寫 CSS 屬性文件


URL: /zh-TW/docs/MDN/Writing_guidelines/Howto/Write_an_api_reference
Title: 如何撰寫 API 參考


URL: /zh-TW/docs/MDN/Writing_guidelines/Howto/Write_an_api_reference/Sidebars
Title: API 參考側邊欄


URL: /zh-TW/docs/MDN/Writing_guidelines/Howto/Write_an_api_reference/Information_contained_in_a_WebIDL_file
Title: WebIDL 文件包含的資訊


URL: /zh-TW/docs/MDN/Writing_guidelines/Howto/Document_web_errors
Title: 如何撰寫網路錯誤文件


URL: /zh-TW/docs/MDN/Writing_guidelines/Howto/Document_an_HTTP_header
Title: 如何撰寫 HTTP 訊息檔頭文件

(comment last updated: 2025-02-16 15:57: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
Status: Review requested
Development

Successfully merging this pull request may close these issues.

1 participant