public function setCurrent($locale)
	{
		$localeIdentifier = null;

		if ($locale instanceof LocaleInterface) {
			$localeIdentifier = $locale->getId();
		} else {
			$localeIdentifier = $locale;
		}

		$this->current = $this->getLocale($localeIdentifier);
	}
public function setCurrent($locale)
	{
		$localeIdentifier = null;

		if ($locale instanceof LocaleInterface) {
			$localeIdentifier = $locale->getId();
		} else {
			$localeIdentifier = $locale;
		}

		$this->current = $this->getLocale($localeIdentifier);
	}
public function setCurrent ( $ locale ) { $ localeIdentifier = null ; if ( $ locale instanceof LocaleInterface ) { $ localeIdentifier = $ locale -> getId ( ) ; } else { $ localeIdentifier = $ locale ; } $ this -> current = $ this -> getLocale ( $ localeIdentifier ) ; }
Set current locale by locale object or ID.

@param mixed $locale
@throws Exception if such locale is not defined
Set current locale by locale object or ID .