Translation2::translate()

Translation2::translate() -- Get translated string

Synopsis

require_once 'Translation2.php';

string Translation2::translate (string $string, string $langID [, mixed $pageID = TRANSLATION2_DEFAULT_PAGEID])

Description

Search the translation for the string passed as parameter

Parameter

string $string

This is NOT the stringID, this is a real string. The method will search for its matching stringID, and then it will return the associate string in the selected language.

string $langID destination language code

mixed $pageID

Note

This function can not be called statically.