Skip to content

Commit 3c9c4d4

Browse files
committed
minor #18057 [Translation] Fix plural rules at message format page (xyluet)
This PR was submitted for the 6.2 branch but it was merged into the 5.4 branch instead. Discussion ---------- [Translation] Fix plural rules at message format page Fix wrong plural rules at `apples` example. Commits ------- b98faaa fix plural rules
2 parents 24dc80c + b98faaa commit 3c9c4d4

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)