Class

ezpI18n

class ezpI18n

File containing the ezpI18n class.

Methods

static  reset()

Resets the state ezpI18n class.

static string tr(string $context, string $source, string|null $comment = null, array|null $arguments = null)

Translates the source \a $source with context \a $context and optional comment \a $comment and returns the translation if translations are enabled.

Details

at line 67
static public reset()

Resets the state ezpI18n class.

at line 86
static public string tr(string $context, string $source, string|null $comment = null, array|null $arguments = null)

Translates the source \a $source with context \a $context and optional comment \a $comment and returns the translation if translations are enabled.

Uses {@link ezpI18n::translateText()}

Example: translate( 'content/view', 'There are %count nodes in this list out of %total total nodes.', 'Children view of nodes for whole site', array( '%count' => $c, '%total' => $t ) );

Parameters

string $context
string $source
string|null $comment
array|null $arguments

Return Value

string