__

The BuddyPress function.

Description

__( $text, (string) $domain = 'default' ); 

Parameters (2)

0. $text
The text.
1. $domain — Optional. (string) => 'default'
The domain.

Usage

  1. if ( !function_exists( '__' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-forums/bbpress/bb-includes/backpress/pomo/sample/app.php'; 
  3.  
  4. // The text. 
  5. $text = null; 
  6.  
  7. // The domain. 
  8. $domain = 'default'; 
  9.  
  10. // NOTICE! Understand what this does before running. 
  11. $result = __($text, $domain); 
  12.  

Defined (2)

The function is defined in the following location(s).

/bp-forums/bbpress/bb-includes/backpress/pomo/sample/app.php  
  1. function __($text, $domain = 'default') { 
  2. $translations = &get_translations($domain); 
  3. return $translations->translate($text); 
/bp-forums/bbpress/bb-includes/functions.bb-l10n.php  
  1. function __( $text, $domain = 'default' ) { 
  2. return translate( $text, $domain );