Translator

TranslatorAbstract
in package
implements TranslatorInterface

AbstractYes

Abstract base providing translation logic of [Translatable]s.

Tags
author

Jakub Jabůrek jaburek.jakub@gmail.com

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
inheritdoc
Return values
string|null

translated message or null if language variant is not defined


        
On this page

Search results