/** * Loads the message from a particular catalogue. A listed * loaded catalogues is kept to prevent reload of the same * catalogue. The load catalogue messages are stored * in the $this->message array. * * @param string $catalogue message catalogue to load. */ protected function loadCatalogue($catalogue) { if (in_array($catalogue, $this->catalogues)) { return; } if ($this->source->load($catalogue)) { $this->messages[$catalogue] = $this->source->read(); $this->catalogues[] = $catalogue; } }