2 [% PROCESS 'i18n.inc' %]
3 [% t('hello') | $raw %]
4 [% tx('hello {name}', { name = 'Bob' }) | $raw %]
5 [% tn('item', 'items', count) | $raw %]
6 [% tnx('{count} item', '{count} items', count, { count = count }) | $raw %]
7 [% tp('context', 'hello') | $raw %]
8 [% tpx('context', 'hello {name}', { name = 'Bob' }) | $raw %]
9 [% tnp('context', 'item', 'items', count) | $raw %]
10 [% tnpx('context', '{count} item', '{count} items', count, { count = count }) | $raw %]
12 [% # it also works on multiple lines
24 [% # and t* calls can be nested
25 tx('status is {status}', {
26 status = active ? t('active') : t('inactive')
30 [%# but a TT comment won't get picked
35 [% t('Inside block') | $raw %]