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' => 'Custom Translate Function',
43 'monetaryThousandSeparator' => [
44 'group_name' => 'Localization Preferences',
45 'group' => 'localization',
46 'name' => 'monetaryThousandSeparator',
48 'quick_form_type' => 'Element',
49 'html_type' => 'text',
50 'html_attributes' => [
55 'title' => 'Thousands Separator',
58 'description' => NULL,
61 'monetaryDecimalPoint' => [
62 'group_name' => 'Localization Preferences',
63 'group' => 'localization',
64 'name' => 'monetaryDecimalPoint',
66 'quick_form_type' => 'Element',
67 'html_type' => 'text',
68 'html_attributes' => [
73 'title' => 'Decimal Delimiter',
76 'description' => NULL,
80 'group_name' => 'Localization Preferences',
81 'group' => 'localization',
82 'name' => 'moneyformat',
84 'quick_form_type' => 'Element',
85 'html_type' => 'text',
88 'title' => 'Monetary Amount Display',
91 'description' => NULL,
94 'moneyvalueformat' => [
95 'group_name' => 'Localization Preferences',
96 'group' => 'localization',
97 'name' => 'moneyvalueformat',
99 'quick_form_type' => 'Element',
100 'html_type' => 'text',
103 'title' => 'Monetary Value Display',
106 'description' => NULL,
109 'defaultCurrency' => [
110 'group_name' => 'Localization Preferences',
111 'group' => 'localization',
112 'name' => 'defaultCurrency',
114 'quick_form_type' => 'Select',
115 'html_type' => 'Select',
116 'html_attributes' => [
117 'class' => 'crm-select2',
121 'title' => 'Default Currency',
124 'description' => 'Default currency assigned to contributions and other monetary transactions.',
126 'pseudoconstant' => [
127 'callback' => 'CRM_Admin_Form_Setting_Localization::getCurrencySymbols',
130 'CRM_Admin_Form_Setting_Localization::onChangeDefaultCurrency',
133 'defaultContactCountry' => [
134 'group_name' => 'Localization Preferences',
135 'group' => 'localization',
136 'name' => 'defaultContactCountry',
138 'quick_form_type' => 'Select',
139 'html_type' => 'Select',
140 'html_attributes' => [
141 //'class' => 'crm-select2',
144 'title' => 'Default Country',
147 'is_required' => FALSE,
148 'description' => 'This value is selected by default when adding a new contact address.',
150 'pseudoconstant' => [
151 'callback' => 'CRM_Admin_Form_Setting_Localization::getAvailableCountries',
154 'defaultContactStateProvince' => [
159 'group_name' => 'Localization Preferences',
160 'group' => 'localization',
161 'name' => 'defaultContactStateProvince',
163 'quick_form_type' => 'ChainSelect',
164 'html_type' => 'ChainSelect',
165 //'pseudoconstant' => array(
166 // 'callback' => 'CRM_Core_PseudoConstant::stateProvince',
170 'title' => 'Default State/Province',
171 'description' => 'This value is selected by default when adding a new contact address.',
174 'group_name' => 'Localization Preferences',
175 'group' => 'localization',
176 'name' => 'countryLimit',
178 'quick_form_type' => 'Element',
179 'html_type' => 'advmultiselect',
180 'html_attributes' => [
182 'style' => 'width:150px',
183 'class' => 'advmultiselect',
187 'title' => 'Available Countries',
192 'pseudoconstant' => [
193 'callback' => 'CRM_Admin_Form_Setting_Localization::getAvailableCountries',
197 'group_name' => 'Localization Preferences',
198 'group' => 'localization',
199 'name' => 'provinceLimit',
201 'quick_form_type' => 'Element',
202 'html_type' => 'advmultiselect',
203 'html_attributes' => [
205 'style' => 'width:150px',
206 'class' => 'advmultiselect',
210 'title' => 'Available States and Provinces (by Country)',
215 'pseudoconstant' => [
216 'callback' => 'CRM_Admin_Form_Setting_Localization::getAvailableCountries',
220 'group_name' => 'Localization Preferences',
221 'group' => 'localization',
222 'name' => 'inheritLocale',
224 'quick_form_type' => 'YesNo',
227 'title' => 'Inherit CMS Language',
233 'dateformatDatetime' => [
234 'group_name' => 'Localization Preferences',
235 'group' => 'localization',
236 'name' => 'dateformatDatetime',
238 'quick_form_type' => 'Element',
239 'html_type' => 'text',
240 'default' => '%B %E%f, %Y %l:%M %P',
242 'title' => 'Date Format: Complete Date and Time',
248 'dateformatFull' => [
249 'group_name' => 'Localization Preferences',
250 'group' => 'localization',
251 'name' => 'dateformatFull',
253 'quick_form_type' => 'Element',
254 'html_type' => 'text',
255 'default' => '%B %E%f, %Y',
257 'title' => 'Date Format: Complete Date',
263 'dateformatPartial' => [
264 'group_name' => 'Localization Preferences',
265 'group' => 'localization',
266 'name' => 'dateformatPartial',
268 'quick_form_type' => 'Element',
269 'html_type' => 'text',
270 'default' => '%B %Y',
272 'title' => 'Date Format: Month and Year',
278 'dateformatTime' => [
283 'group_name' => 'Localization Preferences',
284 'group' => 'localization',
285 'name' => 'dateformatTime',
287 'quick_form_type' => 'Element',
288 'html_type' => 'text',
289 'html_attributes' => [
293 'default' => '%l:%M %P',
294 'title' => 'Date Format: Time Only',
297 'dateformatYear' => [
302 'group_name' => 'Localization Preferences',
303 'group' => 'localization',
304 'name' => 'dateformatYear',
306 'quick_form_type' => 'Element',
307 'html_type' => 'text',
308 'html_attributes' => [
313 'title' => 'Date Format: Year Only',
316 'dateformatFinancialBatch' => [
321 'group_name' => 'Localization Preferences',
322 'group' => 'localization',
323 'name' => 'dateformatFinancialBatch',
325 'quick_form_type' => 'Element',
326 'html_type' => 'text',
327 'html_attributes' => [
331 'default' => '%m/%d/%Y',
332 'title' => 'Date Format: Financial Batch',
335 'dateformatshortdate' => [
340 'group_name' => 'Localization Preferences',
341 'group' => 'localization',
342 'name' => 'dateformatshortdate',
344 'quick_form_type' => 'Element',
345 'html_type' => 'text',
346 'html_attributes' => [
350 'default' => '%m/%d/%Y',
351 'title' => 'Date Format: Short date Month Day Year',
354 'dateInputFormat' => [
359 'group_name' => 'Localization Preferences',
360 'group' => 'localization',
361 'name' => 'dateInputFormat',
363 'quick_form_type' => 'Select',
364 'html_type' => 'Select',
365 'pseudoconstant' => [
366 'callback' => 'CRM_Core_SelectValues::getDatePluginInputFormats',
368 'default' => 'mm/dd/yy',
369 'title' => 'Date Input Format',
372 'fieldSeparator' => [
377 'group_name' => 'Localization Preferences',
378 'group' => 'localization',
379 'name' => 'fieldSeparator',
381 'quick_form_type' => 'Element',
382 'html_type' => 'text',
383 'html_attributes' => [
388 'title' => 'Import / Export Field Separator',
389 'description' => 'Global CSV separator character. Modify this setting to enable import and export of different kinds of CSV files (for example: \',\' \';\' \':\' \'|\' ).',
391 'fiscalYearStart' => [
396 'group_name' => 'Localization Preferences',
397 'group' => 'localization',
398 'name' => 'fiscalYearStart',
400 'quick_form_type' => 'MonthDay',
401 'html_type' => 'MonthDay',
402 'default' => ['M' => 1, 'd' => 1],
403 'title' => 'Fiscal Year Start',
407 'group_name' => 'Localization Preferences',
408 'group' => 'localization',
409 'name' => 'languageLimit',
411 'quick_form_type' => 'Select',
412 'html_type' => 'Select',
413 'html_attributes' => [
415 'class' => 'crm-select2',
419 'title' => 'Available Languages (Multi-lingual)',
424 'pseudoconstant' => [
425 'callback' => 'CRM_Core_I18n::languages',
429 'group_name' => 'Localization Preferences',
430 'group' => 'localization',
431 'name' => 'uiLanguages',
433 'quick_form_type' => 'Select',
434 'html_type' => 'select',
435 'html_attributes' => [
437 'class' => 'crm-select2',
441 'title' => 'Available Languages',
445 'help_text' => ts('User Interface languages available to users'),
446 'pseudoconstant' => [
447 'callback' => 'CRM_Core_I18n::languages',
451 'group_name' => 'Localization Preferences',
452 'group' => 'localization',
453 'name' => 'lcMessages',
455 'quick_form_type' => 'Select',
456 'html_type' => 'Select',
457 'html_attributes' => [
458 'class' => 'crm-select2',
460 'default' => 'en_US',
462 'title' => 'Default Language',
467 'pseudoconstant' => [
468 'callback' => 'CRM_Admin_Form_Setting_Localization::getDefaultLocaleOptions',
471 'CRM_Admin_Form_Setting_Localization::onChangeLcMessages',
474 'legacyEncoding' => [
479 'group_name' => 'Localization Preferences',
480 'group' => 'localization',
481 'name' => 'legacyEncoding',
483 'quick_form_type' => 'Element',
484 'html_type' => 'text',
485 'html_attributes' => [
489 'default' => 'Windows-1252',
490 'title' => 'Legacy Encoding',
491 'description' => '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.',
493 'timeInputFormat' => [
498 'group_name' => 'Localization Preferences',
499 'group' => 'localization',
500 'name' => 'timeInputFormat',
502 'quick_form_type' => 'Select',
503 'html_type' => 'Select',
504 'pseudoconstant' => [
505 'callback' => 'CRM_Core_SelectValues::getTimeFormats',
508 'title' => 'Time Input Format',
511 'CRM_Core_BAO_PreferencesDate::onChangeSetting',
515 'group_name' => 'Localization Preferences',
516 'group' => 'localization',
517 'name' => 'weekBegins',
519 'quick_form_type' => 'Select',
520 'html_type' => 'Select',
521 'pseudoconstant' => [
522 'callback' => 'CRM_Utils_Date::getFullWeekdayNames',
526 'title' => 'Week begins on',
532 'contact_default_language' => [
533 'group_name' => 'Localization Preferences',
534 'group' => 'localization',
535 'name' => 'contact_default_language',
537 'quick_form_type' => 'Select',
538 'html_type' => 'Select',
539 'html_attributes' => [
540 'class' => 'crm-select2',
542 'pseudoconstant' => [
543 'callback' => 'CRM_Admin_Form_Setting_Localization::getDefaultLanguageOptions',
545 'default' => '*default*',
547 'title' => 'Default Language for contacts',
550 'description' => 'Default language (if any) for contact records',
551 'help_text' => 'If a contact is created with no language this setting will determine the language data (if any) to save.'
552 . 'You may or may not wish to make an assumption here about whether it matches the site language',