Public Member Functions | |
translateAction () |
Definition at line 26 of file AjaxController.php.
translateAction | ( | ) |
Definition at line 28 of file AjaxController.php.
00029 { 00030 if ($translate = $this->getRequest()->getPost('translate')) { 00031 try { 00032 if ($area = $this->getRequest()->getPost('area')) { 00033 Mage::getDesign()->setArea($area); 00034 } 00035 Mage::getModel('core/translate_inline')->processAjaxPost($translate); 00036 echo "{success:true}"; 00037 } 00038 catch (Exception $e) { 00039 echo "{error:true,message:'" . $e->getMessage() . "'}"; 00040 } 00041 } 00042 exit(); 00043 }