original_string: public function getText($sValue)
      {
          //ad callback to add translation before Apollina - You could see the method use in Venus2
          foreach (self::$_aCallbacks as $aOneCallback) {
              
              $sValueReturn = $aOneCallback($sValue);
  
              if ($sValueReturn !== '') { return $sValueReturn; }
          }
          
          if (file_exists($this->getI18nDirectory().$this->getLanguage().$this->getIntermediaiteDirectory().$this->getI18nDomain().'.json')) {
              
              if (!Translator::isConfigurated()) {
                   
                  Translator::setConfig($this->getI18nDirectory().$this->getLanguage().$this->getIntermediaiteDirectory().$this->getI18nDomain().'.json');
              }
          
              return Translator::_($sValue);
          }
      	else if (!function_exists("gettext")) {
      		
      		if (!Gettext::isConfigurated()) { Gettext::setConfig($this->getLanguage(), $this->getI18nDomain(), $this->getI18nDirectory()); }	
      		
      		return Gettext::_($sValue);
      	}
      	else {
      		
      		return Mock::_($sValue);
      	}
      }
code: public function getText($sValue)
      {
          //ad callback to add translation before Apollina - You could see the method use in Venus2
          foreach (self::$_aCallbacks as $aOneCallback) {
              
              $sValueReturn = $aOneCallback($sValue);
  
              if ($sValueReturn !== '') { return $sValueReturn; }
          }
          
          if (file_exists($this->getI18nDirectory().$this->getLanguage().$this->getIntermediaiteDirectory().$this->getI18nDomain().'.json')) {
              
              if (!Translator::isConfigurated()) {
                   
                  Translator::setConfig($this->getI18nDirectory().$this->getLanguage().$this->getIntermediaiteDirectory().$this->getI18nDomain().'.json');
              }
          
              return Translator::_($sValue);
          }
      	else if (!function_exists("gettext")) {
      		
      		if (!Gettext::isConfigurated()) { Gettext::setConfig($this->getLanguage(), $this->getI18nDomain(), $this->getI18nDirectory()); }	
      		
      		return Gettext::_($sValue);
      	}
      	else {
      		
      		return Mock::_($sValue);
      	}
      }
code_tokens: public function getText ( $ sValue ) { //ad callback to add translation before Apollina - You could see the method use in Venus2 foreach ( self :: $ _aCallbacks as $ aOneCallback ) { $ sValueReturn = $ aOneCallback ( $ sValue ) ; if ( $ sValueReturn !== '' ) { return $ sValueReturn ; } } if ( file_exists ( $ this -> getI18nDirectory ( ) . $ this -> getLanguage ( ) . $ this -> getIntermediaiteDirectory ( ) . $ this -> getI18nDomain ( ) . '.json' ) ) { if ( ! Translator :: isConfigurated ( ) ) { Translator :: setConfig ( $ this -> getI18nDirectory ( ) . $ this -> getLanguage ( ) . $ this -> getIntermediaiteDirectory ( ) . $ this -> getI18nDomain ( ) . '.json' ) ; } return Translator :: _ ( $ sValue ) ; } else if ( ! function_exists ( "gettext" ) ) { if ( ! Gettext :: isConfigurated ( ) ) { Gettext :: setConfig ( $ this -> getLanguage ( ) , $ this -> getI18nDomain ( ) , $ this -> getI18nDirectory ( ) ) ; } return Gettext :: _ ( $ sValue ) ; } else { return Mock :: _ ( $ sValue ) ; } }
docstring: get a translation
  
  @access public
  @param  string $sValue text to translate
  @return string
docstring_tokens: get a translation