Skip to content

日本語訳の存在しない新規翻訳ページ(NoDiscard, StreamBucket)#338

Open
KentarouTakeda wants to merge 3 commits intophp:masterfrom
KentarouTakeda:new-translations
Open

日本語訳の存在しない新規翻訳ページ(NoDiscard, StreamBucket)#338
KentarouTakeda wants to merge 3 commits intophp:masterfrom
KentarouTakeda:new-translations

Conversation

@KentarouTakeda
Copy link
Collaborator

NoDiscard

StreamBucket

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

日本語訳が未整備だった新規ドキュメント(NoDiscard 属性と StreamBucket クラス)を追加し、定義済み属性の一覧に NoDiscard を組み込むPRです。

Changes:

  • StreamBucket クラスのリファレンスページを新規追加
  • NoDiscard 属性ページおよび NoDiscard::__construct を新規追加
  • 定義済み属性一覧(attributes.xml)に NoDiscard を追加し、EN-Revision を更新

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 6 comments.

File Description
reference/stream/streambucket.xml StreamBucket クラスの新規リファレンスページを追加
language/predefined/attributes/nodiscard.xml NoDiscard 属性の新規リファレンスページを追加
language/predefined/attributes/nodiscard/construct.xml NoDiscard::__construct の新規リファレンスページを追加
language/predefined/attributes.xml 定義済み属性一覧に NoDiscard を追加、EN-Revision を更新

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

<section xml:id="nodiscard.intro">
&reftitle.intro;
<simpara>
このアトリビュートは、関数やメソッドの戻り値を破棄すべきでないことを示すために使います。
Copy link
Contributor

Choose a reason for hiding this comment

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

discardの訳語として「破棄する」が使われていますが、destructの意味にも取れてしまい、やや誤解を招くかもしれないと感じています。

「捨てる」「無視する」などが個人的にはしっくりくるように感じます。いかがでしょう?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

5136772: ありがとうございます!仰るとおりですね。「無視」としました。

</section>

<section>
&reftitle.examples;
Copy link
Contributor

Choose a reason for hiding this comment

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

コード例のコメントが英語のままですが、他のページはコメントまで日本語訳されていることが多そうです。

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

5136772: 訳しました!

- 「破棄する」→「無視する」に変更(レビュー指摘対応)
- コード例内の英語コメントを日本語に翻訳
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants