3 +--------------------------------------------------------------------+
5 +--------------------------------------------------------------------+
6 | Copyright CiviCRM LLC (c) 2004-2019 |
7 +--------------------------------------------------------------------+
8 | This file is a part of CiviCRM. |
10 | CiviCRM is free software; you can copy, modify, and distribute it |
11 | under the terms of the GNU Affero General Public License |
12 | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
14 | CiviCRM is distributed in the hope that it will be useful, but |
15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
17 | See the GNU Affero General Public License for more details. |
19 | You should have received a copy of the GNU Affero General Public |
20 | License and the CiviCRM Licensing Exception along |
21 | with this program; if not, contact CiviCRM LLC |
22 | at info[AT]civicrm[DOT]org. If you have questions about the |
23 | GNU Affero General Public License or the licensing of CiviCRM, |
24 | see the CiviCRM license FAQ at http://civicrm.org/licensing |
25 +--------------------------------------------------------------------+
31 * @copyright CiviCRM LLC (c) 2004-2019
36 * Settings metadata file
40 'customTranslateFunction' => [
45 'group_name' => 'Localization Preferences',
46 'group' => 'localization',
47 'name' => 'customTranslateFunction',
49 'quick_form_type' => 'Element',
50 'html_type' => 'text',
51 'html_attributes' => [
56 'title' => 'Custom Translate Function',
59 'monetaryThousandSeparator' => [
60 'group_name' => 'Localization Preferences',
61 'group' => 'localization',
62 'name' => 'monetaryThousandSeparator',
64 'quick_form_type' => 'Element',
65 'html_type' => 'text',
66 'html_attributes' => [
71 'title' => 'Thousands Separator',
74 'description' => NULL,
77 'monetaryDecimalPoint' => [
78 'group_name' => 'Localization Preferences',
79 'group' => 'localization',
80 'name' => 'monetaryDecimalPoint',
82 'quick_form_type' => 'Element',
83 'html_type' => 'text',
84 'html_attributes' => [
89 'title' => 'Decimal Delimiter',
92 'description' => NULL,
96 'group_name' => 'Localization Preferences',
97 'group' => 'localization',
98 'name' => 'moneyformat',
100 'quick_form_type' => 'Element',
101 'html_type' => 'text',
102 'default' => '%c %a',
104 'title' => 'Monetary Amount Display',
107 'description' => NULL,
110 'moneyvalueformat' => [
111 'group_name' => 'Localization Preferences',
112 'group' => 'localization',
113 'name' => 'moneyvalueformat',
115 'quick_form_type' => 'Element',
116 'html_type' => 'text',
119 'title' => 'Monetary Value Display',
122 'description' => NULL,
125 'defaultCurrency' => [
126 'group_name' => 'Localization Preferences',
127 'group' => 'localization',
128 'name' => 'defaultCurrency',
130 'quick_form_type' => 'Select',
131 'html_type' => 'Select',
132 'html_attributes' => [
133 'class' => 'crm-select2',
137 'title' => 'Default Currency',
140 'description' => 'Default currency assigned to contributions and other monetary transactions.',
142 'pseudoconstant' => [
143 'callback' => 'CRM_Admin_Form_Setting_Localization::getCurrencySymbols',
146 'CRM_Admin_Form_Setting_Localization::onChangeDefaultCurrency',
149 'defaultContactCountry' => [
150 'group_name' => 'Localization Preferences',
151 'group' => 'localization',
152 'name' => 'defaultContactCountry',
154 'quick_form_type' => 'Select',
155 'html_type' => 'Select',
156 'html_attributes' => [
157 //'class' => 'crm-select2',
160 'title' => 'Default Country',
163 'is_required' => FALSE,
164 'description' => 'This value is selected by default when adding a new contact address.',
166 'pseudoconstant' => [
167 'callback' => 'CRM_Admin_Form_Setting_Localization::getAvailableCountries',
170 'defaultContactStateProvince' => [
175 'group_name' => 'Localization Preferences',
176 'group' => 'localization',
177 'name' => 'defaultContactStateProvince',
179 'quick_form_type' => 'ChainSelect',
180 'html_type' => 'ChainSelect',
181 //'pseudoconstant' => array(
182 // 'callback' => 'CRM_Core_PseudoConstant::stateProvince',
186 'title' => 'Default State/Province',
187 'description' => 'This value is selected by default when adding a new contact address.',
190 'group_name' => 'Localization Preferences',
191 'group' => 'localization',
192 'name' => 'countryLimit',
194 'quick_form_type' => 'Element',
195 'html_type' => 'advmultiselect',
196 'html_attributes' => [
198 'style' => 'width:150px',
199 'class' => 'advmultiselect',
203 'title' => 'Available Countries',
208 'pseudoconstant' => [
209 'callback' => 'CRM_Admin_Form_Setting_Localization::getAvailableCountries',
213 'group_name' => 'Localization Preferences',
214 'group' => 'localization',
215 'name' => 'provinceLimit',
217 'quick_form_type' => 'Element',
218 'html_type' => 'advmultiselect',
219 'html_attributes' => [
221 'style' => 'width:150px',
222 'class' => 'advmultiselect',
226 'title' => 'Available States and Provinces (by Country)',
231 'pseudoconstant' => [
232 'callback' => 'CRM_Admin_Form_Setting_Localization::getAvailableCountries',
236 'group_name' => 'Localization Preferences',
237 'group' => 'localization',
238 'name' => 'inheritLocale',
240 'quick_form_type' => 'YesNo',
243 'title' => 'Inherit CMS Language',
249 'dateformatDatetime' => [
250 'group_name' => 'Localization Preferences',
251 'group' => 'localization',
252 'name' => 'dateformatDatetime',
254 'quick_form_type' => 'Element',
255 'html_type' => 'text',
256 'default' => '%B %E%f, %Y %l:%M %P',
258 'title' => 'Date Format: Complete Date and Time',
264 'dateformatFull' => [
265 'group_name' => 'Localization Preferences',
266 'group' => 'localization',
267 'name' => 'dateformatFull',
269 'quick_form_type' => 'Element',
270 'html_type' => 'text',
271 'default' => '%B %E%f, %Y',
273 'title' => 'Date Format: Complete Date',
279 'dateformatPartial' => [
280 'group_name' => 'Localization Preferences',
281 'group' => 'localization',
282 'name' => 'dateformatPartial',
284 'quick_form_type' => 'Element',
285 'html_type' => 'text',
286 'default' => '%B %Y',
288 'title' => 'Date Format: Month and Year',
294 'dateformatTime' => [
299 'group_name' => 'Localization Preferences',
300 'group' => 'localization',
301 'name' => 'dateformatTime',
303 'quick_form_type' => 'Element',
304 'html_type' => 'text',
305 'html_attributes' => [
309 'default' => '%l:%M %P',
310 'title' => 'Date Format: Time Only',
313 'dateformatYear' => [
318 'group_name' => 'Localization Preferences',
319 'group' => 'localization',
320 'name' => 'dateformatYear',
322 'quick_form_type' => 'Element',
323 'html_type' => 'text',
324 'html_attributes' => [
329 'title' => 'Date Format: Year Only',
332 'dateformatFinancialBatch' => [
337 'group_name' => 'Localization Preferences',
338 'group' => 'localization',
339 'name' => 'dateformatFinancialBatch',
341 'quick_form_type' => 'Element',
342 'html_type' => 'text',
343 'html_attributes' => [
347 'default' => '%m/%d/%Y',
348 'title' => 'Date Format: Financial Batch',
351 'dateformatshortdate' => [
356 'group_name' => 'Localization Preferences',
357 'group' => 'localization',
358 'name' => 'dateformatshortdate',
360 'quick_form_type' => 'Element',
361 'html_type' => 'text',
362 'html_attributes' => [
366 'default' => '%m/%d/%Y',
367 'title' => 'Date Format: Short date Month Day Year',
370 'dateInputFormat' => [
375 'group_name' => 'Localization Preferences',
376 'group' => 'localization',
377 'name' => 'dateInputFormat',
379 'quick_form_type' => 'Select',
380 'html_type' => 'Select',
381 'pseudoconstant' => [
382 'callback' => 'CRM_Core_SelectValues::getDatePluginInputFormats',
384 'default' => 'mm/dd/yy',
385 'title' => 'Date Input Format',
388 'fieldSeparator' => [
393 'group_name' => 'Localization Preferences',
394 'group' => 'localization',
395 'name' => 'fieldSeparator',
397 'quick_form_type' => 'Element',
398 'html_type' => 'text',
399 'html_attributes' => [
404 'title' => 'Import / Export Field Separator',
405 'description' => 'Global CSV separator character. Modify this setting to enable import and export of different kinds of CSV files (for example: \',\' \';\' \':\' \'|\' ).',
407 'fiscalYearStart' => [
412 'group_name' => 'Localization Preferences',
413 'group' => 'localization',
414 'name' => 'fiscalYearStart',
416 'quick_form_type' => 'MonthDay',
417 'html_type' => 'MonthDay',
418 'default' => ['M' => 1, 'd' => 1],
419 'title' => 'Fiscal Year Start',
423 'group_name' => 'Localization Preferences',
424 'group' => 'localization',
425 'name' => 'languageLimit',
427 'quick_form_type' => 'Select',
428 'html_type' => 'Select',
429 'html_attributes' => [
431 'class' => 'crm-select2',
435 'title' => 'Available Languages (Multi-lingual)',
440 'pseudoconstant' => [
441 'callback' => 'CRM_Core_I18n::languages',
445 'group_name' => 'Localization Preferences',
446 'group' => 'localization',
447 'name' => 'uiLanguages',
449 'quick_form_type' => 'Select',
450 'html_type' => 'select',
451 'html_attributes' => [
453 'class' => 'crm-select2',
457 'title' => 'Available Languages',
461 'help_text' => ts('User Interface languages available to users'),
462 'pseudoconstant' => [
463 'callback' => 'CRM_Core_I18n::languages',
467 'group_name' => 'Localization Preferences',
468 'group' => 'localization',
469 'name' => 'lcMessages',
471 'quick_form_type' => 'Select',
472 'html_type' => 'Select',
473 'html_attributes' => [
474 'class' => 'crm-select2',
476 'default' => 'en_US',
478 'title' => 'Default Language',
483 'pseudoconstant' => [
484 'callback' => 'CRM_Admin_Form_Setting_Localization::getDefaultLocaleOptions',
487 'CRM_Admin_Form_Setting_Localization::onChangeLcMessages',
490 'legacyEncoding' => [
495 'group_name' => 'Localization Preferences',
496 'group' => 'localization',
497 'name' => 'legacyEncoding',
499 'quick_form_type' => 'Element',
500 'html_type' => 'text',
501 'html_attributes' => [
505 'default' => 'Windows-1252',
506 'title' => 'Legacy Encoding',
507 '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.',
509 'timeInputFormat' => [
514 'group_name' => 'Localization Preferences',
515 'group' => 'localization',
516 'name' => 'timeInputFormat',
518 'quick_form_type' => 'Select',
519 'html_type' => 'Select',
520 'pseudoconstant' => [
521 'callback' => 'CRM_Core_SelectValues::getTimeFormats',
524 'title' => 'Time Input Format',
527 'CRM_Core_BAO_PreferencesDate::onChangeSetting',
531 'group_name' => 'Localization Preferences',
532 'group' => 'localization',
533 'name' => 'weekBegins',
535 'quick_form_type' => 'Select',
536 'html_type' => 'Select',
537 'pseudoconstant' => [
538 'callback' => 'CRM_Utils_Date::getFullWeekdayNames',
542 'title' => 'Week begins on',
548 'contact_default_language' => [
549 'group_name' => 'Localization Preferences',
550 'group' => 'localization',
551 'name' => 'contact_default_language',
553 'quick_form_type' => 'Select',
554 'html_type' => 'Select',
555 'html_attributes' => [
556 'class' => 'crm-select2',
558 'pseudoconstant' => [
559 'callback' => 'CRM_Admin_Form_Setting_Localization::getDefaultLanguageOptions',
561 'default' => '*default*',
563 'title' => 'Default Language for contacts',
566 'description' => 'Default language (if any) for contact records',
567 'help_text' => 'If a contact is created with no language this setting will determine the language data (if any) to save.'
568 . 'You may or may not wish to make an assumption here about whether it matches the site language',