class Translator (View source)

Defines the localization helper infrastructure of the library.

Methods

static void
load()

Loads translator.

static string
gettext(string $msgid)

Translates a string.

Details

static void load()

Loads translator.

Return Value

void

static string gettext(string $msgid)

Translates a string.

Parameters

string $msgid

String to be translated

Return Value

string

translated string (or original, if not found)