Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 0d92891

Browse files
committed
Merge branch '4.4' into 5.1
* 4.4: Fix select & plural message format
2 parents 0496d13 + ce20942 commit 0d92891

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
@@ -255,27 +255,24 @@ Usage of this string is the same as with variables and select::
255255
.. code-block:: text
256256
257257
{gender_of_host, select,
258-
female {
259-
{num_guests, plural, offset:1
258+
female {{num_guests, plural, offset:1
260259
=0 {{host} does not give a party.}
261260
=1 {{host} invites {guest} to her party.}
262261
=2 {{host} invites {guest} and one other person to her party.}
263-
other {{host} invites {guest} and # other people to her party.}}
264-
}
265-
male {
266-
{num_guests, plural, offset:1
262+
other {{host} invites {guest} and # other people to her party.}
263+
}}
264+
male {{num_guests, plural, offset:1
267265
=0 {{host} does not give a party.}
268266
=1 {{host} invites {guest} to his party.}
269267
=2 {{host} invites {guest} and one other person to his party.}
270-
other {{host} invites {guest} and # other people to his party.}}
271-
}
272-
other {
273-
{num_guests, plural, offset:1
268+
other {{host} invites {guest} and # other people to his party.}
269+
}}
270+
other {{num_guests, plural, offset:1
274271
=0 {{host} does not give a party.}
275272
=1 {{host} invites {guest} to their party.}
276273
=2 {{host} invites {guest} and one other person to their party.}
277-
other {{host} invites {guest} and # other people to their party.}}
278-
}
274+
other {{host} invites {guest} and # other people to their party.}
275+
}}
279276
}
280277
281278
.. sidebar:: Using Ranges in Messages

0 commit comments

Comments
 (0)