TranslatorAbstract
in package
implements
TranslatorInterface
AbstractYes
Abstract base providing translation logic of [Translatable]s.
Tags
Table of Contents
Interfaces
- TranslatorInterface
- Translator capable of translating statically defined messages and [Translatable]s.
Methods
- transl() : string|null
- Translates the given [Translatable].
Methods
transl()
Translates the given [Translatable].
public
transl(Translatable $string[, string|null $locale = null ]) : string|null
Parameters
- $string : Translatable
-
translatable
- $locale : string|null = null
-
locale override
Tags
Return values
string|null —translated message or null
if language variant is not defined