File tree Expand file tree Collapse file tree 2 files changed +57
-6
lines changed
reference/gettext/functions Expand file tree Collapse file tree 2 files changed +57
-6
lines changed Original file line number Diff line number Diff line change 5
5
<refentry xml : id =" function.bind-textdomain-codeset" xmlns =" http://docbook.org/ns/docbook" >
6
6
<refnamediv >
7
7
<refname >bind_textdomain_codeset</refname >
8
- <refpurpose >DOMAIN メッセージカタログから返されるメッセージの文字エンコーディングを指定する </refpurpose >
8
+ <refpurpose >DOMAIN メッセージカタログから返されるメッセージの文字エンコーディングを設定/取得する </refpurpose >
9
9
</refnamediv >
10
10
11
11
<refsect1 role =" description" >
12
12
&reftitle.description;
13
13
<methodsynopsis >
14
14
<type class =" union" ><type >string</type ><type >false</type ></type ><methodname >bind_textdomain_codeset</methodname >
15
15
<methodparam ><type >string</type ><parameter >domain</parameter ></methodparam >
16
- <methodparam ><type > string</type ><parameter >codeset</parameter ></methodparam >
16
+ <methodparam ><type class = " union " >< type > string</ type >< type >null</ type > </type ><parameter >codeset</parameter ></methodparam >
17
17
</methodsynopsis >
18
18
<para >
19
19
<function >bind_textdomain_codeset</function > を使用することで、
20
20
<function >gettext</function > やその類似の関数において返される、
21
21
<parameter >domain</parameter > からのメッセージの文字エンコーディングを
22
- 設定することが可能です 。
22
+ 設定したり、取得することが可能です 。
23
23
</para >
24
24
</refsect1 >
25
25
40
40
<listitem >
41
41
<para >
42
42
コードセット。
43
+ &null; を指定すると、現在設定されているエンコーディングが返されます。
43
44
</para >
44
45
</listitem >
45
46
</varlistentry >
53
54
成功した場合に文字列を返します。
54
55
</para >
55
56
</refsect1 >
57
+
58
+ <refsect1 role =" changelog" >
59
+ &reftitle.changelog;
60
+ <informaltable >
61
+ <tgroup cols =" 2" >
62
+ <thead >
63
+ <row >
64
+ <entry >&Version; </entry >
65
+ <entry >&Description; </entry >
66
+ </row >
67
+ </thead >
68
+ <tbody >
69
+ <row >
70
+ <entry >8.0.3</entry >
71
+ <entry >
72
+ <parameter >codeset</parameter > は、nullable になりました。
73
+ これより前のバージョンでは、
74
+ 現在設定されているエンコーディングは取得できませんでした。
75
+ </entry >
76
+ </row >
77
+ </tbody >
78
+ </tgroup >
79
+ </informaltable >
80
+ </refsect1 >
81
+
56
82
</refentry >
57
83
<!-- Keep this comment at the end of the file
58
84
Local variables:
Original file line number Diff line number Diff line change 4
4
<refentry xml : id =" function.bindtextdomain" xmlns =" http://docbook.org/ns/docbook" >
5
5
<refnamediv >
6
6
<refname >bindtextdomain</refname >
7
- <refpurpose >ドメインのパスを設定する </refpurpose >
7
+ <refpurpose >ドメインのパスを取得/設定する </refpurpose >
8
8
</refnamediv >
9
9
10
10
<refsect1 role =" description" >
11
11
&reftitle.description;
12
12
<methodsynopsis >
13
13
<type class =" union" ><type >string</type ><type >false</type ></type ><methodname >bindtextdomain</methodname >
14
14
<methodparam ><type >string</type ><parameter >domain</parameter ></methodparam >
15
- <methodparam ><type > string</type ><parameter >directory</parameter ></methodparam >
15
+ <methodparam ><type class = " union " >< type > string</ type >< type >null</ type > </type ><parameter >directory</parameter ></methodparam >
16
16
</methodsynopsis >
17
17
<para >
18
- <function >bindtextdomain</function > 関数は、ドメインへのパスを設定します 。
18
+ <function >bindtextdomain</function > 関数は、ドメインへのパスを取得/設定します 。
19
19
</para >
20
20
</refsect1 >
21
21
36
36
<listitem >
37
37
<para >
38
38
ディレクトリのパス。
39
+ &null; を指定すると、現在設定されているディレクトリが返されます。
39
40
</para >
40
41
</listitem >
41
42
</varlistentry >
47
48
&reftitle.returnvalues;
48
49
<para >
49
50
現在設定されているドメインへのフルパスを返します。
51
+ &return.falseforfailure;
50
52
</para >
51
53
</refsect1 >
52
54
55
+ <refsect1 role =" changelog" >
56
+ &reftitle.changelog;
57
+ <informaltable >
58
+ <tgroup cols =" 2" >
59
+ <thead >
60
+ <row >
61
+ <entry >&Version; </entry >
62
+ <entry >&Description; </entry >
63
+ </row >
64
+ </thead >
65
+ <tbody >
66
+ <row >
67
+ <entry >8.0.3</entry >
68
+ <entry >
69
+ <parameter >directory</parameter > は、nullable になりました。
70
+ これより前のバージョンでは、現在設定されているディレクトリを取得できませんでした。
71
+ </entry >
72
+ </row >
73
+ </tbody >
74
+ </tgroup >
75
+ </informaltable >
76
+ </refsect1 >
77
+
53
78
<refsect1 role =" examples" >
54
79
&reftitle.examples;
55
80
<para >
You can’t perform that action at this time.
0 commit comments