我正在使用移植到我的框架中的 Symfony Translations。我在文档中找到了这个:
'{0} There are no apples|{1} There is one apple|]1,19] There are %count% apples|[20,Inf[ There are many apples'
The above string specifies four different intervals: exactly 0, exactly 1, 2-19, and 20 and higher.
来源:http ://symfony.com/doc/current/components/translation/usage.html#explicit-interval-pluralization
1.5
我的问题是我需要使用与 for 不同的复数形式1
。我怎样才能做到这一点?1.5
当我作为计数参数传递时,它会被1
分配复数。
我认为指定间隔是]1,something]
可行的,但它与文档中的基本相同[2,something]
(在那种情况下,我无论如何都看不到使用的意义]1
)。如何覆盖1.5
复数?