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:

Description

Retrieve 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.

Related Functions

translate_smiley, trailingslashit, translations_api, translate_user_role, untrailingslashit

Top Google Results

User discussions

wpseek mobile