Given a message key, returns an appropriately translated full-text string
public translate ( string $message_key, array $args = [], string $language = "" ) : string | ||
$message_key | string | The short message code |
$args | array | An array of arguments to pass through vsprintf(). |
$language | string | Optionally, the standard language code (defaults to site/user default, then English) |
return | string | Either the translated string, the English string, or the original language string. |