CC-1960: Internationalize Airtime / Support translations
- created locale table - create locale model - set default locale in pref table
This commit is contained in:
parent
81c9b4d862
commit
2f0c6b702a
13 changed files with 1891 additions and 13 deletions
|
@ -54,7 +54,7 @@ class Application_Form_GeneralPreferences extends Zend_Form_SubForm
|
|||
|
||||
$locale = new Zend_Form_Element_Select("locale");
|
||||
$locale->setLabel(_("Language"));
|
||||
$locale->setMultiOptions($this->getLocales());
|
||||
$locale->setMultiOptions(Application_Model_Locale::getLocales());
|
||||
$locale->setValue(Application_Model_Preference::GetLocale());
|
||||
$locale->setDecorators(array('ViewHelper'));
|
||||
$this->addElement($locale);
|
||||
|
@ -117,13 +117,4 @@ class Application_Form_GeneralPreferences extends Zend_Form_SubForm
|
|||
|
||||
return $days;
|
||||
}
|
||||
|
||||
private function getLocales()
|
||||
{
|
||||
$locales = array(
|
||||
'en_CA' => 'English'
|
||||
);
|
||||
|
||||
return $locales;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue