3 +--------------------------------------------------------------------+
4 | CiviCRM version 4.7 |
5 +--------------------------------------------------------------------+
6 | Copyright CiviCRM LLC (c) 2004-2017 |
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-2017
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',
146 'defaultContactCountry' => array(
147 'group_name' => 'Localization Preferences',
148 'group' => 'localization',
149 'name' => 'defaultContactCountry',
151 'quick_form_type' => 'Select',
152 'html_type' => 'Select',
153 'html_attributes' => array(
154 //'class' => 'crm-select2',
158 'title' => 'Default Country',
161 'description' => 'This value is selected by default when adding a new contact address.',
163 'pseudoconstant' => array(
164 'callback' => 'CRM_Admin_Form_Setting_Localization::getAvailableCountries',
167 'defaultContactStateProvince' => array(
172 'group_name' => 'Localization Preferences',
173 'group' => 'localization',
174 'name' => 'defaultContactStateProvince',
176 'quick_form_type' => 'ChainSelect',
177 'html_type' => 'ChainSelect',
178 //'pseudoconstant' => array(
179 // 'callback' => 'CRM_Core_PseudoConstant::stateProvince',
183 'title' => 'Default State/Province',
184 'description' => 'This value is selected by default when adding a new contact address.',
186 'countryLimit' => array(
187 'group_name' => 'Localization Preferences',
188 'group' => 'localization',
189 'name' => 'countryLimit',
191 'quick_form_type' => 'Element',
192 'html_type' => 'advmultiselect',
193 'html_attributes' => array(
195 'style' => 'width:150px',
196 'class' => 'advmultiselect',
198 'default' => array(),
200 'title' => 'Available Countries',
205 'pseudoconstant' => array(
206 'callback' => 'CRM_Admin_Form_Setting_Localization::getAvailableCountries',
209 'provinceLimit' => array(
210 'group_name' => 'Localization Preferences',
211 'group' => 'localization',
212 'name' => 'provinceLimit',
214 'quick_form_type' => 'Element',
215 'html_type' => 'advmultiselect',
216 'html_attributes' => array(
218 'style' => 'width:150px',
219 'class' => 'advmultiselect',
221 'default' => array(),
223 'title' => 'Available States and Provinces (by Country)',
228 'pseudoconstant' => array(
229 'callback' => 'CRM_Admin_Form_Setting_Localization::getAvailableCountries',
232 'inheritLocale' => array(
233 'group_name' => 'Localization Preferences',
234 'group' => 'localization',
235 'name' => 'inheritLocale',
237 'quick_form_type' => 'YesNo',
240 'title' => 'Inherit CMS Language',
246 'dateformatDatetime' => array(
247 'group_name' => 'Localization Preferences',
248 'group' => 'localization',
249 'name' => 'dateformatDatetime',
251 'quick_form_type' => 'Element',
252 'html_type' => 'text',
253 'default' => '%B %E%f, %Y %l:%M %P',
255 'title' => 'Date Format: Complete Date and Time',
261 'dateformatFull' => array(
262 'group_name' => 'Localization Preferences',
263 'group' => 'localization',
264 'name' => 'dateformatFull',
266 'quick_form_type' => 'Element',
267 'html_type' => 'text',
268 'default' => '%B %E%f, %Y',
270 'title' => 'Date Format: Complete Date',
276 'dateformatPartial' => array(
277 'group_name' => 'Localization Preferences',
278 'group' => 'localization',
279 'name' => 'dateformatPartial',
281 'quick_form_type' => 'Element',
282 'html_type' => 'text',
283 'default' => '%B %Y',
285 'title' => 'Date Format: Month and Year',
291 'dateformatTime' => array(
296 'group_name' => 'Localization Preferences',
297 'group' => 'localization',
298 'name' => 'dateformatTime',
300 'quick_form_type' => 'Element',
301 'html_type' => 'text',
302 'html_attributes' => array(
306 'default' => '%l:%M %P',
307 'title' => 'Date Format: Time Only',
310 'dateformatYear' => array(
315 'group_name' => 'Localization Preferences',
316 'group' => 'localization',
317 'name' => 'dateformatYear',
319 'quick_form_type' => 'Element',
320 'html_type' => 'text',
321 'html_attributes' => array(
326 'title' => 'Date Format: Year Only',
329 'dateformatFinancialBatch' => array(
334 'group_name' => 'Localization Preferences',
335 'group' => 'localization',
336 'name' => 'dateformatFinancialBatch',
338 'quick_form_type' => 'Element',
339 'html_type' => 'text',
340 'html_attributes' => array(
344 'default' => '%m/%d/%Y',
345 'title' => 'Date Format: Financial Batch',
348 'dateformatshortdate' => array(
353 'group_name' => 'Localization Preferences',
354 'group' => 'localization',
355 'name' => 'dateformatshortdate',
357 'quick_form_type' => 'Element',
358 'html_type' => 'text',
359 'html_attributes' => array(
363 'default' => '%m/%d/%Y',
364 'title' => 'Date Format: Short date Month Day Year',
367 'dateInputFormat' => array(
372 'group_name' => 'Localization Preferences',
373 'group' => 'localization',
374 'name' => 'dateInputFormat',
376 'quick_form_type' => 'Select',
377 'html_type' => 'Select',
378 'pseudoconstant' => array(
379 'callback' => 'CRM_Core_SelectValues::getDatePluginInputFormats',
381 'default' => 'mm/dd/yy',
382 'title' => 'Date Input Format',
385 'fieldSeparator' => array(
390 'group_name' => 'Localization Preferences',
391 'group' => 'localization',
392 'name' => 'fieldSeparator',
394 'quick_form_type' => 'Element',
395 'html_type' => 'text',
396 'html_attributes' => array(
401 'title' => 'Import / Export Field Separator',
402 'description' => 'Global CSV separator character. Modify this setting to enable import and export of different kinds of CSV files (for example: \',\' \';\' \':\' \'|\' ).',
404 'fiscalYearStart' => array(
409 'group_name' => 'Localization Preferences',
410 'group' => 'localization',
411 'name' => 'fiscalYearStart',
413 'quick_form_type' => 'MonthDay',
414 'html_type' => 'MonthDay',
415 'default' => array('M' => 1, 'd' => 1),
416 'title' => 'Fiscal Year Start',
419 'languageLimit' => array(
420 'group_name' => 'Localization Preferences',
421 'group' => 'localization',
422 'name' => 'languageLimit',
424 'quick_form_type' => 'Select',
425 'html_type' => 'Select',
426 'html_attributes' => array(
428 'class' => 'crm-select2',
432 'title' => 'Available Languages (Multi-lingual)',
437 'pseudoconstant' => array(
438 'callback' => 'CRM_Core_I18n::languages',
441 'lcMessages' => array(
442 'group_name' => 'Localization Preferences',
443 'group' => 'localization',
444 'name' => 'lcMessages',
446 'quick_form_type' => 'Select',
447 'html_type' => 'Select',
448 'html_attributes' => array(
449 'class' => 'crm-select2',
451 'default' => 'en_US',
453 'title' => 'Default Language',
458 'pseudoconstant' => array(
459 'callback' => 'CRM_Admin_Form_Setting_Localization::getDefaultLocaleOptions',
461 'on_change' => array(
462 'CRM_Admin_Form_Setting_Localization::onChangeLcMessages',
465 'legacyEncoding' => array(
470 'group_name' => 'Localization Preferences',
471 'group' => 'localization',
472 'name' => 'legacyEncoding',
474 'quick_form_type' => 'Element',
475 'html_type' => 'text',
476 'html_attributes' => array(
480 'default' => 'Windows-1252',
481 'title' => 'Legacy Encoding',
482 '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.',
484 'timeInputFormat' => array(
489 'group_name' => 'Localization Preferences',
490 'group' => 'localization',
491 'name' => 'timeInputFormat',
493 'quick_form_type' => 'Select',
494 'html_type' => 'Select',
495 'pseudoconstant' => array(
496 'callback' => 'CRM_Core_SelectValues::getTimeFormats',
499 'title' => 'Time Input Format',
501 'on_change' => array(
502 'CRM_Core_BAO_PreferencesDate::onChangeSetting',
505 'weekBegins' => array(
506 'group_name' => 'Localization Preferences',
507 'group' => 'localization',
508 'name' => 'weekBegins',
510 'quick_form_type' => 'Select',
511 'html_type' => 'Select',
512 'pseudoconstant' => array(
513 'callback' => 'CRM_Utils_Date::getFullWeekdayNames',
517 'title' => 'Week begins on',
523 'contact_default_language' => array(
524 'group_name' => 'Localization Preferences',
525 'group' => 'localization',
526 'name' => 'contact_default_language',
528 'quick_form_type' => 'Select',
529 'html_type' => 'Select',
530 'html_attributes' => array(
531 'class' => 'crm-select2',
533 'pseudoconstant' => array(
534 'callback' => 'CRM_Admin_Form_Setting_Localization::getDefaultLanguageOptions',
536 'default' => '*default*',
538 'title' => 'Default Language for contacts',
541 'description' => 'Default language (if any) for contact records',
542 'help_text' => 'If a contact is created with no language this setting will determine the language data (if any) to save.'
543 . 'You may or may not wish to make an assumption here about whether it matches the site language',