lib/custom/src/MW/Translation/Zend.php
protected function _getTranslations( $domain )
	{
		if( !isset( $this->_translations[$domain] ) )
		{
			if ( !isset( $this->_translationSources[$domain] ) )
			{
				$msg = sprintf( 'No translation directory for domain "%1$s" available', $domain );
				throw new MW_Translation_Exception( $msg );
			}

			// Reverse locations so the former gets not overwritten by the later
			$locations = array_reverse( $this->_getTranslationFileLocations( $this->_translationSources[$domain], $this->getLocale() ) );
			$options = $this->_options;

			foreach( $locations as $location )
			{
				$options['content'] = $location;
				$this->_translations[$domain][] = new Zend_Translate( $options );
			}
		}

		return ( isset( $this->_translations[$domain] ) ? $this->_translations[$domain] : array() );
	}
protected function _getTranslations( $domain )
	{
		if( !isset( $this->_translations[$domain] ) )
		{
			if ( !isset( $this->_translationSources[$domain] ) )
			{
				$msg = sprintf( 'No translation directory for domain "%1$s" available', $domain );
				throw new MW_Translation_Exception( $msg );
			}

			// Reverse locations so the former gets not overwritten by the later
			$locations = array_reverse( $this->_getTranslationFileLocations( $this->_translationSources[$domain], $this->getLocale() ) );
			$options = $this->_options;

			foreach( $locations as $location )
			{
				$options['content'] = $location;
				$this->_translations[$domain][] = new Zend_Translate( $options );
			}
		}

		return ( isset( $this->_translations[$domain] ) ? $this->_translations[$domain] : array() );
	}
protected function _getTranslations ( $ domain ) { if ( ! isset ( $ this -> _translations [ $ domain ] ) ) { if ( ! isset ( $ this -> _translationSources [ $ domain ] ) ) { $ msg = sprintf ( 'No translation directory for domain "%1$s" available' , $ domain ) ; throw new MW_Translation_Exception ( $ msg ) ; } // Reverse locations so the former gets not overwritten by the later $ locations = array_reverse ( $ this -> _getTranslationFileLocations ( $ this -> _translationSources [ $ domain ] , $ this -> getLocale ( ) ) ) ; $ options = $ this -> _options ; foreach ( $ locations as $ location ) { $ options [ 'content' ] = $ location ; $ this -> _translations [ $ domain ] [ ] = new Zend_Translate ( $ options ) ; } } return ( isset ( $ this -> _translations [ $ domain ] ) ? $ this -> _translations [ $ domain ] : array ( ) ) ; }
Returns the initialized Zend translation object which contains the translations.

@param string $domain Translation domain
@return array List of translation objects implementing Zend_Translate
@throws MW_Translation_Exception If initialization fails
Returns the initialized Zend translation object which contains the translations .