public function getName($locale = null) { if ($locale) { $this->setLocale($locale); } return $this->manager->expectsLongNames() ? $this->getLongName() : $this->getShortName(); }