Skip to content

Commit 43e5c7b

Browse files
committed
minor #5267 fix infinity upper bound (xabbuh)
This PR was merged into the 2.3 branch. Discussion ---------- fix infinity upper bound | Q | A | ------------- | --- | Doc fix? | yes | New docs? | no | Applies to | all | Fixed tickets | #4994 Commits ------- 3d19643 fix infinity upper bound
2 parents 2314cfe + 3d19643 commit 43e5c7b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

book/translation.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ help with message translation of *static blocks of text*:
235235
{% trans %}Hello %name%{% endtrans %}
236236
237237
{% transchoice count %}
238-
{0} There are no apples|{1} There is one apple|]1,Inf] There are %count% apples
238+
{0} There are no apples|{1} There is one apple|]1,Inf[ There are %count% apples
239239
{% endtranschoice %}
240240
241241
The ``transchoice`` tag automatically gets the ``%count%`` variable from
@@ -261,7 +261,7 @@ You can also specify the message domain and pass some additional variables:
261261
{% trans with {'%name%': 'Fabien'} from "app" into "fr" %}Hello %name%{% endtrans %}
262262
263263
{% transchoice count with {'%name%': 'Fabien'} from "app" %}
264-
{0} %name%, there are no apples|{1} %name%, there is one apple|]1,Inf] %name%, there are %count% apples
264+
{0} %name%, there are no apples|{1} %name%, there is one apple|]1,Inf[ %name%, there are %count% apples
265265
{% endtranschoice %}
266266
267267
.. _book-translation-filters:

components/translation/usage.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ use explicit math intervals:
311311

312312
.. code-block:: text
313313
314-
'{0} There are no apples|{1} There is one apple|]1,19] There are %count% apples|[20,Inf] There are many apples'
314+
'{0} There are no apples|{1} There is one apple|]1,19] There are %count% apples|[20,Inf[ There are many apples'
315315
316316
The intervals follow the `ISO 31-11`_ notation. The above string specifies
317317
four different intervals: exactly ``0``, exactly ``1``, ``2-19``, and ``20``
@@ -323,7 +323,7 @@ effect after removing the explicit rules:
323323

324324
.. code-block:: text
325325
326-
'{0} There are no apples|[20,Inf] There are many apples|There is one apple|a_few: There are %count% apples'
326+
'{0} There are no apples|[20,Inf[ There are many apples|There is one apple|a_few: There are %count% apples'
327327
328328
For example, for ``1`` apple, the standard rule ``There is one apple`` will
329329
be used. For ``2-19`` apples, the second standard rule ``There are %count%

0 commit comments

Comments
 (0)