translation - Transchoice and yaml in Symfony -


i'm convinced of yml translation files in symfony. strings structured.

my question simple: following chaining in plural string valid? , if answer yes, how that?

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

the correct syntax :

product:     list:         plural: "{0} there no product|{1} there 1 product|]1,19] there %count% products|[20,inf[ there many products" 

Comments

Popular posts from this blog

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -