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'),
225 'dateformatDatetime' => [
226 'group_name' => 'Localization Preferences',
227 'group' => 'localization',
228 'name' => 'dateformatDatetime',
230 'quick_form_type' => 'Element',
231 'html_type' => 'text',
232 'default' => '%B %E%f, %Y %l:%M %P',
234 'title' => ts('Date Format: Complete Date and Time'),
239 'dateformatFull' => [
240 'group_name' => 'Localization Preferences',
241 'group' => 'localization',
242 'name' => 'dateformatFull',
244 'quick_form_type' => 'Element',
245 'html_type' => 'text',
246 'default' => '%B %E%f, %Y',
248 'title' => ts('Date Format: Complete Date'),
253 'dateformatPartial' => [
254 'group_name' => 'Localization Preferences',
255 'group' => 'localization',
256 'name' => 'dateformatPartial',
258 'quick_form_type' => 'Element',
259 'html_type' => 'text',
260 'default' => '%B %Y',
262 'title' => ts('Date Format: Month and Year'),
267 'dateformatTime' => [
272 'group_name' => 'Localization Preferences',
273 'group' => 'localization',
274 'name' => 'dateformatTime',
276 'quick_form_type' => 'Element',
277 'html_type' => 'text',
278 'html_attributes' => [
282 'default' => '%l:%M %P',
283 'title' => ts('Date Format: Time Only'),
285 'dateformatYear' => [
290 'group_name' => 'Localization Preferences',
291 'group' => 'localization',
292 'name' => 'dateformatYear',
294 'quick_form_type' => 'Element',
295 'html_type' => 'text',
296 'html_attributes' => [
301 'title' => ts('Date Format: Year Only'),
303 'dateformatFinancialBatch' => [
308 'group_name' => 'Localization Preferences',
309 'group' => 'localization',
310 'name' => 'dateformatFinancialBatch',
312 'quick_form_type' => 'Element',
313 'html_type' => 'text',
314 'html_attributes' => [
318 'default' => '%m/%d/%Y',
319 'title' => ts('Date Format: Financial Batch'),
321 'dateformatshortdate' => [
326 'group_name' => 'Localization Preferences',
327 'group' => 'localization',
328 'name' => 'dateformatshortdate',
330 'quick_form_type' => 'Element',
331 'html_type' => 'text',
332 'html_attributes' => [
336 'default' => '%m/%d/%Y',
337 'title' => ts('Date Format: Short date Month Day Year'),
339 'dateInputFormat' => [
344 'group_name' => 'Localization Preferences',
345 'group' => 'localization',
346 'name' => 'dateInputFormat',
348 'quick_form_type' => 'Select',
349 'html_type' => 'Select',
350 'pseudoconstant' => [
351 'callback' => 'CRM_Core_SelectValues::getDatePluginInputFormats',
353 'default' => 'mm/dd/yy',
354 'title' => ts('Date Input Format'),
356 'fieldSeparator' => [
361 'group_name' => 'Localization Preferences',
362 'group' => 'localization',
363 'name' => 'fieldSeparator',
365 'quick_form_type' => 'Element',
366 'html_type' => 'text',
367 'html_attributes' => [
372 'title' => ts('Import / Export Field Separator'),
373 'description' => ts('Global CSV separator character. Modify this setting to enable import and export of different kinds of CSV files (for example: \',\' \';\' \':\' \'|\' ).'),
375 'fiscalYearStart' => [
380 'group_name' => 'Localization Preferences',
381 'group' => 'localization',
382 'name' => 'fiscalYearStart',
384 'quick_form_type' => 'MonthDay',
385 'html_type' => 'MonthDay',
386 'default' => ['M' => 1, 'd' => 1],
387 'title' => ts('Fiscal Year Start'),
390 'group_name' => 'Localization Preferences',
391 'group' => 'localization',
392 'name' => 'languageLimit',
394 'quick_form_type' => 'Select',
395 'html_type' => 'Select',
396 'html_attributes' => [
398 'class' => 'crm-select2',
402 'title' => ts('Available Languages (Multi-lingual)'),
406 'pseudoconstant' => [
407 'callback' => 'CRM_Core_I18n::languages',
411 'group_name' => 'Localization Preferences',
412 'group' => 'localization',
413 'name' => 'uiLanguages',
415 'quick_form_type' => 'Select',
416 'html_type' => 'select',
417 'html_attributes' => [
419 'class' => 'crm-select2',
423 'title' => ts('Available Languages'),
426 'help_text' => ts('User Interface languages available to users'),
427 'pseudoconstant' => [
428 'callback' => 'CRM_Core_I18n::languages',
432 'group_name' => 'Localization Preferences',
433 'group' => 'localization',
434 'name' => 'lcMessages',
436 'quick_form_type' => 'Select',
437 'html_type' => 'Select',
438 'html_attributes' => [
439 'class' => 'crm-select2',
441 'default' => 'en_US',
443 'title' => ts('Default Language'),
447 'pseudoconstant' => [
448 'callback' => 'CRM_Admin_Form_Setting_Localization::getDefaultLocaleOptions',
451 'CRM_Admin_Form_Setting_Localization::onChangeLcMessages',
454 'legacyEncoding' => [
459 'group_name' => 'Localization Preferences',
460 'group' => 'localization',
461 'name' => 'legacyEncoding',
463 'quick_form_type' => 'Element',
464 'html_type' => 'text',
465 'html_attributes' => [
469 'default' => 'Windows-1252',
470 'title' => ts('Legacy Encoding'),
471 '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.'),
473 'timeInputFormat' => [
478 'group_name' => 'Localization Preferences',
479 'group' => 'localization',
480 'name' => 'timeInputFormat',
482 'quick_form_type' => 'Select',
483 'html_type' => 'Select',
484 'pseudoconstant' => [
485 'callback' => 'CRM_Core_SelectValues::getTimeFormats',
488 'title' => ts('Time Input Format'),
490 'CRM_Core_BAO_PreferencesDate::onChangeSetting',
494 'group_name' => 'Localization Preferences',
495 'group' => 'localization',
496 'name' => 'weekBegins',
498 'quick_form_type' => 'Select',
499 'html_type' => 'Select',
500 'pseudoconstant' => [
501 'callback' => 'CRM_Utils_Date::getFullWeekdayNames',
505 'title' => ts('Week begins on'),
510 'contact_default_language' => [
511 'group_name' => 'Localization Preferences',
512 'group' => 'localization',
513 'name' => 'contact_default_language',
515 'quick_form_type' => 'Select',
516 'html_type' => 'Select',
517 'html_attributes' => [
518 'class' => 'crm-select2',
520 'pseudoconstant' => [
521 'callback' => 'CRM_Admin_Form_Setting_Localization::getDefaultLanguageOptions',
523 'default' => '*default*',
525 'title' => ts('Default Language for contacts'),
528 'description' => ts('Default language (if any) for contact records'),
529 'help_text' => 'If a contact is created with no language this setting will determine the language data (if any) to save.'
530 . 'You may or may not wish to make an assumption here about whether it matches the site language',