标签: php symfony twig translation twig-extension
尝试在symfony中执行类似
{% transchoice count %} {%count% mod 2 == 0} %count% - even page|{%count% mod 2 == 1} %count% - odd page {% endtranschoice %}
ofc这只是一个例子 - 想一想,我怎么能把表达式转换成transchoice?