getLanguage(); } public function applyInternalEffects($object, $value) { $object->setLanguage($value); } private function renderLanguageValue($value) { if (!strlen($value)) { return $this->renderValue(pht('autodetect')); } else { return $this->renderValue($value); } } public function getTitle() { return pht( "%s updated the paste's language from %s to %s.", $this->renderAuthor(), $this->renderLanguageValue($this->getOldValue()), $this->renderLanguageValue($this->getNewValue())); } public function getTitleForFeed() { return pht( '%s updated the language for %s from %s to %s.', $this->renderAuthor(), $this->renderObject(), $this->renderLanguageValue($this->getOldValue()), $this->renderLanguageValue($this->getNewValue())); } }