CC-4810: Add language setting to login page
-done
This commit is contained in:
parent
7866b8a0cb
commit
1572955d07
9 changed files with 49 additions and 16 deletions
|
@ -43,6 +43,12 @@ class Application_Form_Login extends Zend_Form
|
|||
'ViewHelper'
|
||||
)
|
||||
));
|
||||
|
||||
$locale = new Zend_Form_Element_Select("locale");
|
||||
$locale->setLabel(_("Language:"));
|
||||
$locale->setMultiOptions(Application_Model_Locale::getLocales());
|
||||
$locale->setDecorators(array('ViewHelper'));
|
||||
$this->addElement($locale);
|
||||
|
||||
$recaptchaNeeded = false;
|
||||
if (Application_Model_LoginAttempts::getAttempts($_SERVER['REMOTE_ADDR']) >= 3) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue