public function getlocaleAction() {
        if (!Zend_Registry::isRegistered('Zend_Translate')) {
            throw new Zend_Controller_Action_Exception(
                'Zend_Translate was not registered in Zend_Registry.',
                500
            );
        }
        $translate = Zend_Registry::get('Zend_Translate');
        $messages = $translate->getMessages();
        $this->view->messages = $messages;

        $this->_renderJs();
    }