Skip to content

Commit 12f8088

Browse files
committed
Merge branch '5.1' into 5.2
* 5.1: Fix select & plural message format
2 parents a4427b6 + 0d92891 commit 12f8088

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

translation/message_format.rst

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -271,27 +271,24 @@ Usage of this string is the same as with variables and select::
271271
.. code-block:: text
272272
273273
{gender_of_host, select,
274-
female {
275-
{num_guests, plural, offset:1
274+
female {{num_guests, plural, offset:1
276275
=0 {{host} does not give a party.}
277276
=1 {{host} invites {guest} to her party.}
278277
=2 {{host} invites {guest} and one other person to her party.}
279-
other {{host} invites {guest} and # other people to her party.}}
280-
}
281-
male {
282-
{num_guests, plural, offset:1
278+
other {{host} invites {guest} and # other people to her party.}
279+
}}
280+
male {{num_guests, plural, offset:1
283281
=0 {{host} does not give a party.}
284282
=1 {{host} invites {guest} to his party.}
285283
=2 {{host} invites {guest} and one other person to his party.}
286-
other {{host} invites {guest} and # other people to his party.}}
287-
}
288-
other {
289-
{num_guests, plural, offset:1
284+
other {{host} invites {guest} and # other people to his party.}
285+
}}
286+
other {{num_guests, plural, offset:1
290287
=0 {{host} does not give a party.}
291288
=1 {{host} invites {guest} to their party.}
292289
=2 {{host} invites {guest} and one other person to their party.}
293-
other {{host} invites {guest} and # other people to their party.}}
294-
}
290+
other {{host} invites {guest} and # other people to their party.}
291+
}}
295292
}
296293
297294
.. sidebar:: Using Ranges in Messages

0 commit comments

Comments
 (0)