I'd like to create a variable from another variable. What I got right now is something like this:
{% set language = fr %}
{% if language == "en" %}
{% set fooAddress = en_foobar.globalAddress %}
{% if language == "fr" %}
{% set fooAddress = fr_foobar.globalAddress %}
{% if language == "de" %}
{% set fooAddress = de_foobar.globalAddress %}
What I'd like to do is:
{% set fooAddress = language ~ "_foobar.globalAddress" %}
No problem with plain PHP (http://php.net/manual/en/language.variables.variable.php) but is this possible to do with Twig?