PHPTAL_TranslationService
PHPTAL comes with a default gettext translation service, as shown in another section. For some reason you may prefer to implement your own service of translation.
The PHPTAL_TranslationService
interface is here to serve your needs.
The usage of your service will be the same as the PHPTAL_GetTextTranslator
.
$tpl->setTranslator($yourOwnTranslatorInstance);
Your implementation must define the following methods: