*/ class Mage_XmlConnect_Block_Localization extends Mage_Core_Block_Abstract { /** * Render home category list xml * * @return string */ protected function _toHtml() { /** @var $l10nXmlObj Mage_XmlConnect_Model_Simplexml_Element */ $l10nXmlObj = Mage::getModel('xmlconnect/simplexml_element', ''); /** @var $translateHelper Mage_XmlConnect_Helper_Translate */ $translateHelper = Mage::helper('xmlconnect/translate'); foreach ($translateHelper->getLocalizationArray() as $key => $string) { $l10nXmlObj->addCustomChild($key, $string); } return $l10nXmlObj->asNiceXml(); } }