Classes/Base/Locale.php
public static function getBackend( \Aimeos\MShop\Context\Item\Iface $context, $site )
	{
		$localeManager = \Aimeos\MShop::create( $context, 'locale' );

		try {
			$localeItem = $localeManager->bootstrap( $site, '', '', false, null, true );
		} catch( \Aimeos\MShop\Exception $e ) {
			$localeItem = $localeManager->createItem();
		}

		return $localeItem;
	}
public static function getBackend( \Aimeos\MShop\Context\Item\Iface $context, $site )
	{
		$localeManager = \Aimeos\MShop::create( $context, 'locale' );

		try {
			$localeItem = $localeManager->bootstrap( $site, '', '', false, null, true );
		} catch( \Aimeos\MShop\Exception $e ) {
			$localeItem = $localeManager->createItem();
		}

		return $localeItem;
	}
public static function getBackend ( \ Aimeos \ MShop \ Context \ Item \ Iface $ context , $ site ) { $ localeManager = \ Aimeos \ MShop :: create ( $ context , 'locale' ) ; try { $ localeItem = $ localeManager -> bootstrap ( $ site , '' , '' , false , null , true ) ; } catch ( \ Aimeos \ MShop \ Exception $ e ) { $ localeItem = $ localeManager -> createItem ( ) ; } return $ localeItem ; }
Returns the locale item for the backend

@param \Aimeos\MShop\Context\Item\Iface $context Context object
@param string $site Unique site code
@return \Aimeos\MShop\Context\Item\Iface Modified context object
Returns the locale item for the backend