*/ class Mage_Install_Model_Observer { public function bindLocale($observer) { if ($locale=$observer->getEvent()->getLocale()) { if ($choosedLocale = Mage::getSingleton('install/session')->getLocale()) { $locale->setLocaleCode($choosedLocale); } } return $this; } public function installFailure($observer) { echo "

There was a problem proceeding with Magento installation.

"; echo "

Please contact developers with error messages on this page.

"; echo Mage::printException($observer->getEvent()->getException()); } }