AdiantiCoreTranslator
in package
Framework translation class for internal messages
Tags
Table of Contents
Properties
- $instance : mixed
- $lang : mixed
- $messages : mixed
- $sourceMessages : mixed
Methods
- getInstance() : Instance
- Returns the singleton instance
- getLanguage() : Target
- Returns the target language
- setLanguage() : mixed
- Define the target language
- translate() : Translated
- Translate a word to the target language
- __construct() : mixed
- Class Constructor
Properties
$instance
private
static mixed
$instance
$lang
private
mixed
$lang
$messages
private
mixed
$messages
$sourceMessages
private
mixed
$sourceMessages
Methods
getInstance()
Returns the singleton instance
public
static getInstance() : Instance
Return values
Instance —of self
getLanguage()
Returns the target language
public
static getLanguage() : Target
Return values
Target —language index
setLanguage()
Define the target language
public
static setLanguage( $lang) : mixed
Parameters
translate()
Translate a word to the target language
public
static translate( $word[, mixed $param1 = NULL ][, mixed $param2 = NULL ][, mixed $param3 = NULL ][, mixed $param4 = NULL ]) : Translated
Parameters
- $word :
-
Word to be translated
- $param1 : mixed = NULL
- $param2 : mixed = NULL
- $param3 : mixed = NULL
- $param4 : mixed = NULL
Return values
Translated —word
__construct()
Class Constructor
private
__construct() : mixed