See the very first example in the first post.
Just in reply of this question, specifically. Also if it is something that doesn't really IMO belongs to this topic.
{{ S_FORM_TOKEN }}
This worksjaviexin wrote: Fri May 26, 2017 11:46 pm An interesting effect of this, is that now, in the Twig template syntax, you CAN use language keys with parameters! So you could write something like {{ lang('KEY', 3) }} or even nesting vars, if that is allowed {{ lang('KEY', {{ VALUE }}) }}
{{ lang('KEY', 3) }}
, but what doesn't work is the nesting of variables as in {{ lang('KEY', {{ VALUE }}) }}
, neither using them in set statements {% set newvar = {{ VALUE }} %}
.{{ TOTAL }} - {{ USED }}
and use the resulting value?{{ lang('KEY', VALUE) }}
{% set newvar = VALUE %}
{{ TOTAL - USED }}
{% set newval = TOTAL - USED %}
Converted all the extensions, styles & admin panel.kasimi wrote: Sat Jul 15, 2017 8:27 am It is recommended to not mix them both. Also have a look at the Twig Converter.
Code: Select all
var collapseImageIdAlt = '{LA_DIGESTS_COLLAPSE}';
var collapseImageIdTitle = '{LA_DIGESTS_COLLAPSE}';
Code: Select all
var collapseImageIdAlt = 'Collapse';
var collapseImageIdTitle = 'Collapse';
Code: Select all
var collapseImageIdAlt = '{{ lang(DIGESTS_COLLAPSE)|addslashes }}';
var collapseImageIdTitle = '{{ lang(DIGESTS_COLLAPSE)|addslashes }}';
Code: Select all
var collapseImageIdAlt = '';
var collapseImageIdTitle = '';