original_string: public function _($translateKey, $defaultTranslation = "", $placeholders = null)
  	{
  		$translation = $translateKey;
  		
  		if (is_array($defaultTranslation) && $placeholders === null) {
  			$placeholders = $defaultTranslation;
  		} else {
  			if ($defaultTranslation!="") {
  				$translation = $defaultTranslation;
  			}
  		}
  		if ($this->exists($translateKey)) {
  			$translation = $this->_translate[$translateKey];
  		}
  		return $this->replacePlaceholders($translation, $placeholders);
  	}
code: public function _($translateKey, $defaultTranslation = "", $placeholders = null)
  	{
  		$translation = $translateKey;
  		
  		if (is_array($defaultTranslation) && $placeholders === null) {
  			$placeholders = $defaultTranslation;
  		} else {
  			if ($defaultTranslation!="") {
  				$translation = $defaultTranslation;
  			}
  		}
  		if ($this->exists($translateKey)) {
  			$translation = $this->_translate[$translateKey];
  		}
  		return $this->replacePlaceholders($translation, $placeholders);
  	}
code_tokens: public function _ ( $ translateKey , $ defaultTranslation = "" , $ placeholders = null ) { $ translation = $ translateKey ; if ( is_array ( $ defaultTranslation ) && $ placeholders === null ) { $ placeholders = $ defaultTranslation ; } else { if ( $ defaultTranslation != "" ) { $ translation = $ defaultTranslation ; } } if ( $ this -> exists ( $ translateKey ) ) { $ translation = $ this -> _translate [ $ translateKey ] ; } return $ this -> replacePlaceholders ( $ translation , $ placeholders ) ; }
docstring: Returns the translation related to the given key
docstring_tokens: Returns the translation related to the given key