controller/jobs/src/Controller/Jobs/Subscription/Export/Csv/Standard.php
protected function getLocaleContext( array $msg )
	{
		$lcontext = clone $this->getContext();
		$manager = \Aimeos\MShop::create( $lcontext, 'locale' );

		$sitecode = ( isset( $msg['sitecode'] ) ? $msg['sitecode'] : 'default' );
		$localeItem = $manager->bootstrap( $sitecode, '', '', false, \Aimeos\MShop\Locale\Manager\Base::SITE_ONE );

		return $lcontext->setLocale( $localeItem );
	}
protected function getLocaleContext( array $msg )
	{
		$lcontext = clone $this->getContext();
		$manager = \Aimeos\MShop::create( $lcontext, 'locale' );

		$sitecode = ( isset( $msg['sitecode'] ) ? $msg['sitecode'] : 'default' );
		$localeItem = $manager->bootstrap( $sitecode, '', '', false, \Aimeos\MShop\Locale\Manager\Base::SITE_ONE );

		return $lcontext->setLocale( $localeItem );
	}
protected function getLocaleContext ( array $ msg ) { $ lcontext = clone $ this -> getContext ( ) ; $ manager = \ Aimeos \ MShop :: create ( $ lcontext , 'locale' ) ; $ sitecode = ( isset ( $ msg [ 'sitecode' ] ) ? $ msg [ 'sitecode' ] : 'default' ) ; $ localeItem = $ manager -> bootstrap ( $ sitecode , '' , '' , false , \ Aimeos \ MShop \ Locale \ Manager \ Base :: SITE_ONE ) ; return $ lcontext -> setLocale ( $ localeItem ) ; }
Returns a new context including the locale from the message data

@param array $msg Message data including a "sitecode" value
@return \Aimeos\MShop\Context\Item\Iface New context item with updated locale
Returns a new context including the locale from the message data