/** * @return Labels */ public function getLabels() { if (!$this->labels instanceof Labels) { $path = $this->getBootstrap()->getApplicationDir(); $this->labels = new Labels($path); // @todo need a proper language grabber // $lang = $this->registry->defaultLanguage(); $lang = $this->request->getParam("lang"); $this->labels->setLanguage($lang); } return $this->labels; }