The hook script uses the construction: echo l2l('Sample text');
echo l2l('Sample text');
Original text: Sample textResult: This is the translation text obtained from the language resource file /_languages/en/scripts/[...]/en.ini.