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
18 * Settings metadata file
22 'customTranslateFunction' => [
27 'group_name' => 'Localization Preferences',
28 'group' => 'localization',
29 'name' => 'customTranslateFunction',
31 'quick_form_type' => 'Element',
32 'html_type' => 'text',
33 'html_attributes' => [
38 'title' => ts('Custom Translate Function'),
40 'monetaryThousandSeparator' => [
41 'group_name' => 'Localization Preferences',
42 'group' => 'localization',
43 'name' => 'monetaryThousandSeparator',
45 'quick_form_type' => 'Element',
46 'html_type' => 'text',
47 'html_attributes' => [
52 'title' => ts('Thousands Separator'),
57 'monetaryDecimalPoint' => [
58 'group_name' => 'Localization Preferences',
59 'group' => 'localization',
60 'name' => 'monetaryDecimalPoint',
62 'quick_form_type' => 'Element',
63 'html_type' => 'text',
64 'html_attributes' => [
69 'title' => ts('Decimal Delimiter'),
75 'group_name' => 'Localization Preferences',
76 'group' => 'localization',
77 'name' => 'moneyformat',
79 'quick_form_type' => 'Element',
80 'html_type' => 'text',
83 'title' => ts('Monetary Amount Display'),
88 'moneyvalueformat' => [
89 'group_name' => 'Localization Preferences',
90 'group' => 'localization',
91 'name' => 'moneyvalueformat',
93 'quick_form_type' => 'Element',
94 'html_type' => 'text',
97 'title' => ts('Monetary Value Display'),
102 'defaultCurrency' => [
103 'group_name' => 'Localization Preferences',
104 'group' => 'localization',
105 'name' => 'defaultCurrency',
107 'quick_form_type' => 'Select',
108 'html_type' => 'Select',
109 'html_attributes' => [
110 'class' => 'crm-select2',
114 'title' => ts('Default Currency'),
117 'description' => ts('Default currency assigned to contributions and other monetary transactions.'),
119 'pseudoconstant' => [
120 'callback' => 'CRM_Admin_Form_Setting_Localization::getCurrencySymbols',
123 'CRM_Admin_Form_Setting_Localization::onChangeDefaultCurrency',
126 'defaultContactCountry' => [
127 'group_name' => 'Localization Preferences',
128 'group' => 'localization',
129 'name' => 'defaultContactCountry',
131 'quick_form_type' => 'Select',
132 'html_type' => 'Select',
133 'html_attributes' => [
134 //'class' => 'crm-select2',
137 'title' => ts('Default Country'),
140 'is_required' => FALSE,
141 'description' => ts('This value is selected by default when adding a new contact address.'),
143 'pseudoconstant' => [
144 'callback' => 'CRM_Admin_Form_Setting_Localization::getAvailableCountries',
147 'defaultContactStateProvince' => [
152 'group_name' => 'Localization Preferences',
153 'group' => 'localization',
154 'name' => 'defaultContactStateProvince',
156 'quick_form_type' => 'ChainSelect',
157 'html_type' => 'ChainSelect',
158 'chain_select_settings' => [
159 'control_field' => 'defaultContactCountry',
161 //'pseudoconstant' => array(
162 // 'callback' => 'CRM_Core_PseudoConstant::stateProvince',
166 'title' => ts('Default State/Province'),
167 'description' => ts('This value is selected by default when adding a new contact address.'),
170 'group_name' => 'Localization Preferences',
171 'group' => 'localization',
172 'name' => 'countryLimit',
174 'quick_form_type' => 'Element',
175 'html_type' => 'advmultiselect',
176 'html_attributes' => [
178 'style' => 'width:150px',
179 'class' => 'advmultiselect',
183 'title' => ts('Available Countries'),
187 'pseudoconstant' => [
188 'callback' => 'CRM_Admin_Form_Setting_Localization::getAvailableCountries',
192 'group_name' => 'Localization Preferences',
193 'group' => 'localization',
194 'name' => 'provinceLimit',
196 'quick_form_type' => 'Element',
197 'html_type' => 'advmultiselect',
198 'html_attributes' => [
200 'style' => 'width:150px',
201 'class' => 'advmultiselect',
205 'title' => ts('Available States and Provinces (by Country)'),
209 'pseudoconstant' => [
210 'callback' => 'CRM_Admin_Form_Setting_Localization::getAvailableCountries',
214 'group_name' => 'Localization Preferences',
215 'group' => 'localization',
216 'name' => 'inheritLocale',
218 'quick_form_type' => 'YesNo',
221 'title' => ts('Inherit CMS Language'),
225 '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.'),
227 'dateformatDatetime' => [
228 'group_name' => 'Localization Preferences',
229 'group' => 'localization',
230 'name' => 'dateformatDatetime',
232 'quick_form_type' => 'Element',
233 'html_type' => 'text',
234 'default' => '%B %E%f, %Y %l:%M %P',
236 'title' => ts('Date Format: Complete Date and Time'),
241 'dateformatFull' => [
242 'group_name' => 'Localization Preferences',
243 'group' => 'localization',
244 'name' => 'dateformatFull',
246 'quick_form_type' => 'Element',
247 'html_type' => 'text',
248 'default' => '%B %E%f, %Y',
250 'title' => ts('Date Format: Complete Date'),
255 'dateformatPartial' => [
256 'group_name' => 'Localization Preferences',
257 'group' => 'localization',
258 'name' => 'dateformatPartial',
260 'quick_form_type' => 'Element',
261 'html_type' => 'text',
262 'default' => '%B %Y',
264 'title' => ts('Date Format: Month and Year'),
269 'dateformatTime' => [
274 'group_name' => 'Localization Preferences',
275 'group' => 'localization',
276 'name' => 'dateformatTime',
278 'quick_form_type' => 'Element',
279 'html_type' => 'text',
280 'html_attributes' => [
284 'default' => '%l:%M %P',
285 'title' => ts('Date Format: Time Only'),
287 'dateformatYear' => [
292 'group_name' => 'Localization Preferences',
293 'group' => 'localization',
294 'name' => 'dateformatYear',
296 'quick_form_type' => 'Element',
297 'html_type' => 'text',
298 'html_attributes' => [
303 'title' => ts('Date Format: Year Only'),
305 'dateformatFinancialBatch' => [
310 'group_name' => 'Localization Preferences',
311 'group' => 'localization',
312 'name' => 'dateformatFinancialBatch',
314 'quick_form_type' => 'Element',
315 'html_type' => 'text',
316 'html_attributes' => [
320 'default' => '%m/%d/%Y',
321 'title' => ts('Date Format: Financial Batch'),
323 'dateformatshortdate' => [
328 'group_name' => 'Localization Preferences',
329 'group' => 'localization',
330 'name' => 'dateformatshortdate',
332 'quick_form_type' => 'Element',
333 'html_type' => 'text',
334 'html_attributes' => [
338 'default' => '%m/%d/%Y',
339 'title' => ts('Date Format: Short date Month Day Year'),
341 'dateInputFormat' => [
346 'group_name' => 'Localization Preferences',
347 'group' => 'localization',
348 'name' => 'dateInputFormat',
350 'quick_form_type' => 'Select',
351 'html_type' => 'Select',
352 'pseudoconstant' => [
353 'callback' => 'CRM_Core_SelectValues::getDatePluginInputFormats',
355 'default' => 'mm/dd/yy',
356 'title' => ts('Date Input Format'),
358 'fieldSeparator' => [
363 'group_name' => 'Localization Preferences',
364 'group' => 'localization',
365 'name' => 'fieldSeparator',
367 'quick_form_type' => 'Element',
368 'html_type' => 'text',
369 'html_attributes' => [
374 'title' => ts('Import / Export Field Separator'),
375 'description' => ts('Global CSV separator character. Modify this setting to enable import and export of different kinds of CSV files (for example: \',\' \';\' \':\' \'|\' ).'),
377 'fiscalYearStart' => [
382 'group_name' => 'Localization Preferences',
383 'group' => 'localization',
384 'name' => 'fiscalYearStart',
386 'quick_form_type' => 'MonthDay',
387 'html_type' => 'MonthDay',
388 'default' => ['M' => 1, 'd' => 1],
389 'title' => ts('Fiscal Year Start'),
392 'group_name' => 'Localization Preferences',
393 'group' => 'localization',
394 'name' => 'languageLimit',
396 'quick_form_type' => 'Select',
397 'html_type' => 'Select',
398 'html_attributes' => [
400 'class' => 'crm-select2',
404 'title' => ts('Available Languages (Multi-lingual)'),
408 'pseudoconstant' => [
409 'callback' => 'CRM_Core_I18n::languages',
413 'group_name' => 'Localization Preferences',
414 'group' => 'localization',
415 'name' => 'uiLanguages',
417 'quick_form_type' => 'Select',
418 'html_type' => 'select',
419 'html_attributes' => [
421 'class' => 'crm-select2',
425 'title' => ts('Available Languages'),
428 'help_text' => ts('User Interface languages available to users'),
429 'pseudoconstant' => [
430 'callback' => 'CRM_Core_I18n::languages',
434 'group_name' => 'Localization Preferences',
435 'group' => 'localization',
436 'name' => 'lcMessages',
438 'quick_form_type' => 'Select',
439 'html_type' => 'Select',
440 'html_attributes' => [
441 'class' => 'crm-select2',
443 'default' => 'en_US',
445 'title' => ts('Default Language'),
449 'pseudoconstant' => [
450 'callback' => 'CRM_Admin_Form_Setting_Localization::getDefaultLocaleOptions',
453 'CRM_Admin_Form_Setting_Localization::onChangeLcMessages',
456 'legacyEncoding' => [
461 'group_name' => 'Localization Preferences',
462 'group' => 'localization',
463 'name' => 'legacyEncoding',
465 'quick_form_type' => 'Element',
466 'html_type' => 'text',
467 'html_attributes' => [
471 'default' => 'Windows-1252',
472 'title' => ts('Legacy Encoding'),
473 '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.'),
475 'timeInputFormat' => [
480 'group_name' => 'Localization Preferences',
481 'group' => 'localization',
482 'name' => 'timeInputFormat',
484 'quick_form_type' => 'Select',
485 'html_type' => 'Select',
486 'pseudoconstant' => [
487 'callback' => 'CRM_Core_SelectValues::getTimeFormats',
490 'title' => ts('Time Input Format'),
492 'CRM_Core_BAO_PreferencesDate::onChangeSetting',
496 'group_name' => 'Localization Preferences',
497 'group' => 'localization',
498 'name' => 'weekBegins',
500 'quick_form_type' => 'Select',
501 'html_type' => 'Select',
502 'pseudoconstant' => [
503 'callback' => 'CRM_Utils_Date::getFullWeekdayNames',
507 'title' => ts('Week begins on'),
512 'contact_default_language' => [
513 'group_name' => 'Localization Preferences',
514 'group' => 'localization',
515 'name' => 'contact_default_language',
517 'quick_form_type' => 'Select',
518 'html_type' => 'Select',
519 'html_attributes' => [
520 'class' => 'crm-select2',
522 'pseudoconstant' => [
523 'callback' => 'CRM_Admin_Form_Setting_Localization::getDefaultLanguageOptions',
525 'default' => '*default*',
527 'title' => ts('Default Language for contacts'),
530 'description' => ts('Default language (if any) for contact records.'),
531 'help_text' => 'If a contact is created with no language this setting will determine the language data (if any) to save.'
532 . 'You may or may not wish to make an assumption here about whether it matches the site language',
534 'pinnedContactCountries' => [
535 'group_name' => 'Localization Preferences',
536 'group' => 'localization',
537 'name' => 'pinnedContactCountries',
539 'quick_form_type' => 'Element',
540 'html_type' => 'advmultiselect',
541 'html_attributes' => [
543 'style' => 'width:150px',
544 'class' => 'advmultiselect',
548 'title' => ts('Pinned Countries'),
551 'description' => ts('Appear in Top section of select list'),
552 'help_text' => ts('Selected countries will appear in top section of country list'),
553 'pseudoconstant' => [
554 'callback' => 'CRM_Admin_Form_Setting_Localization::getAvailableCountries',