Skip to content

Commit c09c0ce

Browse files
committed
php#191 Translate
1 parent 5d6470f commit c09c0ce

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

reference/errorfunc/functions/trigger-error.xml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,10 @@
4848
</para>
4949
<warning>
5050
<simpara>
51-
Passing <constant>E_USER_ERROR</constant> as the
52-
<parameter>error_level</parameter> is now deprecated.
53-
Throw an <exceptionname>Exception</exceptionname> or
54-
call <function>exit</function> instead.
51+
<parameter>error_level</parameter> として
52+
<constant>E_USER_ERROR</constant> を指定するのは非推奨となりました。
53+
かわりに、<exceptionname>Exception</exceptionname> をスローするか、
54+
<function>exit</function> を呼び出してください。
5555
</simpara>
5656
</warning>
5757
</refsect1>
@@ -88,17 +88,17 @@
8888
<row>
8989
<entry>8.4.0</entry>
9090
<entry>
91-
Passing <constant>E_USER_ERROR</constant> as the
92-
<parameter>error_level</parameter> is now deprecated.
93-
Throw an <exceptionname>Exception</exceptionname> or
94-
call <function>exit</function> instead.
91+
<parameter>error_level</parameter> として
92+
<constant>E_USER_ERROR</constant> を指定するのは非推奨となりました。
93+
かわりに、<exceptionname>Exception</exceptionname> をスローするか、
94+
<function>exit</function> を呼び出してください。
9595
</entry>
9696
</row>
9797
<row>
9898
<entry>8.4.0</entry>
9999
<entry>
100-
The function now has a return type of <type>true</type>
101-
instead of <type>bool</type>.
100+
戻り値の型が、<type>bool</type> ではなく
101+
<type>true</type> に変更されました。
102102
</entry>
103103
</row>
104104
<row>
@@ -128,7 +128,7 @@
128128
<?php
129129
$password = $_POST['password'] ?? '';
130130
if ($password === '') {
131-
trigger_error("Using an empty password is unsafe", E_USER_WARNING);
131+
trigger_error("空のパスワードを使用することは安全ではありません", E_USER_WARNING);
132132
}
133133
$hash = password_hash($password, PASSWORD_DEFAULT);
134134
?>
@@ -155,7 +155,7 @@ $hash = password_hash($password, PASSWORD_DEFAULT);
155155
<member><function>set_error_handler</function></member>
156156
<member><function>restore_error_handler</function></member>
157157
<member><link linkend="errorfunc.constants">エラーレベル定数</link></member>
158-
<member>The <classname>Deprecated</classname> attribute</member>
158+
<member><classname>Deprecated</classname> アトリビュート</member>
159159
</simplelist>
160160
</para>
161161
</refsect1>

0 commit comments

Comments
 (0)