Hey there,
quick question for you php wizzards - as the title says, I want to pass a string variable to the language helper function, like this:
<?php foreach($some-pages as $item) : ?>
// some code
<?php
$slug = $item->slug() . '-string';
$trans = l($slug);
?>
<span><?= $trans ?></span>
<?php endforeach ?>
now in the language files I would define those items like this:
l::set(array(
'some-page-slug-string' => 'Some string'
));
Thanks!

