Skip to content

ext/bcmath: PHP 8.4の翻訳 #257

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

Merged
merged 13 commits into from
Feb 2, 2025
Merged

Conversation

SakiTakamachi
Copy link
Member

@SakiTakamachi SakiTakamachi commented Jan 29, 2025

2024/1/30時点での最新適用

原文書いたのが私なので、技術的な内容は全て合っていると考えて大丈夫です。
その他、誤字脱字や何かしらのjaのルールに沿わない表現があるかなど特に見ていただけると助かります。

@SakiTakamachi SakiTakamachi force-pushed the bcmath_84 branch 2 times, most recently from 96170d3 to aa915c4 Compare January 29, 2025 06:46
@SakiTakamachi SakiTakamachi marked this pull request as ready for review January 30, 2025 00:38
</para>
<simpara>
このメソッドは、 <parameter>num</parameter> が <literal>0</literal> である場合、
<exceptionname>DivisionByZeroError</exceptionname> exception をスローします。
Copy link
Contributor

Choose a reason for hiding this comment

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

exception の削除忘れだと思われます

</para>
<simpara>
このメソッドは、<varname>$this</varname> の値が <literal>0</literal> かつ <parameter>exponent</parameter> が負の値である場合、
<exceptionname>DivisionByZeroError</exceptionname> exception をスローします。
Copy link
Contributor

Choose a reason for hiding this comment

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

exception の削除忘れだと思われます

</para>
<simpara>
このメソッドは、 <parameter>modulus</parameter> が <literal>0</literal> である場合、
<exceptionname>DivisionByZeroError</exceptionname> exception をスローします。
Copy link
Contributor

Choose a reason for hiding this comment

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

exception の削除忘れだと思われます

This function throws a <exceptionname>DivisionByZeroError</exceptionname>
exception if <parameter>num2</parameter> is <literal>0</literal>.
この関数は、 <parameter>num2</parameter> が <literal>0</literal> である場合、
<exceptionname>DivisionByZeroError</exceptionname> exception をスローします。
Copy link
Contributor

Choose a reason for hiding this comment

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

exception の削除忘れだと思われます

This function throws a <exceptionname>DivisionByZeroError</exceptionname> exception if <parameter>num</parameter>
is <literal>0</literal> and <parameter>exponent</parameter> is a negative value.
この関数は、<parameter>num</parameter> の値が <literal>0</literal> かつ <parameter>exponent</parameter> が負の値である場合、
<exceptionname>DivisionByZeroError</exceptionname> exception をスローします。
Copy link
Contributor

Choose a reason for hiding this comment

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

exception の削除忘れだと思われます

This function throws a <exceptionname>DivisionByZeroError</exceptionname> exception if <parameter>modulus</parameter>
is <literal>0</literal>.
この関数は、<parameter>modulus</parameter> の値が <literal>0</literal> である場合、
<exceptionname>DivisionByZeroError</exceptionname> exception をスローします。
Copy link
Contributor

Choose a reason for hiding this comment

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

exception の削除忘れだと思われます

</example>
<example>
<title>
Example of using <methodname>BcMath\Number::round</methodname> で異なる <parameter>precision</parameter> を指定した例
Copy link
Contributor

Choose a reason for hiding this comment

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

Example of using の削除忘れだと思われます

</methodsynopsis>
<simpara>
<varname>$this</varname> を <parameter>num</parameter> で割った剰余を取得します。
<parameter>num</parameter> が <literal>0</literal> でない限り, 結果は <varname>$this</varname>
Copy link
Contributor

Choose a reason for hiding this comment

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

読点が , のままのようです

</entry>
</row>
<row>
<entry>8.0.0</entry>
<entry>
Dividing by <literal>0</literal> now throws a <exceptionname>DivisionByZeroError</exceptionname> exception instead of returning &false;.
<literal>0</literal> 除算を行うと、<exceptionname>DivisionByZeroError</exceptionname>
exception がスローされるようになりました。以前は &false; が返されていました。
Copy link
Contributor

Choose a reason for hiding this comment

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

exception の削除忘れだと思われます

@@ -57,7 +57,8 @@
<row>
<entry>8.0.0</entry>
<entry>
Dividing by <literal>0</literal> now throws a <exceptionname>DivisionByZeroError</exceptionname> exception instead of returning null.
<literal>0</literal> 除算を行うと、<exceptionname>DivisionByZeroError</exceptionname>
exception がスローされるようになりました。以前は &null; が返されていました。
Copy link
Contributor

Choose a reason for hiding this comment

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

exception の削除忘れだと思われます

@siwa32
Copy link
Contributor

siwa32 commented Feb 1, 2025

誤字脱字と思われる箇所のみ指摘させていただきました

Copy link
Collaborator

@KentarouTakeda KentarouTakeda left a comment

Choose a reason for hiding this comment

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

誤字脱字や何かしらのjaのルールに沿わない表現があるかなど特に見ていただけると助かります。

文章は @siwa32 さんが見てくださったので、私の方では revcheck の動作に関わる箇所やxmlのシンタックス、スタイルなどを確認しました。問題ないと思います。非常に丁寧な作業、ありがとうございます!

@SakiTakamachi
Copy link
Member Author

@siwa32 @KentarouTakeda
ありがとうございます、修正しました!

exceptionについては、他のページで例外と訳されていたので、削除ではなく置換としました

Copy link
Collaborator

@KentarouTakeda KentarouTakeda left a comment

Choose a reason for hiding this comment

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

@SakiTakamachi
ありがとうございます!

@siwa32
レビューありがとうございました!書いていただいた内容も私の方で精査し、大丈夫そうなので今の状態でマージします。何かあれば仰って下さい!

@KentarouTakeda KentarouTakeda merged commit 2ab48cf into php:master Feb 2, 2025
2 checks passed
@SakiTakamachi SakiTakamachi deleted the bcmath_84 branch February 2, 2025 04:54
KentarouTakeda pushed a commit that referenced this pull request May 1, 2025
* language-snippets.ent: スキップされていた 8b502f81f951a1af64396b69823f7a35b7637541 を取り込み

* language-snippets.ent: スキップされていた 9a5b92a30888d6423db112f07a9b344cf6fc4891 を取り込み

* language-snippets.ent: スキップされていた c75f19c74fa3b64abfafd7a35aaa652b07834a5a を取り込み

* language-snippets.ent: スキップされていた 53054bf8decc8648cf2e90a493692a161e2371af を取り込み

* language-snippets.ent: スキップされていた ed1aff13602c94f86344bdd7c4fbc31f5a71bf84 を取り込み

* language-snippets.ent: スキップされていた bead080a991889bf281d32095f2197e61413ac70 を取り込み

* language-snippets.ent: スキップされていた ebbc5bb97c8c063d31309725c0bb93d21213993b を取り込み

* language-snippets.ent: スキップされていた 810229e31c049ee7240aad2be5694fca7901ce60 を取り込み
KentarouTakeda pushed a commit that referenced this pull request May 3, 2025
* language-snippets.ent: スキップされていた 9b68bf2b63200534e022bc65e800cae6c75abf26 を取り込み

* language-snippets.ent: スキップされていた 32caa89e81d180f209425159e2be2f243a3e12cc を取り込み

* language-snippets.ent: スキップされていた ffd2ef754b37526c0b96e94859d57ce06acfbf41 を取り込み

* language-snippets.ent: スキップされていた a8b6f4dd3a23875b066d4e47ea4a4977a63e0655 を取り込み

* language-snippets.ent: スキップされていた c39225b6dd23f358824f44f5b8c733517b11830b を取り込み
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