reference/gettext/functions/textdomain.xml
59e6c121147bd1b203f02a15c8a067c964ae4e99
...
...
@@ -1,30 +1,30 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
3
<!-- splitted from ./en/functions/gettext.xml, last change in rev 1.2 -->
4
-
<refentry xml:id="function.textdomain" xmlns="http://docbook.org/ns/docbook">
5
-
<refnamediv>
6
-
<refname>textdomain</refname>
7
-
<refpurpose>Sets the default domain</refpurpose>
8
-
</refnamediv>
9
-
<refsect1 role="description">
10
-
&reftitle.description;
11
-
<methodsynopsis>
12
-
<type>string</type><methodname>textdomain</methodname>
13
-
<methodparam><type>string</type><parameter>text_domain</parameter></methodparam>
14
-
</methodsynopsis>
15
-
<para>
16
-
This function sets the domain to search within when calls are
17
-
made to <function>gettext</function>, usually the named after an
18
-
application.
19
-
</para>
20
-
</refsect1>
4
+
<refentry xml:id="function.textdomain" xmlns="http://docbook.org/ns/docbook">
5
+
<refnamediv>
6
+
<refname>textdomain</refname>
7
+
<refpurpose>Sets the default domain</refpurpose>
8
+
</refnamediv>
9
+
<refsect1 role="description">
10
+
&reftitle.description;
11
+
<methodsynopsis>
12
+
<type>string</type><methodname>textdomain</methodname>
13
+
<methodparam><type class="union"><type>string</type><type>null</type></type><parameter>domain</parameter></methodparam>
14
+
</methodsynopsis>
15
+
<para>
16
+
This function sets the domain to search within when calls are
17
+
made to <function>gettext</function>, usually the named after an
18
+
application.
19
+
</para>
20
+
</refsect1>
21
21

22
22
<refsect1 role="parameters">
23
23
&reftitle.parameters;
24
24
<para>
25
25
<variablelist>
26
26
<varlistentry>
27
-
<term><parameter>text_domain</parameter></term>
27
+
<term><parameter>domain</parameter></term>
28
28
<listitem>
29
29
<para>
30
30
The new message domain, or &null; to get the current setting without
...
...
@@ -44,8 +44,16 @@
44
44
</para>
45
45
</refsect1>
46
46

47
+
<refsect1 role="notes">
48
+
&reftitle.notes;
49
+
<note>
50
+
<para>
51
+
The <function>textdomain</function> information is maintained per process,
52
+
not per thread.
53
+
</para>
54
+
</note>
55
+
</refsect1>
47
56
</refentry>
48
-

49
57
<!-- Keep this comment at the end of the file
50
58
Local variables:
51
59
mode: sgml
52
60