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, check the fallback language; if the latter is empty too, then return the $defaultText.

Parameter

string $stringID

string $pageID

string $langID

string $defaultText

Text to display when the strings in both the default and the fallback lang are empty

Note

This function can not be called statically.