Translation2::get()

Translation2::get() -- Get translated string

Synopsis

require_once 'Translation2.php';

string Translation2::get (string $stringID [, string $pageID = TRANSLATION2_DEFAULT_PAGEID [, string $langID = NULL [, string $defaultText = '']]])

Description

Fetch the string from the container. If the string is empty and the DefaultText decorator is used, then return the $defaultText.

Paramètres

chaîne de caractères $stringID

chaîne de caractères $pageID

chaîne de caractères $langID

chaîne de caractères $defaultText

Text to display when the string is empty. NB: This parameter is only used in the DefaultText decorator

Note

Cette fonction ne peut pas être appelée de façon statique.