public function getLanguage() { if (!$this->language instanceof RM_Lang) { $this->language = RM_Lang::getDefault(); } return $this->language; }
private function _formatLocationName($locationName) { if ($this->getLang() !== RM_Lang::getDefault()) { $locationName = str_replace(' St,', ' Street,', $locationName); } return $locationName; }
protected function _initLang() { $lang = RM_Lang::getDefault(); $lang->setAsCurrent(); }