support transchoice in php and twig for #107