You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{% transchoice count %}
{0} There are no apples|{1} There is one apple|]1,Inf] There are %count% apples
{% endtranschoice %}
and:
{% transchoice count with {'%name%': 'Fabien'} from "app" %}
{0} %name%, there are no apples|{1} %name%, there is one apple|]1,Inf] %name%, there are %count% apples
{% endtranschoice %}
and:
<?php echo $view['translator']->transChoice(
'{0} There are no apples|{1} There is one apple|]1,Inf[ There are %count% apples',
10,
array('%count%' => 10)
) ?>
I assume each one has a syntax error for the >1 range, and they should all be [1,Inf]
The text was updated successfully, but these errors were encountered:
Your explanation is correct, as it equals the syntax used in the examples. The syntax you propose ([1,Inf]) is not correct. But don't worry, we get lots of questions about this.
[1,Inf] means >=1 ]1,Inf] means >1
There is however an inconsistency between the first 2 and the last example. I would prefer if we changed everything to the syntax of the last example (]1,Inf[), as that's the only valid set (Inf is not a number and cannot be part of a set, strictly spoken). It might also avoid confusion about non-existing typos.
You have the following:
and:
and:
I assume each one has a syntax error for the >1 range, and they should all be
[1,Inf]
The text was updated successfully, but these errors were encountered: