public function translate($locale) {
		$localeEntity = clone $this;
		$localeEntity->setLocale($locale);
		if(isset($this->data['translations'][$locale]))
			$localeEntity->_set($this->data['translations'][$locale]);
		unset($localeEntity->data['translations'][$locale]);
		$localeEntity->data['translations'][$this->getLocale()] = $this->data['properties'];

		return $localeEntity;
	}
public function translate($locale) {
		$localeEntity = clone $this;
		$localeEntity->setLocale($locale);
		if(isset($this->data['translations'][$locale]))
			$localeEntity->_set($this->data['translations'][$locale]);
		unset($localeEntity->data['translations'][$locale]);
		$localeEntity->data['translations'][$this->getLocale()] = $this->data['properties'];

		return $localeEntity;
	}
public function translate ( $ locale ) { $ localeEntity = clone $ this ; $ localeEntity -> setLocale ( $ locale ) ; if ( isset ( $ this -> data [ 'translations' ] [ $ locale ] ) ) $ localeEntity -> _set ( $ this -> data [ 'translations' ] [ $ locale ] ) ; unset ( $ localeEntity -> data [ 'translations' ] [ $ locale ] ) ; $ localeEntity -> data [ 'translations' ] [ $ this -> getLocale ( ) ] = $ this -> data [ 'properties' ] ; return $ localeEntity ; }
Return entity in another language.
@param  string $locale
@return Entity
Return entity in another language .