public function getLocale()
	{
		if (!isset($this->locale))
		{
			$locale = str_replace(' ', '', isset($this->metadata['locale']) ? $this->metadata['locale'] : '');

			if ($locale)
			{
				$this->locale = explode(',', $locale);
			}
			else
			{
				$this->locale = false;
			}
		}

		return $this->locale;
	}
public function getLocale()
	{
		if (!isset($this->locale))
		{
			$locale = str_replace(' ', '', isset($this->metadata['locale']) ? $this->metadata['locale'] : '');

			if ($locale)
			{
				$this->locale = explode(',', $locale);
			}
			else
			{
				$this->locale = false;
			}
		}

		return $this->locale;
	}
public function getLocale ( ) { if ( ! isset ( $ this -> locale ) ) { $ locale = str_replace ( ' ' , '' , isset ( $ this -> metadata [ 'locale' ] ) ? $ this -> metadata [ 'locale' ] : '' ) ; if ( $ locale ) { $ this -> locale = explode ( ',' , $ locale ) ; } else { $ this -> locale = false ; } } return $ this -> locale ; }
Get the language locale based on current language.

@return  array  The locale according to the language.
Get the language locale based on current language .