$enabledLanguages = CRM_Core_I18n::languages(TRUE);
if (count($enabledLanguages) > 1) {
- $this->addElement('select', 'language', ts('Language'), array('' => ' - all languages - ') + $enabledLanguages, array('class' => 'crm-select2'));
+ $this->addElement('select', 'language', ts('Language'), array('' => ts('- all languages -')) + $enabledLanguages, array('class' => 'crm-select2'));
}
if ($parent->_sms) {
<div crm-ui-field="{name: 'subform.language', title: ts('Language')}">
<select
crm-ui-id="subform.language"
- crm-ui-select="{dropdownAutoWidth : true, allowClear: false}"
+ crm-ui-select="{dropdownAutoWidth : true, allowClear: false, placeholder: ts('- choose language -')}"
name="language"
ng-model="mailing.language"
required