Translation2_Decorator::translate()

Translation2_Decorator::translate() -- Get translated string

Synopsis

require_once 'Decorator.php';

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

Description

This package is not documented yet.

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

code of destination language (example: 'en' or 'it')

mixed $pageID

ID of the group of strings where the $string belongs.

Note

This function can not be called statically.