__ (double underscore) — Translate a string.

Locale-related functions

Summary

__($string)

Translate a string.

Parameters:
  • $string (string) – The string to be translated.
Returns:

string The translated string.

Usage

Examples

echo __("String to translate");