【发布时间】:2012-06-09 01:03:05
【问题描述】:
我正在翻译activity.fr.yml中的以下键
user.list.link: '{1}et %count% autre|]1,Inf[voir les %count% autres'
使用 tranchoice
<a href="{{ moreLink }}" >{% transchoice count from "activity" %}user.list.link{% endtranschoice %}</a>
我收到以下错误
An exception has been thrown during the rendering of a template ("Unable to choose a translation.")
我认为翻译已经找到,否则我不会收到有关无法选择翻译但密钥本身的错误。
同样,来自同一个 yaml 的所有其他键,甚至其他 tranchoice 都得到了很好的翻译。
我关注了doc并尝试添加with {'%count%': count}但没有成功。
有人知道这里出了什么问题吗? 提前致谢
【问题讨论】:
标签: symfony translation yaml twig pluralize