3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
6 | This work is published under the GNU AGPLv3 license with some |
7 | permitted exceptions and without any warranty. For full license |
8 | and copyright information, see https://civicrm.org/licensing |
9 +--------------------------------------------------------------------+
15 * @copyright CiviCRM LLC https://civicrm.org/licensing
20 * Settings metadata file
24 'customTranslateFunction' => [
29 'group_name' => 'Localization Preferences',
30 'group' => 'localization',
31 'name' => 'customTranslateFunction',
33 'quick_form_type' => 'Element',
34 'html_type' => 'text',
35 'html_attributes' => [
40 'title' => ts('Custom Translate Function'),
42 'monetaryThousandSeparator' => [
43 'group_name' => 'Localization Preferences',
44 'group' => 'localization',
45 'name' => 'monetaryThousandSeparator',
47 'quick_form_type' => 'Element',
48 'html_type' => 'text',
49 'html_attributes' => [
54 'title' => ts('Thousands Separator'),
59 'monetaryDecimalPoint' => [
60 'group_name' => 'Localization Preferences',
61 'group' => 'localization',
62 'name' => 'monetaryDecimalPoint',
64 'quick_form_type' => 'Element',
65 'html_type' => 'text',
66 'html_attributes' => [
71 'title' => ts('Decimal Delimiter'),
77 'group_name' => 'Localization Preferences',
78 'group' => 'localization',
79 'name' => 'moneyformat',
81 'quick_form_type' => 'Element',
82 'html_type' => 'text',
85 'title' => ts('Monetary Amount Display'),
90 'moneyvalueformat' => [
91 'group_name' => 'Localization Preferences',
92 'group' => 'localization',
93 'name' => 'moneyvalueformat',
95 'quick_form_type' => 'Element',
96 'html_type' => 'text',
99 'title' => ts('Monetary Value Display'),
104 'defaultCurrency' => [
105 'group_name' => 'Localization Preferences',
106 'group' => 'localization',
107 'name' => 'defaultCurrency',
109 'quick_form_type' => 'Select',
110 'html_type' => 'Select',
111 'html_attributes' => [
112 'class' => 'crm-select2',
116 'title' => ts('Default Currency'),
119 'description' => ts('Default currency assigned to contributions and other monetary transactions.'),
121 'pseudoconstant' => [
122 'callback' => 'CRM_Admin_Form_Setting_Localization::getCurrencySymbols',
125 'CRM_Admin_Form_Setting_Localization::onChangeDefaultCurrency',
128 'defaultContactCountry' => [
129 'group_name' => 'Localization Preferences',
130 'group' => 'localization',
131 'name' => 'defaultContactCountry',
133 'quick_form_type' => 'Select',
134 'html_type' => 'Select',
135 'html_attributes' => [
136 //'class' => 'crm-select2',
139 'title' => ts('Default Country'),
142 'is_required' => FALSE,
143 'description' => ts('This value is selected by default when adding a new contact address.'),
145 'pseudoconstant' => [
146 'callback' => 'CRM_Admin_Form_Setting_Localization::getAvailableCountries',
149 'defaultContactStateProvince' => [
154 'group_name' => 'Localization Preferences',
155 'group' => 'localization',
156 'name' => 'defaultContactStateProvince',
158 'quick_form_type' => 'ChainSelect',
159 'html_type' => 'ChainSelect',
160 //'pseudoconstant' => array(
161 // 'callback' => 'CRM_Core_PseudoConstant::stateProvince',
165 'title' => ts('Default State/Province'),
166 'description' => ts('This value is selected by default when adding a new contact address.'),
169 'group_name' => 'Localization Preferences',
170 'group' => 'localization',
171 'name' => 'countryLimit',
173 'quick_form_type' => 'Element',
174 'html_type' => 'advmultiselect',
175 'html_attributes' => [
177 'style' => 'width:150px',
178 'class' => 'advmultiselect',
182 'title' => ts('Available Countries'),
186 'pseudoconstant' => [
187 'callback' => 'CRM_Admin_Form_Setting_Localization::getAvailableCountries',
191 'group_name' => 'Localization Preferences',
192 'group' => 'localization',
193 'name' => 'provinceLimit',
195 'quick_form_type' => 'Element',
196 'html_type' => 'advmultiselect',
197 'html_attributes' => [
199 'style' => 'width:150px',
200 'class' => 'advmultiselect',
204 'title' => ts('Available States and Provinces (by Country)'),
208 'pseudoconstant' => [
209 'callback' => 'CRM_Admin_Form_Setting_Localization::getAvailableCountries',
213 'group_name' => 'Localization Preferences',
214 'group' => 'localization',
215 'name' => 'inheritLocale',
217 'quick_form_type' => 'YesNo',
220 'title' => ts('Inherit CMS Language'),
224 'description' => ts('If Yes, the initial session language will be set by the CMS, which can later be changed if using the CiviCRM language switcher.'),
226 'dateformatDatetime' => [
227 'group_name' => 'Localization Preferences',
228 'group' => 'localization',
229 'name' => 'dateformatDatetime',
231 'quick_form_type' => 'Element',
232 'html_type' => 'text',
233 'default' => '%B %E%f, %Y %l:%M %P',
235 'title' => ts('Date Format: Complete Date and Time'),
240 'dateformatFull' => [
241 'group_name' => 'Localization Preferences',
242 'group' => 'localization',
243 'name' => 'dateformatFull',
245 'quick_form_type' => 'Element',
246 'html_type' => 'text',
247 'default' => '%B %E%f, %Y',
249 'title' => ts('Date Format: Complete Date'),
254 'dateformatPartial' => [
255 'group_name' => 'Localization Preferences',
256 'group' => 'localization',
257 'name' => 'dateformatPartial',
259 'quick_form_type' => 'Element',
260 'html_type' => 'text',
261 'default' => '%B %Y',
263 'title' => ts('Date Format: Month and Year'),
268 'dateformatTime' => [
273 'group_name' => 'Localization Preferences',
274 'group' => 'localization',
275 'name' => 'dateformatTime',
277 'quick_form_type' => 'Element',
278 'html_type' => 'text',
279 'html_attributes' => [
283 'default' => '%l:%M %P',
284 'title' => ts('Date Format: Time Only'),
286 'dateformatYear' => [
291 'group_name' => 'Localization Preferences',
292 'group' => 'localization',
293 'name' => 'dateformatYear',
295 'quick_form_type' => 'Element',
296 'html_type' => 'text',
297 'html_attributes' => [
302 'title' => ts('Date Format: Year Only'),
304 'dateformatFinancialBatch' => [
309 'group_name' => 'Localization Preferences',
310 'group' => 'localization',
311 'name' => 'dateformatFinancialBatch',
313 'quick_form_type' => 'Element',
314 'html_type' => 'text',
315 'html_attributes' => [
319 'default' => '%m/%d/%Y',
320 'title' => ts('Date Format: Financial Batch'),
322 'dateformatshortdate' => [
327 'group_name' => 'Localization Preferences',
328 'group' => 'localization',
329 'name' => 'dateformatshortdate',
331 'quick_form_type' => 'Element',
332 'html_type' => 'text',
333 'html_attributes' => [
337 'default' => '%m/%d/%Y',
338 'title' => ts('Date Format: Short date Month Day Year'),
340 'dateInputFormat' => [
345 'group_name' => 'Localization Preferences',
346 'group' => 'localization',
347 'name' => 'dateInputFormat',
349 'quick_form_type' => 'Select',
350 'html_type' => 'Select',
351 'pseudoconstant' => [
352 'callback' => 'CRM_Core_SelectValues::getDatePluginInputFormats',
354 'default' => 'mm/dd/yy',
355 'title' => ts('Date Input Format'),
357 'fieldSeparator' => [
362 'group_name' => 'Localization Preferences',
363 'group' => 'localization',
364 'name' => 'fieldSeparator',
366 'quick_form_type' => 'Element',
367 'html_type' => 'text',
368 'html_attributes' => [
373 'title' => ts('Import / Export Field Separator'),
374 'description' => ts('Global CSV separator character. Modify this setting to enable import and export of different kinds of CSV files (for example: \',\' \';\' \':\' \'|\' ).'),
376 'fiscalYearStart' => [
381 'group_name' => 'Localization Preferences',
382 'group' => 'localization',
383 'name' => 'fiscalYearStart',
385 'quick_form_type' => 'MonthDay',
386 'html_type' => 'MonthDay',
387 'default' => ['M' => 1, 'd' => 1],
388 'title' => ts('Fiscal Year Start'),
391 'group_name' => 'Localization Preferences',
392 'group' => 'localization',
393 'name' => 'languageLimit',
395 'quick_form_type' => 'Select',
396 'html_type' => 'Select',
397 'html_attributes' => [
399 'class' => 'crm-select2',
403 'title' => ts('Available Languages (Multi-lingual)'),
407 'pseudoconstant' => [
408 'callback' => 'CRM_Core_I18n::languages',
412 'group_name' => 'Localization Preferences',
413 'group' => 'localization',
414 'name' => 'uiLanguages',
416 'quick_form_type' => 'Select',
417 'html_type' => 'select',
418 'html_attributes' => [
420 'class' => 'crm-select2',
424 'title' => ts('Available Languages'),
427 'help_text' => ts('User Interface languages available to users'),
428 'pseudoconstant' => [
429 'callback' => 'CRM_Core_I18n::languages',
433 'group_name' => 'Localization Preferences',
434 'group' => 'localization',
435 'name' => 'lcMessages',
437 'quick_form_type' => 'Select',
438 'html_type' => 'Select',
439 'html_attributes' => [
440 'class' => 'crm-select2',
442 'default' => 'en_US',
444 'title' => ts('Default Language'),
448 'pseudoconstant' => [
449 'callback' => 'CRM_Admin_Form_Setting_Localization::getDefaultLocaleOptions',
452 'CRM_Admin_Form_Setting_Localization::onChangeLcMessages',
455 'legacyEncoding' => [
460 'group_name' => 'Localization Preferences',
461 'group' => 'localization',
462 'name' => 'legacyEncoding',
464 'quick_form_type' => 'Element',
465 'html_type' => 'text',
466 'html_attributes' => [
470 'default' => 'Windows-1252',
471 'title' => ts('Legacy Encoding'),
472 'description' => ts('If import files are NOT encoded as UTF-8, specify an alternate character encoding for these files. The default of Windows-1252 will work for Excel-created .CSV files on many computers.'),
474 'timeInputFormat' => [
479 'group_name' => 'Localization Preferences',
480 'group' => 'localization',
481 'name' => 'timeInputFormat',
483 'quick_form_type' => 'Select',
484 'html_type' => 'Select',
485 'pseudoconstant' => [
486 'callback' => 'CRM_Core_SelectValues::getTimeFormats',
489 'title' => ts('Time Input Format'),
491 'CRM_Core_BAO_PreferencesDate::onChangeSetting',
495 'group_name' => 'Localization Preferences',
496 'group' => 'localization',
497 'name' => 'weekBegins',
499 'quick_form_type' => 'Select',
500 'html_type' => 'Select',
501 'pseudoconstant' => [
502 'callback' => 'CRM_Utils_Date::getFullWeekdayNames',
506 'title' => ts('Week begins on'),
511 'contact_default_language' => [
512 'group_name' => 'Localization Preferences',
513 'group' => 'localization',
514 'name' => 'contact_default_language',
516 'quick_form_type' => 'Select',
517 'html_type' => 'Select',
518 'html_attributes' => [
519 'class' => 'crm-select2',
521 'pseudoconstant' => [
522 'callback' => 'CRM_Admin_Form_Setting_Localization::getDefaultLanguageOptions',
524 'default' => '*default*',
526 'title' => ts('Default Language for contacts'),
529 'description' => ts('Default language (if any) for contact records.'),
530 'help_text' => 'If a contact is created with no language this setting will determine the language data (if any) to save.'
531 . 'You may or may not wish to make an assumption here about whether it matches the site language',