symfony - symfony2 translation with transchoice -
i'm translating following key in activity.fr.yml
user.list.link: '{1}et %count% autre|]1,inf[voir les %count% autres' using tranchoice
<a href="{{ morelink }}" >{% transchoice count "activity" %}user.list.link{% endtranschoice %}</a> and following error
an exception has been thrown during rendering of template ("unable choose translation.")
i think translation has been found otherwise wouldn't error unable choose translation key itself.
also other keys same yaml other tranchoice translated.
i followed doc , tried adding with {'%count%': count} no success.
does have idea what's wrong here ? in advance
the syntax fine value pass %count% couldn't negative neither equal 0 because there no {0} defintion in pluralised string. had test make sure value >= 0 , modified string , fixes it.
user.list.link: '{0}|{1}et %count% autre|]1,inf[voir les %count% autres'
Comments
Post a Comment