class I18N

Some really small, simple, and self-contained utility public static functions

Methods

static 
_m($message)

Translate a messege from the master domain

static 
_me($message)

Echo translated a message from the master domain

static 
_e($message, $textdomain = false)

Echo a translated message from a textdomain

static 
__($message, $textdomain = false)

Translate a messege from the master domain

static 
setLocale($locale = null)

Set the LOCAL for the current user

static 
setupTextDomain()

Set up the translation entities

Details

at line 20
static _m($message)

Translate a messege from the master domain

Parameters

$message

at line 27
static _me($message)

Echo translated a message from the master domain

Parameters

$message

at line 34
static _e($message, $textdomain = false)

Echo a translated message from a textdomain

Parameters

$message
$textdomain

at line 43
static __($message, $textdomain = false)

Translate a messege from the master domain

Pattern borrowed from WordPress

Parameters

$message
$textdomain

at line 87
static setLocale($locale = null)

Set the LOCAL for the current user

Parameters

$locale

at line 133
static setupTextDomain()

Set up the translation entities