-
- $this->addElement('checkbox', 'inheritLocale', ts('Inherit CMS Language'));
- $this->addElement('text', 'monetaryThousandSeparator', ts('Thousands Separator'), array('size' => 2));
- $this->addElement('text', 'monetaryDecimalPoint', ts('Decimal Delimiter'), array('size' => 2));
- $this->addElement('text', 'moneyformat', ts('Monetary Amount Display'));
- $this->addElement('text', 'moneyvalueformat', ts('Monetary Value Display'));
-
- $country = array();
- CRM_Core_PseudoConstant::populate($country, 'CRM_Core_DAO_Country', TRUE, 'name', 'is_active');
- $i18n->localizeArray($country, array('context' => 'country'));
- asort($country);
-
- $includeCountry = &$this->addElement('advmultiselect', 'countryLimit',
- ts('Available Countries') . ' ', $country,
- array(
- 'size' => 5,
- 'style' => 'width:150px',
- 'class' => 'advmultiselect',
- )
- );
-
- $includeCountry->setButtonAttributes('add', array('value' => ts('Add >>')));
- $includeCountry->setButtonAttributes('remove', array('value' => ts('<< Remove')));
-
- $includeState = &$this->addElement('advmultiselect', 'provinceLimit',
- ts('Available States and Provinces') . ' ', $country,
- array(
- 'size' => 5,
- 'style' => 'width:150px',
- 'class' => 'advmultiselect',
- )
- );
-
- $includeState->setButtonAttributes('add', array('value' => ts('Add >>')));
- $includeState->setButtonAttributes('remove', array('value' => ts('<< Remove')));
-
- $this->addElement('select', 'defaultContactCountry', ts('Default Country'), array('' => ts('- select -')) + $country);
- $this->addChainSelect('defaultContactStateProvince', array('label' => ts('Default State/Province')));
-
- // we do this only to initialize currencySymbols, kinda hackish but works!
- $config->defaultCurrencySymbol();
-
- $symbol = $config->currencySymbols;
- foreach ($symbol as $key => $value) {
- $this->_currencySymbols[$key] = "$key";
- if ($value) {
- $this->_currencySymbols[$key] .= " ($value)";
- }
- }
- $this->addElement('select', 'defaultCurrency', ts('Default Currency'), $this->_currencySymbols);