interface PHPTAL_TranslationService

  1. method setLanguage()
  2. method useDomain($domain)
  3. method setVar($key,$value)
  4. method translate($key)
  5. method setEncoding($encoding)

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.


Your implementation must define the following methods: