Location: PHPKode > projects > Open Power Template > tests/Opt/feature/translation_2.txt
Check the translation interface cooperation with OPT.

>>>>templates/test.tpl
{$hide@address.com}
{$hide@address.com}
{assign($hide@address.com, $variable)}
{$hide@address.com}

>>>>data.php
$this->tpl->prologRequired = false;
$this->tpl->singleRootNode = false;
require_once(FEAT_DIR.'translationInterface.php');
$this->tpl->setTranslationInterface(new translationInterface());
$view->variable = 'Variable value';

>>>>expected.txt
OUTPUT

>>>>result.txt
Value 1
Value 2
Modificable value: Variable value
Return current item: Open Power Template