XenForo
Administrative
- Thread starter
- Admin
- #1
Hello is it possible to use a variable in phrases, like that in templates
<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 -->
I want to get something like
{{phrase('hello')}} --> result into Bonjour, which is the configured phrase
Thanks
Read more about this Feed . . .
<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 -->
I want to get something like
{{phrase('hello')}} --> result into Bonjour, which is the configured phrase
Thanks
Read more about this Feed . . .