Commit fe810d04 authored by ayduns's avatar ayduns

Add uiLanguages setting

parent 76b945cb
......@@ -52,6 +52,7 @@ class CRM_Admin_Form_Setting_Localization extends CRM_Admin_Form_Setting {
'moneyformat' => CRM_Core_BAO_Setting::LOCALIZATION_PREFERENCES_NAME,
'moneyvalueformat' => CRM_Core_BAO_Setting::LOCALIZATION_PREFERENCES_NAME,
'provinceLimit' => CRM_Core_BAO_Setting::LOCALIZATION_PREFERENCES_NAME,
'uiLanguages' => CRM_Core_BAO_Setting::LOCALIZATION_PREFERENCES_NAME,
);
/**
......
......@@ -441,6 +441,28 @@ return array(
'callback' => 'CRM_Core_I18n::languages',
),
),
'uiLanguages' => array(
'group_name' => 'Localization Preferences',
'group' => 'localization',
'name' => 'uiLanguages',
'type' => 'Array',
'quick_form_type' => 'Select',
'html_type' => 'select',
'html_attributes' => array(
'multiple' => 1,
'class' => 'crm-select2',
),
'default' => NULL,
'add' => '5.9',
'title' => 'UI Languages',
'is_domain' => 1,
'is_contact' => 0,
'description' => '',
'help_text' => ts('User Interface lanaguages available to users'),
'pseudoconstant' => array(
'callback' => 'CRM_Core_I18n::languages',
),
),
'lcMessages' => array(
'group_name' => 'Localization Preferences',
'group' => 'localization',
......
This diff is collapsed.
......@@ -51,6 +51,10 @@
<td class="label">{$form.inheritLocale.label} {help id='inheritLocale' title=$form.inheritLocale.label}</td>
<td>{$form.inheritLocale.html}</td>
</tr>
<tr class="crm-localization-form-block-uiLanguages">
<td class="label">{$form.uiLanguages.label}</td>
<td>{$form.uiLanguages.html}</td>
</tr>
<tr class="crm-localization-form-contact_default_language">
<td class="label">{$form.contact_default_language.label}</td>
<td>{$form.contact_default_language.html}<br />
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment