translate
translate ( $text, $domain = 'default' )
Parameters:- (string) text Text to translate.
- (string) domain Optional. Text domain. Unique identifier for retrieving translated strings. Default 'default'.
Returns:- (string) Translated text.
Defined at:Change Log: - Introduced in WordPress: 2.2.0
- Deprecated in WordPress: —
Description
Retrieves the translation of $text.If there is no translation, or the text domain isn't loaded, the original text is returned.
*Note:* Don't use translate() directly, use __() or related functions.