PHP Class TranslateModule, gxc-cms

Inheritance: extends CWebModule
Datei anzeigen Open project: nganhtuan63/gxc-cms Class Usage Examples

Public Properties

Property Type Description
$translateComponentId the name of the translate component change this in case you dont use the default name

Public Methods

Method Description
__callStatic ( $method, $args )
init ( ) TranslateModule::init()
missingTranslation ( $event )
t ( string $message, array $params = [] ) : string translate some message using the module configuration
translator ( ) : MPTranslate get the translate component

Method Details

__callStatic() static public method

static public __callStatic ( $method, $args )

init() public method

TranslateModule::init()
public init ( )

missingTranslation() static public method

static public missingTranslation ( $event )

t() static public method

translate some message using the module configuration
static public t ( string $message, array $params = [] ) : string
$message string
$params array
return string translated message

translator() static public method

get the translate component
static public translator ( ) : MPTranslate
return MPTranslate

Property Details

$translateComponentId static_oe public_oe property

the name of the translate component change this in case you dont use the default name
static public $translateComponentId