Skip to content

Commit 9add755

Browse files
committed
Merge branch '5.4' into 6.2
* 5.4: fix plural rules
2 parents 4ec1557 + 3c9c4d4 commit 9add755

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

reference/formats/message_format.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ handle pluralization in your messages (e.g. ``There are 3 apples`` vs
223223
num_of_apples: >-
224224
{apples, plural,
225225
=0 {There are no apples}
226-
one {There is one apple...}
226+
=1 {There is one apple...}
227227
other {There are # apples!}
228228
}
229229
@@ -236,7 +236,7 @@ handle pluralization in your messages (e.g. ``There are 3 apples`` vs
236236
<body>
237237
<trans-unit id="num_of_apples">
238238
<source>num_of_apples</source>
239-
<target>{apples, plural, =0 {There are no apples} one {There is one apple...} other {There are # apples!}}</target>
239+
<target>{apples, plural, =0 {There are no apples} =1 {There is one apple...} other {There are # apples!}}</target>
240240
</trans-unit>
241241
</body>
242242
</file>
@@ -248,7 +248,7 @@ handle pluralization in your messages (e.g. ``There are 3 apples`` vs
248248
return [
249249
'num_of_apples' => '{apples, plural,
250250
=0 {There are no apples}
251-
one {There is one apple...}
251+
=1 {There is one apple...}
252252
other {There are # apples!}
253253
}',
254254
];

0 commit comments

Comments
 (0)