Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

50 lines (43 sloc) 1.611 kb
* This source file is subject to the new BSD license that is bundled
* with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to so we can send you a copy immediately.
* @license New BSD
* @package frapi-admin
class Default_Form_Language extends Lupin_Form
public function init()
$tr = Zend_Registry::get('tr');
$locale = Zend_Registry::get('Zend_Locale');
$available_languages = array (
'en' => 'English',
'fr' => 'Francais',
'it' => 'Italiano',
'ru' => 'Русский',
'pt_BR' => 'Português do Brasil',
$this->setAttrib('id', 'language-form');
$languages = new Zend_Form_Element_Select('languages');
$languages->setValue(isset($locale->value) ? $locale->value : 'en');
$system_wide = new Zend_Form_Element_Checkbox('system_wide');
$system_wide->setLabel($tr->_('UPDATE_SYSTEM_WIDE') . '?');
$this->addElement(new Zend_Form_Element_Submit($tr->_('SAVE')));
Jump to Line
Something went wrong with that request. Please try again.