startTranslation(); ?>';
} elseif ($expression[1] === '[') {
return "startTranslation{$expression}; ?>";
}
return "getFromJson{$expression}; ?>";
}
/**
* Compile the end-lang statements into valid PHP.
*
* @return string
*/
protected function compileEndlang()
{
return 'renderTranslation(); ?>';
}
/**
* Compile the choice statements into valid PHP.
*
* @param string $expression
* @return string
*/
protected function compileChoice($expression)
{
return "choice{$expression}; ?>";
}
}