I'm using Smarty and utilizing the config_load respective {#VAR#} variables to implement localization. This is working perfectly fine as long as the content is within the templates, but fails as soon as I have to add dynamic content within the TPL file, i.e. with:
{if isset($var) }
    {foreach from=$var item=line}
        {$line}<br>
    {/foreach}
{/if}
Please note each entry within $var contains usually one {#VAR#} entry - and they are not translated (the user will see {#VAR#}).
What is the proper way to implement localization in this case?
Many, many thanks!
Solution
I ended up by only replacing {$line}<br> in the code above with:
{eval var=$line}
That did the trick for me.