XF 2.2 variables as indicator for phrases

TheSkullKid

Active member
Code:
<xf:set var="$id" value="hello" />

{{phrase('$id')}} <!-- not working result in $id -->
{{phrase($id)}} <!-- error Phrase name must be literal -->
{{phrase('{{$id}}')}} <!-- not working result in {{$id}} -->
{{phrase({{$id}})}}<!-- Syntax error -->
Hello is it possible to use a variable in phrases, like that in templates



I want to get something like
Code:
{{phrase('hello')}} --> result into Bonjour, which is the configured phrase

Thanks
 
Seems not be possible

 
Top Bottom