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' => array(
45 'group_name' => 'Localization Preferences',
46 'group' => 'localization',
47 'name' => 'customTranslateFunction',
49 'quick_form_type' => 'Element',
50 'html_type' => 'text',
51 'html_attributes' => array(
56 'title' => 'Custom Translate Function',
59 'monetaryThousandSeparator' => array(
60 'group_name' => 'Localization Preferences',
61 'group' => 'localization',
62 'name' => 'monetaryThousandSeparator',
64 'quick_form_type' => 'Element',
65 'html_type' => 'text',
66 'html_attributes' => array(
71 'title' => 'Thousands Separator',
74 'description' => NULL,
77 'monetaryDecimalPoint' => array(
78 'group_name' => 'Localization Preferences',
79 'group' => 'localization',
80 'name' => 'monetaryDecimalPoint',
82 'quick_form_type' => 'Element',
83 'html_type' => 'text',
84 'html_attributes' => array(
89 'title' => 'Decimal Delimiter',
92 'description' => NULL,
95 'moneyformat' => array(
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' => array(
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' => array(
126 'group_name' => 'Localization Preferences',
127 'group' => 'localization',
128 'name' => 'defaultCurrency',
130 'quick_form_type' => 'Select',
131 'html_type' => 'Select',
132 'html_attributes' => array(
133 'class' => 'crm-select2',
137 'title' => 'Default Currency',
140 'description' => 'Default currency assigned to contributions and other monetary transactions.',
142 'pseudoconstant' => array(
143 'callback' => 'CRM_Admin_Form_Setting_Localization::getCurrencySymbols',
145 'on_change' => array(
146 'CRM_Admin_Form_Setting_Localization::onChangeDefaultCurrency',
149 'defaultContactCountry' => array(
150 'group_name' => 'Localization Preferences',
151 'group' => 'localization',
152 'name' => 'defaultContactCountry',
154 'quick_form_type' => 'Select',
155 'html_type' => 'Select',
156 'html_attributes' => array(
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' => array(
167 'callback' => 'CRM_Admin_Form_Setting_Localization::getAvailableCountries',
170 'defaultContactStateProvince' => array(
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.',
189 'countryLimit' => array(
190 'group_name' => 'Localization Preferences',
191 'group' => 'localization',
192 'name' => 'countryLimit',
194 'quick_form_type' => 'Element',
195 'html_type' => 'advmultiselect',
196 'html_attributes' => array(
198 'style' => 'width:150px',
199 'class' => 'advmultiselect',
201 'default' => array(),
203 'title' => 'Available Countries',
208 'pseudoconstant' => array(
209 'callback' => 'CRM_Admin_Form_Setting_Localization::getAvailableCountries',
212 'provinceLimit' => array(
213 'group_name' => 'Localization Preferences',
214 'group' => 'localization',
215 'name' => 'provinceLimit',
217 'quick_form_type' => 'Element',
218 'html_type' => 'advmultiselect',
219 'html_attributes' => array(
221 'style' => 'width:150px',
222 'class' => 'advmultiselect',
224 'default' => array(),
226 'title' => 'Available States and Provinces (by Country)',
231 'pseudoconstant' => array(
232 'callback' => 'CRM_Admin_Form_Setting_Localization::getAvailableCountries',
235 'inheritLocale' => array(
236 'group_name' => 'Localization Preferences',
237 'group' => 'localization',
238 'name' => 'inheritLocale',
240 'quick_form_type' => 'YesNo',
243 'title' => 'Inherit CMS Language',
249 'dateformatDatetime' => array(
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' => array(
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' => array(
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' => array(
299 'group_name' => 'Localization Preferences',
300 'group' => 'localization',
301 'name' => 'dateformatTime',
303 'quick_form_type' => 'Element',
304 'html_type' => 'text',
305 'html_attributes' => array(
309 'default' => '%l:%M %P',
310 'title' => 'Date Format: Time Only',
313 'dateformatYear' => array(
318 'group_name' => 'Localization Preferences',
319 'group' => 'localization',
320 'name' => 'dateformatYear',
322 'quick_form_type' => 'Element',
323 'html_type' => 'text',
324 'html_attributes' => array(
329 'title' => 'Date Format: Year Only',
332 'dateformatFinancialBatch' => array(
337 'group_name' => 'Localization Preferences',
338 'group' => 'localization',
339 'name' => 'dateformatFinancialBatch',
341 'quick_form_type' => 'Element',
342 'html_type' => 'text',
343 'html_attributes' => array(
347 'default' => '%m/%d/%Y',
348 'title' => 'Date Format: Financial Batch',
351 'dateformatshortdate' => array(
356 'group_name' => 'Localization Preferences',
357 'group' => 'localization',
358 'name' => 'dateformatshortdate',
360 'quick_form_type' => 'Element',
361 'html_type' => 'text',
362 'html_attributes' => array(
366 'default' => '%m/%d/%Y',
367 'title' => 'Date Format: Short date Month Day Year',
370 'dateInputFormat' => array(
375 'group_name' => 'Localization Preferences',
376 'group' => 'localization',
377 'name' => 'dateInputFormat',
379 'quick_form_type' => 'Select',
380 'html_type' => 'Select',
381 'pseudoconstant' => array(
382 'callback' => 'CRM_Core_SelectValues::getDatePluginInputFormats',
384 'default' => 'mm/dd/yy',
385 'title' => 'Date Input Format',
388 'fieldSeparator' => array(
393 'group_name' => 'Localization Preferences',
394 'group' => 'localization',
395 'name' => 'fieldSeparator',
397 'quick_form_type' => 'Element',
398 'html_type' => 'text',
399 'html_attributes' => array(
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' => array(
412 'group_name' => 'Localization Preferences',
413 'group' => 'localization',
414 'name' => 'fiscalYearStart',
416 'quick_form_type' => 'MonthDay',
417 'html_type' => 'MonthDay',
418 'default' => array('M' => 1, 'd' => 1),
419 'title' => 'Fiscal Year Start',
422 'languageLimit' => array(
423 'group_name' => 'Localization Preferences',
424 'group' => 'localization',
425 'name' => 'languageLimit',
427 'quick_form_type' => 'Select',
428 'html_type' => 'Select',
429 'html_attributes' => array(
431 'class' => 'crm-select2',
435 'title' => 'Available Languages (Multi-lingual)',
440 'pseudoconstant' => array(
441 'callback' => 'CRM_Core_I18n::languages',
444 'uiLanguages' => array(
445 'group_name' => 'Localization Preferences',
446 'group' => 'localization',
447 'name' => 'uiLanguages',
449 'quick_form_type' => 'Select',
450 'html_type' => 'select',
451 'html_attributes' => array(
453 'class' => 'crm-select2',
457 'title' => 'Available Languages',
461 'help_text' => ts('User Interface languages available to users'),
462 'pseudoconstant' => array(
463 'callback' => 'CRM_Core_I18n::languages',
466 'lcMessages' => array(
467 'group_name' => 'Localization Preferences',
468 'group' => 'localization',
469 'name' => 'lcMessages',
471 'quick_form_type' => 'Select',
472 'html_type' => 'Select',
473 'html_attributes' => array(
474 'class' => 'crm-select2',
476 'default' => 'en_US',
478 'title' => 'Default Language',
483 'pseudoconstant' => array(
484 'callback' => 'CRM_Admin_Form_Setting_Localization::getDefaultLocaleOptions',
486 'on_change' => array(
487 'CRM_Admin_Form_Setting_Localization::onChangeLcMessages',
490 'legacyEncoding' => array(
495 'group_name' => 'Localization Preferences',
496 'group' => 'localization',
497 'name' => 'legacyEncoding',
499 'quick_form_type' => 'Element',
500 'html_type' => 'text',
501 'html_attributes' => array(
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' => array(
514 'group_name' => 'Localization Preferences',
515 'group' => 'localization',
516 'name' => 'timeInputFormat',
518 'quick_form_type' => 'Select',
519 'html_type' => 'Select',
520 'pseudoconstant' => array(
521 'callback' => 'CRM_Core_SelectValues::getTimeFormats',
524 'title' => 'Time Input Format',
526 'on_change' => array(
527 'CRM_Core_BAO_PreferencesDate::onChangeSetting',
530 'weekBegins' => array(
531 'group_name' => 'Localization Preferences',
532 'group' => 'localization',
533 'name' => 'weekBegins',
535 'quick_form_type' => 'Select',
536 'html_type' => 'Select',
537 'pseudoconstant' => array(
538 'callback' => 'CRM_Utils_Date::getFullWeekdayNames',
542 'title' => 'Week begins on',
548 'contact_default_language' => array(
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' => array(
556 'class' => 'crm-select2',
558 'pseudoconstant' => array(
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',