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 19
static _m($message)

Translate a messege from the master domain

Parameters

$message

at line 26
static _me($message)

Echo translated a message from the master domain

Parameters

$message

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

Echo a translated message from a textdomain

Parameters

$message
$textdomain

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

Translate a messege from the master domain

Pattern borrowed from WordPress

Parameters

$message
$textdomain

at line 86
static setLocale($locale = null)

Set the LOCAL for the current user

Parameters

$locale

at line 132
static setupTextDomain()

Set up the translation entities