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 //'pseudoconstant' => array(
159 // 'callback' => 'CRM_Core_PseudoConstant::stateProvince',
163 'title' => ts('Default State/Province'),
164 'description' => ts('This value is selected by default when adding a new contact address.'),
167 'group_name' => 'Localization Preferences',
168 'group' => 'localization',
169 'name' => 'countryLimit',
171 'quick_form_type' => 'Element',
172 'html_type' => 'advmultiselect',
173 'html_attributes' => [
175 'style' => 'width:150px',
176 'class' => 'advmultiselect',
180 'title' => ts('Available Countries'),
184 'pseudoconstant' => [
185 'callback' => 'CRM_Admin_Form_Setting_Localization::getAvailableCountries',
189 'group_name' => 'Localization Preferences',
190 'group' => 'localization',
191 'name' => 'provinceLimit',
193 'quick_form_type' => 'Element',
194 'html_type' => 'advmultiselect',
195 'html_attributes' => [
197 'style' => 'width:150px',
198 'class' => 'advmultiselect',
202 'title' => ts('Available States and Provinces (by Country)'),
206 'pseudoconstant' => [
207 'callback' => 'CRM_Admin_Form_Setting_Localization::getAvailableCountries',
211 'group_name' => 'Localization Preferences',
212 'group' => 'localization',
213 'name' => 'inheritLocale',
215 'quick_form_type' => 'YesNo',
218 'title' => ts('Inherit CMS Language'),
222 '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.'),
224 'dateformatDatetime' => [
225 'group_name' => 'Localization Preferences',
226 'group' => 'localization',
227 'name' => 'dateformatDatetime',
229 'quick_form_type' => 'Element',
230 'html_type' => 'text',
231 'default' => '%B %E%f, %Y %l:%M %P',
233 'title' => ts('Date Format: Complete Date and Time'),
238 'dateformatFull' => [
239 'group_name' => 'Localization Preferences',
240 'group' => 'localization',
241 'name' => 'dateformatFull',
243 'quick_form_type' => 'Element',
244 'html_type' => 'text',
245 'default' => '%B %E%f, %Y',
247 'title' => ts('Date Format: Complete Date'),
252 'dateformatPartial' => [
253 'group_name' => 'Localization Preferences',
254 'group' => 'localization',
255 'name' => 'dateformatPartial',
257 'quick_form_type' => 'Element',
258 'html_type' => 'text',
259 'default' => '%B %Y',
261 'title' => ts('Date Format: Month and Year'),
266 'dateformatTime' => [
271 'group_name' => 'Localization Preferences',
272 'group' => 'localization',
273 'name' => 'dateformatTime',
275 'quick_form_type' => 'Element',
276 'html_type' => 'text',
277 'html_attributes' => [
281 'default' => '%l:%M %P',
282 'title' => ts('Date Format: Time Only'),
284 'dateformatYear' => [
289 'group_name' => 'Localization Preferences',
290 'group' => 'localization',
291 'name' => 'dateformatYear',
293 'quick_form_type' => 'Element',
294 'html_type' => 'text',
295 'html_attributes' => [
300 'title' => ts('Date Format: Year Only'),
302 'dateformatFinancialBatch' => [
307 'group_name' => 'Localization Preferences',
308 'group' => 'localization',
309 'name' => 'dateformatFinancialBatch',
311 'quick_form_type' => 'Element',
312 'html_type' => 'text',
313 'html_attributes' => [
317 'default' => '%m/%d/%Y',
318 'title' => ts('Date Format: Financial Batch'),
320 'dateformatshortdate' => [
325 'group_name' => 'Localization Preferences',
326 'group' => 'localization',
327 'name' => 'dateformatshortdate',
329 'quick_form_type' => 'Element',
330 'html_type' => 'text',
331 'html_attributes' => [
335 'default' => '%m/%d/%Y',
336 'title' => ts('Date Format: Short date Month Day Year'),
338 'dateInputFormat' => [
343 'group_name' => 'Localization Preferences',
344 'group' => 'localization',
345 'name' => 'dateInputFormat',
347 'quick_form_type' => 'Select',
348 'html_type' => 'Select',
349 'pseudoconstant' => [
350 'callback' => 'CRM_Core_SelectValues::getDatePluginInputFormats',
352 'default' => 'mm/dd/yy',
353 'title' => ts('Date Input Format'),
355 'fieldSeparator' => [
360 'group_name' => 'Localization Preferences',
361 'group' => 'localization',
362 'name' => 'fieldSeparator',
364 'quick_form_type' => 'Element',
365 'html_type' => 'text',
366 'html_attributes' => [
371 'title' => ts('Import / Export Field Separator'),
372 'description' => ts('Global CSV separator character. Modify this setting to enable import and export of different kinds of CSV files (for example: \',\' \';\' \':\' \'|\' ).'),
374 'fiscalYearStart' => [
379 'group_name' => 'Localization Preferences',
380 'group' => 'localization',
381 'name' => 'fiscalYearStart',
383 'quick_form_type' => 'MonthDay',
384 'html_type' => 'MonthDay',
385 'default' => ['M' => 1, 'd' => 1],
386 'title' => ts('Fiscal Year Start'),
389 'group_name' => 'Localization Preferences',
390 'group' => 'localization',
391 'name' => 'languageLimit',
393 'quick_form_type' => 'Select',
394 'html_type' => 'Select',
395 'html_attributes' => [
397 'class' => 'crm-select2',
401 'title' => ts('Available Languages (Multi-lingual)'),
405 'pseudoconstant' => [
406 'callback' => 'CRM_Core_I18n::languages',
410 'group_name' => 'Localization Preferences',
411 'group' => 'localization',
412 'name' => 'uiLanguages',
414 'quick_form_type' => 'Select',
415 'html_type' => 'select',
416 'html_attributes' => [
418 'class' => 'crm-select2',
422 'title' => ts('Available Languages'),
425 'help_text' => ts('User Interface languages available to users'),
426 'pseudoconstant' => [
427 'callback' => 'CRM_Core_I18n::languages',
431 'group_name' => 'Localization Preferences',
432 'group' => 'localization',
433 'name' => 'lcMessages',
435 'quick_form_type' => 'Select',
436 'html_type' => 'Select',
437 'html_attributes' => [
438 'class' => 'crm-select2',
440 'default' => 'en_US',
442 'title' => ts('Default Language'),
446 'pseudoconstant' => [
447 'callback' => 'CRM_Admin_Form_Setting_Localization::getDefaultLocaleOptions',
450 'CRM_Admin_Form_Setting_Localization::onChangeLcMessages',
453 'legacyEncoding' => [
458 'group_name' => 'Localization Preferences',
459 'group' => 'localization',
460 'name' => 'legacyEncoding',
462 'quick_form_type' => 'Element',
463 'html_type' => 'text',
464 'html_attributes' => [
468 'default' => 'Windows-1252',
469 'title' => ts('Legacy Encoding'),
470 '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.'),
472 'timeInputFormat' => [
477 'group_name' => 'Localization Preferences',
478 'group' => 'localization',
479 'name' => 'timeInputFormat',
481 'quick_form_type' => 'Select',
482 'html_type' => 'Select',
483 'pseudoconstant' => [
484 'callback' => 'CRM_Core_SelectValues::getTimeFormats',
487 'title' => ts('Time Input Format'),
489 'CRM_Core_BAO_PreferencesDate::onChangeSetting',
493 'group_name' => 'Localization Preferences',
494 'group' => 'localization',
495 'name' => 'weekBegins',
497 'quick_form_type' => 'Select',
498 'html_type' => 'Select',
499 'pseudoconstant' => [
500 'callback' => 'CRM_Utils_Date::getFullWeekdayNames',
504 'title' => ts('Week begins on'),
509 'contact_default_language' => [
510 'group_name' => 'Localization Preferences',
511 'group' => 'localization',
512 'name' => 'contact_default_language',
514 'quick_form_type' => 'Select',
515 'html_type' => 'Select',
516 'html_attributes' => [
517 'class' => 'crm-select2',
519 'pseudoconstant' => [
520 'callback' => 'CRM_Admin_Form_Setting_Localization::getDefaultLanguageOptions',
522 'default' => '*default*',
524 'title' => ts('Default Language for contacts'),
527 'description' => ts('Default language (if any) for contact records.'),
528 'help_text' => 'If a contact is created with no language this setting will determine the language data (if any) to save.'
529 . 'You may or may not wish to make an assumption here about whether it matches the site language',