reference/intl/collator/construct.xml
1976eae0d815797af97a1e16c5cd90ffc2868395
...
...
@@ -7,12 +7,12 @@
7
7
</refnamediv>
8
8
<refsect1 role="description">
9
9
&reftitle.description;
10
-
<constructorsynopsis>
10
+
<constructorsynopsis role="Collator">
11
11
<modifier>public</modifier> <methodname>Collator::__construct</methodname>
12
12
<methodparam><type>string</type><parameter>locale</parameter></methodparam>
13
13
</constructorsynopsis>
14
14
<para>
15
-
Creates a new instance of Collator.
15
+
Creates a new instance of <classname>Collator</classname>.
16
16
</para>
17
17
</refsect1>
18
18

...
...
@@ -25,12 +25,12 @@
25
25
<listitem>
26
26
<para>
27
27
The locale whose collation rules should be used. Special values for
28
-
locales can be passed in - if null is passed for the locale, the
29
-
default locale's collation rules will be used. If "root" is passed,
30
-
UCA rules will be used.
28
+
locales can be passed in - if an empty &string; is passed for the locale, the
29
+
default locale's collation rules will be used. If <literal>"root"</literal> is passed,
30
+
<link xlink:href="&url.icu.uca;">UCA</link> rules will be used.
31
31
</para>
32
32
<para>
33
-
The Locale attribute is typically the most important attribute for
33
+
The <parameter>locale</parameter> attribute is typically the most important attribute for
34
34
correct sorting and matching, according to the user expectations in
35
35
different countries and regions. The default
36
36
<link xlink:href="&url.icu.uca;">UCA</link>
...
...
@@ -65,20 +65,12 @@
65
65
</para>
66
66
</refsect1>
67
67

68
-
<refsect1 role="returnvalues">
69
-
&reftitle.returnvalues;
70
-
<para>
71
-
Returns Collator instance.
72
-
</para>
73
-
</refsect1>
74
-

75
68
<refsect1 role="errors">
76
69
&reftitle.errors;
77
70
<para>
78
-
Returns an "empty" object on error. You can use
79
-
<function>intl_get_error_code</function>
80
-
and/or
81
-
<function>intl_get_error_message</function>
71
+
Returns an "empty" object on error.
72
+
Use <function>intl_get_error_code</function>
73
+
and/or <function>intl_get_error_message</function>
82
74
to know what happened.
83
75
</para>
84
76
</refsect1>
...
...
@@ -91,7 +83,7 @@
91
83
<programlisting role="php">
92
84
<![CDATA[
93
85
<?php
94
-
$coll = new Collator( 'en_CA' );
86
+
$coll = new Collator('en_CA');
95
87
?>
96
88
]]>
97
89
</programlisting>
...
...
@@ -109,7 +101,6 @@ $coll = new Collator( 'en_CA' );
109
101
</para>
110
102
</refsect1>
111
103
</refentry>
112
-

113
104
<!-- Keep this comment at the end of the file
114
105
Local variables:
115
106
mode: sgml
116
107