protected function getTranslations( $domain )
	{
		if( !isset( $this->files[$domain] ) )
		{
			if ( !isset( $this->sources[$domain] ) )
			{
				$msg = sprintf( 'No translation directory for domain "%1$s" available', $domain );
				throw new \Aimeos\MW\Translation\Exception( $msg );
			}

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

			foreach( $locations as $location ) {
				$this->files[$domain][$location] = new \Aimeos\MW\Translation\File\Mo( $location );
			}
		}

		return ( isset( $this->files[$domain] ) ? $this->files[$domain] : [] );
	}
protected function getTranslations( $domain )
	{
		if( !isset( $this->files[$domain] ) )
		{
			if ( !isset( $this->sources[$domain] ) )
			{
				$msg = sprintf( 'No translation directory for domain "%1$s" available', $domain );
				throw new \Aimeos\MW\Translation\Exception( $msg );
			}

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

			foreach( $locations as $location ) {
				$this->files[$domain][$location] = new \Aimeos\MW\Translation\File\Mo( $location );
			}
		}

		return ( isset( $this->files[$domain] ) ? $this->files[$domain] : [] );
	}
protected function getTranslations ( $ domain ) { if ( ! isset ( $ this -> files [ $ domain ] ) ) { if ( ! isset ( $ this -> sources [ $ domain ] ) ) { $ msg = sprintf ( 'No translation directory for domain "%1$s" available' , $ domain ) ; throw new \ Aimeos \ MW \ Translation \ Exception ( $ msg ) ; } // Reverse locations so the former gets not overwritten by the later $ locations = array_reverse ( $ this -> getTranslationFileLocations ( $ this -> sources [ $ domain ] , $ this -> getLocale ( ) ) ) ; foreach ( $ locations as $ location ) { $ this -> files [ $ domain ] [ $ location ] = new \ Aimeos \ MW \ Translation \ File \ Mo ( $ location ) ; } } return ( isset ( $ this -> files [ $ domain ] ) ? $ this -> files [ $ domain ] : [ ] ) ; }
Returns the MO file objects which contain the translations.

@param string $domain Translation domain
@return array List of translation objects implementing \Aimeos\MW\Translation\File\Mo
@throws \Aimeos\MW\Translation\Exception If initialization fails
Returns the MO file objects which contain the translations .