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

ext/bcmath: PHP 8.4の翻訳 #257

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
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