reference/gettext/functions/ngettext.xml
ad2b7b45a27512d0e381b79641fecf6c713c4fb4
...
...
@@ -10,9 +10,9 @@
10
10
&reftitle.description;
11
11
<methodsynopsis>
12
12
<type>string</type><methodname>ngettext</methodname>
13
-
<methodparam><type>string</type><parameter>msgid1</parameter></methodparam>
14
-
<methodparam><type>string</type><parameter>msgid2</parameter></methodparam>
15
-
<methodparam><type>int</type><parameter>n</parameter></methodparam>
13
+
<methodparam><type>string</type><parameter>singular</parameter></methodparam>
14
+
<methodparam><type>string</type><parameter>plural</parameter></methodparam>
15
+
<methodparam><type>int</type><parameter>count</parameter></methodparam>
16
16
</methodsynopsis>
17
17
<para>
18
18
The plural version of <function>gettext</function>. Some languages
...
...
@@ -25,23 +25,27 @@
25
25
<para>
26
26
<variablelist>
27
27
<varlistentry>
28
-
<term><parameter>msgid1</parameter></term>
28
+
<term><parameter>singular</parameter></term>
29
29
<listitem>
30
30
<para>
31
+
The singular message ID.
31
32
</para>
32
33
</listitem>
33
34
</varlistentry>
34
35
<varlistentry>
35
-
<term><parameter>msgid2</parameter></term>
36
+
<term><parameter>plural</parameter></term>
36
37
<listitem>
37
38
<para>
39
+
The plural message ID.
38
40
</para>
39
41
</listitem>
40
42
</varlistentry>
41
43
<varlistentry>
42
-
<term><parameter>n</parameter></term>
44
+
<term><parameter>count</parameter></term>
43
45
<listitem>
44
46
<para>
47
+
The number (e.g. item count) to determine the translation for the
48
+
respective grammatical number.
45
49
</para>
46
50
</listitem>
47
51
</varlistentry>
...
...
@@ -53,8 +57,8 @@
53
57
&reftitle.returnvalues;
54
58
<para>
55
59
Returns correct plural form of message identified by
56
-
<parameter>msgid1</parameter> and <parameter>msgid2</parameter>
57
-
for count <parameter>n</parameter>.
60
+
<parameter>singular</parameter> and <parameter>plural</parameter>
61
+
for count <parameter>count</parameter>.
58
62
</para>
59
63
</refsect1>
60
64

...
...
@@ -79,7 +83,6 @@ printf(ngettext("%d window", "%d windows", 5), 5); // 5 oken
79
83
</para>
80
84
</refsect1>
81
85
</refentry>
82
-

83
86
<!-- Keep this comment at the end of the file
84
87
Local variables:
85
88
mode: sgml
86
89