Skip to content

Commit 96381ea

Browse files
committed
docs: replace " with ' in sample code
No reason to use `"`.
1 parent a7fc1be commit 96381ea

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

user_guide_src/source/outgoing/localization.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,9 @@ You can pass an array of values to replace placeholders in the language string a
170170

171171
// The language file, Tests.php:
172172
return [
173-
"apples" => "I have {0, number} apples.",
174-
"men" => "The top {1, number} men out-performed the remaining {0, number}",
175-
"namedApples" => "I have {number_apples, number, integer} apples.",
173+
'apples' => 'I have {0, number} apples.',
174+
'men' => 'The top {1, number} men out-performed the remaining {0, number}',
175+
'namedApples' => 'I have {number_apples, number, integer} apples.',
176176
];
177177

178178
// Displays "I have 3 apples."
@@ -186,7 +186,7 @@ The first item in the placeholder corresponds to the index of the item in the ar
186186
You can also use named keys to make it easier to keep things straight, if you'd like::
187187

188188
// Displays "I have 3 apples."
189-
echo lang("Tests.namedApples", ['number_apples' => 3]);
189+
echo lang('Tests.namedApples', ['number_apples' => 3]);
190190

191191
Obviously, you can do more than just number replacement. According to the
192192
`official ICU docs <https://unicode-org.github.io/icu-docs/apidoc/released/icu4c/classMessageFormat.html#details>`_ for the underlying

0 commit comments

Comments
 (0)