trait Translator

Methods

string
trans(string $sText, array $aPlaceHolders = array(), string $sLanguage = null)

Get a translated string

Details

at line line 30
string trans(string $sText, array $aPlaceHolders = array(), string $sLanguage = null)

Get a translated string

Parameters

string $sText The key of the translated string
array $aPlaceHolders The placeholders of the translated string
string $sLanguage The language of the translated string

Return Value

string The translated string