Symfony 中的 Transchoice 和 yaml

Transchoice and yaml in Symfony

我相信 Symfony 中的 yml 翻译文件。字符串结构良好。

我的问题很简单:下面的复数字符串链接是否有效?如果答案是肯定的,该怎么做?

product:
    list:
        plural: "{0} product.list.none|{1} product.list.one|]1,19] product.list.lower20|[20,Inf[ product.list.larger20"
        none: There is no product
        one: There is one product
        lower20: There are %count% products
        larger20: There are many products          

正确的语法是:

product:
    list:
        plural: "{0} There is no product|{1} There is one product|]1,19] There are %count% products|[20,Inf[ There are many products"