Skip to content

Commit 1b884c3

Browse files
committed
Minor reword
1 parent 9617cdb commit 1b884c3

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

translation/message_format.rst

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ Usage of this string is the same as with variables and select::
230230

231231
You can also set an ``offset`` variable to determine whether the
232232
pluralization should be offset (e.g. in sentences like ``You and # other people``
233-
/ ``You and # other person``).
233+
/ ``You and # other person``).
234234

235235
.. tip::
236236

@@ -239,23 +239,23 @@ Usage of this string is the same as with variables and select::
239239

240240
.. code-block:: text
241241
242-
{gender_of_host, select,
242+
{gender_of_host, select,
243243
female {
244-
{num_guests, plural, offset:1
244+
{num_guests, plural, offset:1
245245
=0 {{host} does not give a party.}
246246
=1 {{host} invites {guest} to her party.}
247247
=2 {{host} invites {guest} and one other person to her party.}
248248
other {{host} invites {guest} and # other people to her party.}}
249249
}
250250
male {
251-
{num_guests, plural, offset:1
251+
{num_guests, plural, offset:1
252252
=0 {{host} does not give a party.}
253253
=1 {{host} invites {guest} to his party.}
254254
=2 {{host} invites {guest} and one other person to his party.}
255255
other {{host} invites {guest} and # other people to his party.}}
256256
}
257257
other {
258-
{num_guests, plural, offset:1
258+
{num_guests, plural, offset:1
259259
=0 {{host} does not give a party.}
260260
=1 {{host} invites {guest} to their party.}
261261
=2 {{host} invites {guest} and one other person to their party.}
@@ -377,7 +377,8 @@ using the :phpclass:`IntlDateFormatter`:
377377
];
378378
379379
The "function statement" for the ``time`` and ``date`` functions can be one of
380-
short, medium, long or full, as documented on PHP.net::
380+
``short``, ``medium``, ``long`` or ``full``, which correspond to the
381+
`constants defined by the IntlDateFormatter class`_::
381382

382383
// prints "Published at Jan 25, 2019 - 11:30 AM"
383384
echo $translator->trans('published_at', ['publication_date' => new \DateTime('2019-01-25 11:30:00')]);
@@ -439,3 +440,4 @@ The ``number`` formatter allows you to format numbers using Intl's :phpclass:`Nu
439440
.. _`ICU MessageFormat`: http://userguide.icu-project.org/formatparse/messages
440441
.. _`switch statement`: https://php.net/control-structures.switch
441442
.. _`Language Plural Rules`: http://www.unicode.org/cldr/charts/latest/supplemental/language_plural_rules.html
443+
.. _`constants defined by the IntlDateFormatter class`: https://php.net/manual/en/class.intldateformatter.php

0 commit comments

Comments
 (0)