CRM-19980, CRM-19881 - Fix slow queries due to LOWER on contact name fields
[civicrm-core.git] / settings / Localization.setting.php
CommitLineData
6a488035
TO
1<?php
2/*
3 +--------------------------------------------------------------------+
81621fee 4 | CiviCRM version 4.7 |
6a488035 5 +--------------------------------------------------------------------+
4a99ac35 6 | Copyright CiviCRM LLC (c) 2004-2017 |
6a488035
TO
7 +--------------------------------------------------------------------+
8 | This file is a part of CiviCRM. |
9 | |
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. |
13 | |
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. |
18 | |
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 +--------------------------------------------------------------------+
d25dd0ee 26 */
6a488035
TO
27
28/**
29 *
30 * @package CRM
4a99ac35 31 * @copyright CiviCRM LLC (c) 2004-2017
6a488035
TO
32 * $Id$
33 *
34 */
35/*
36 * Settings metadata file
37 */
38
39return array(
8a61528e
TO
40 'customTranslateFunction' => array(
41 'add' => '4.7',
8a61528e
TO
42 'help_text' => NULL,
43 'is_domain' => 1,
44 'is_contact' => 0,
45 'group_name' => 'Localization Preferences',
46 'group' => 'localization',
47 'name' => 'customTranslateFunction',
48 'type' => 'String',
49 'quick_form_type' => 'Element',
50 'html_type' => 'text',
51 'html_attributes' => array(
52 'size' => '30',
53 'maxlength' => '100',
54 ),
55 'default' => NULL,
56 'title' => 'Custom Translate Function',
57 'description' => '',
58 ),
6a488035
TO
59 'monetaryThousandSeparator' => array(
60 'group_name' => 'Localization Preferences',
61 'group' => 'localization',
62 'name' => 'monetaryThousandSeparator',
6a488035
TO
63 'type' => 'String',
64 'quick_form_type' => 'Element',
65 'html_type' => 'text',
66 'html_attributes' => array(
67 'size' => 2,
68 ),
69 'default' => ',',
70 'add' => '4.3',
71 'title' => 'Thousands Separator',
72 'is_domain' => 1,
73 'is_contact' => 0,
08e57c58
TO
74 'description' => NULL,
75 'help_text' => NULL,
6a488035
TO
76 ),
77 'monetaryDecimalPoint' => array(
78 'group_name' => 'Localization Preferences',
79 'group' => 'localization',
80 'name' => 'monetaryDecimalPoint',
6a488035
TO
81 'type' => 'String',
82 'quick_form_type' => 'Element',
83 'html_type' => 'text',
84 'html_attributes' => array(
85 'size' => 2,
86 ),
87 'default' => '.',
88 'add' => '4.3',
89 'title' => 'Decimal Delimiter',
90 'is_domain' => 1,
91 'is_contact' => 0,
08e57c58
TO
92 'description' => NULL,
93 'help_text' => NULL,
6a488035
TO
94 ),
95 'moneyformat' => array(
96 'group_name' => 'Localization Preferences',
97 'group' => 'localization',
98 'name' => 'moneyformat',
6a488035
TO
99 'type' => 'String',
100 'quick_form_type' => 'Element',
101 'html_type' => 'text',
102 'default' => '%c %a',
103 'add' => '4.3',
104 'title' => 'Monetary Amount Display',
105 'is_domain' => 1,
106 'is_contact' => 0,
08e57c58
TO
107 'description' => NULL,
108 'help_text' => NULL,
6a488035
TO
109 ),
110 'moneyvalueformat' => array(
111 'group_name' => 'Localization Preferences',
112 'group' => 'localization',
113 'name' => 'moneyvalueformat',
6a488035
TO
114 'type' => 'String',
115 'quick_form_type' => 'Element',
116 'html_type' => 'text',
117 'default' => '%!i',
118 'add' => '4.3',
8a61528e 119 'title' => 'Monetary Value Display',
6a488035
TO
120 'is_domain' => 1,
121 'is_contact' => 0,
08e57c58
TO
122 'description' => NULL,
123 'help_text' => NULL,
6a488035
TO
124 ),
125 'defaultCurrency' => array(
126 'group_name' => 'Localization Preferences',
127 'group' => 'localization',
128 'name' => 'defaultCurrency',
6a488035 129 'type' => 'String',
8a61528e
TO
130 'quick_form_type' => 'Select',
131 'html_type' => 'Select',
6a488035 132 'html_attributes' => array(
8a61528e 133 'class' => 'crm-select2',
6a488035
TO
134 ),
135 'default' => 'USD',
136 'add' => '4.3',
137 'title' => 'Default Currency',
138 'is_domain' => 1,
139 'is_contact' => 0,
140 'description' => 'Default currency assigned to contributions and other monetary transactions.',
08e57c58 141 'help_text' => NULL,
8a61528e
TO
142 'pseudoconstant' => array(
143 'callback' => 'CRM_Admin_Form_Setting_Localization::getCurrencySymbols',
144 ),
6a488035 145 ),
f9f9f147
CW
146 'defaultContactCountry' => array(
147 'group_name' => 'Localization Preferences',
148 'group' => 'localization',
149 'name' => 'defaultContactCountry',
f9f9f147 150 'type' => 'String',
8a61528e
TO
151 'quick_form_type' => 'Select',
152 'html_type' => 'Select',
f9f9f147 153 'html_attributes' => array(
8a61528e 154 //'class' => 'crm-select2',
f9f9f147
CW
155 ),
156 'default' => '1228',
157 'add' => '4.4',
158 'title' => 'Default Country',
159 'is_domain' => 1,
160 'is_contact' => 0,
161 'description' => 'This value is selected by default when adding a new contact address.',
08e57c58 162 'help_text' => NULL,
8a61528e
TO
163 'pseudoconstant' => array(
164 'callback' => 'CRM_Admin_Form_Setting_Localization::getAvailableCountries',
165 ),
f9f9f147 166 ),
ee12f1b2
TO
167 'defaultContactStateProvince' => array(
168 'add' => '4.7',
ee12f1b2
TO
169 'help_text' => NULL,
170 'is_domain' => 1,
171 'is_contact' => 0,
172 'group_name' => 'Localization Preferences',
173 'group' => 'localization',
174 'name' => 'defaultContactStateProvince',
175 'type' => 'Integer',
8a61528e
TO
176 'quick_form_type' => 'ChainSelect',
177 'html_type' => 'ChainSelect',
178 //'pseudoconstant' => array(
179 // 'callback' => 'CRM_Core_PseudoConstant::stateProvince',
180 //),
181 //'html_attributes',
182 'default' => NULL,
ee12f1b2
TO
183 'title' => 'Default State/Province',
184 'description' => 'This value is selected by default when adding a new contact address.',
185 ),
6a488035
TO
186 'countryLimit' => array(
187 'group_name' => 'Localization Preferences',
188 'group' => 'localization',
189 'name' => 'countryLimit',
6a488035 190 'type' => 'Array',
27969f15
J
191 'quick_form_type' => 'Element',
192 'html_type' => 'advmultiselect',
6a488035 193 'html_attributes' => array(
27969f15
J
194 'size' => 5,
195 'style' => 'width:150px',
196 'class' => 'advmultiselect',
6a488035 197 ),
0d27c52c 198 'default' => array(),
6a488035
TO
199 'add' => '4.3',
200 'title' => 'Available Countries',
201 'is_domain' => 1,
202 'is_contact' => 0,
203 'description' => '',
08e57c58 204 'help_text' => NULL,
8a61528e
TO
205 'pseudoconstant' => array(
206 'callback' => 'CRM_Admin_Form_Setting_Localization::getAvailableCountries',
207 ),
6a488035
TO
208 ),
209 'provinceLimit' => array(
210 'group_name' => 'Localization Preferences',
211 'group' => 'localization',
212 'name' => 'provinceLimit',
6a488035 213 'type' => 'Array',
27969f15
J
214 'quick_form_type' => 'Element',
215 'html_type' => 'advmultiselect',
6a488035 216 'html_attributes' => array(
27969f15
J
217 'size' => 5,
218 'style' => 'width:150px',
219 'class' => 'advmultiselect',
6a488035 220 ),
0d27c52c 221 'default' => array(),
6a488035 222 'add' => '4.3',
27969f15 223 'title' => 'Available States and Provinces (by Country)',
6a488035
TO
224 'is_domain' => 1,
225 'is_contact' => 0,
226 'description' => '',
08e57c58 227 'help_text' => NULL,
8a61528e
TO
228 'pseudoconstant' => array(
229 'callback' => 'CRM_Admin_Form_Setting_Localization::getAvailableCountries',
230 ),
6a488035
TO
231 ),
232 'inheritLocale' => array(
233 'group_name' => 'Localization Preferences',
234 'group' => 'localization',
235 'name' => 'inheritLocale',
6a488035
TO
236 'type' => 'Boolean',
237 'quick_form_type' => 'YesNo',
238 'default' => '0',
239 'add' => '4.3',
240 'title' => 'Inherit CMS Language',
241 'is_domain' => 1,
242 'is_contact' => 0,
243 'description' => '',
08e57c58 244 'help_text' => NULL,
6a488035
TO
245 ),
246 'dateformatDatetime' => array(
247 'group_name' => 'Localization Preferences',
248 'group' => 'localization',
249 'name' => 'dateformatDatetime',
6a488035 250 'type' => 'String',
a6c28496
TO
251 'quick_form_type' => 'Element',
252 'html_type' => 'text',
6a488035
TO
253 'default' => '%B %E%f, %Y %l:%M %P',
254 'add' => '4.3',
a6c28496 255 'title' => 'Date Format: Complete Date and Time',
6a488035
TO
256 'is_domain' => 1,
257 'is_contact' => 0,
258 'description' => '',
08e57c58 259 'help_text' => NULL,
6a488035
TO
260 ),
261 'dateformatFull' => array(
262 'group_name' => 'Localization Preferences',
263 'group' => 'localization',
264 'name' => 'dateformatFull',
6a488035 265 'type' => 'String',
a6c28496
TO
266 'quick_form_type' => 'Element',
267 'html_type' => 'text',
6a488035
TO
268 'default' => '%B %E%f, %Y',
269 'add' => '4.3',
a6c28496 270 'title' => 'Date Format: Complete Date',
6a488035
TO
271 'is_domain' => 1,
272 'is_contact' => 0,
273 'description' => '',
08e57c58 274 'help_text' => NULL,
6a488035
TO
275 ),
276 'dateformatPartial' => array(
277 'group_name' => 'Localization Preferences',
278 'group' => 'localization',
279 'name' => 'dateformatPartial',
6a488035 280 'type' => 'String',
a6c28496
TO
281 'quick_form_type' => 'Element',
282 'html_type' => 'text',
6a488035
TO
283 'default' => '%B %Y',
284 'add' => '4.3',
a6c28496 285 'title' => 'Date Format: Month and Year',
6a488035
TO
286 'is_domain' => 1,
287 'is_contact' => 0,
288 'description' => '',
08e57c58 289 'help_text' => NULL,
6a488035 290 ),
9277b874
TO
291 'dateformatTime' => array(
292 'add' => '4.7',
9277b874
TO
293 'help_text' => NULL,
294 'is_domain' => 1,
295 'is_contact' => 0,
296 'group_name' => 'Localization Preferences',
297 'group' => 'localization',
298 'name' => 'dateformatTime',
299 'type' => 'String',
300 'quick_form_type' => 'Element',
301 'html_type' => 'text',
302 'html_attributes' => array(
303 'size' => '12',
304 'maxlength' => '60',
305 ),
306 'default' => '%l:%M %P',
307 'title' => 'Date Format: Time Only',
308 'description' => '',
309 ),
310 'dateformatYear' => array(
311 'add' => '4.7',
9277b874
TO
312 'help_text' => NULL,
313 'is_domain' => 1,
314 'is_contact' => 0,
315 'group_name' => 'Localization Preferences',
316 'group' => 'localization',
317 'name' => 'dateformatYear',
318 'type' => 'String',
319 'quick_form_type' => 'Element',
320 'html_type' => 'text',
321 'html_attributes' => array(
322 'size' => '12',
323 'maxlength' => '60',
324 ),
325 'default' => '%Y',
326 'title' => 'Date Format: Year Only',
327 'description' => '',
328 ),
37846436
DRB
329 'dateformatFinancialBatch' => array(
330 'add' => '4.7',
331 'help_text' => NULL,
332 'is_domain' => 1,
333 'is_contact' => 0,
334 'group_name' => 'Localization Preferences',
335 'group' => 'localization',
336 'name' => 'dateformatFinancialBatch',
337 'type' => 'String',
338 'quick_form_type' => 'Element',
339 'html_type' => 'text',
340 'html_attributes' => array(
341 'size' => '12',
342 'maxlength' => '60',
343 ),
344 'default' => '%m/%d/%Y',
345 'title' => 'Date Format: Financial Batch',
346 'description' => '',
347 ),
080ee9d3
SL
348 'dateformatshortdate' => array(
349 'add' => '4.7',
350 'help_text' => NULL,
351 'is_domain' => 1,
352 'is_contact' => 0,
353 'group_name' => 'Localization Preferences',
354 'group' => 'localization',
355 'name' => 'dateformatshortdate',
356 'type' => 'String',
357 'quick_form_type' => 'Element',
358 'html_type' => 'text',
359 'html_attributes' => array(
360 'size' => '12',
361 'maxlength' => '60',
362 ),
363 'default' => '%m/%d/%Y',
c2f30983 364 'title' => 'Date Format: Short date Month Day Year',
080ee9d3
SL
365 'description' => '',
366 ),
630d30ec
TO
367 'dateInputFormat' => array(
368 'add' => '4.7',
630d30ec
TO
369 'help_text' => NULL,
370 'is_domain' => 1,
371 'is_contact' => 0,
372 'group_name' => 'Localization Preferences',
373 'group' => 'localization',
374 'name' => 'dateInputFormat',
375 'type' => 'String',
376 'quick_form_type' => 'Select',
377 'html_type' => 'Select',
378 'pseudoconstant' => array(
379 'callback' => 'CRM_Core_SelectValues::getDatePluginInputFormats',
380 ),
381 'default' => 'mm/dd/yy',
382 'title' => 'Date Input Format',
383 'description' => '',
384 ),
b7c8991e
TO
385 'fieldSeparator' => array(
386 'add' => '4.7',
b7c8991e
TO
387 'help_text' => NULL,
388 'is_domain' => 1,
389 'is_contact' => 0,
390 'group_name' => 'Localization Preferences',
391 'group' => 'localization',
392 'name' => 'fieldSeparator',
393 'type' => 'String',
394 'quick_form_type' => 'Element',
395 'html_type' => 'text',
396 'html_attributes' => array(
397 'size' => '2',
398 'maxlength' => '8',
399 ),
400 'default' => ',',
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: \',\' \';\' \':\' \'|\' ).',
403 ),
439b55df
TO
404 'fiscalYearStart' => array(
405 'add' => '4.7',
439b55df
TO
406 'help_text' => NULL,
407 'is_domain' => 1,
408 'is_contact' => 0,
409 'group_name' => 'Localization Preferences',
410 'group' => 'localization',
411 'name' => 'fiscalYearStart',
412 'type' => 'Array',
413 'quick_form_type' => 'MonthDay',
414 'html_type' => 'MonthDay',
a809a3f1 415 'default' => array('M' => 1, 'd' => 1),
439b55df
TO
416 'title' => 'Fiscal Year Start',
417 'description' => '',
418 ),
b72b5fc0
TO
419 'languageLimit' => array(
420 'group_name' => 'Localization Preferences',
421 'group' => 'localization',
422 'name' => 'languageLimit',
423 'type' => 'Array',
424 'quick_form_type' => 'Select',
425 'html_type' => 'Select',
426 'html_attributes' => array(
427 'multiple' => 1,
428 'class' => 'crm-select2',
429 ),
430 'default' => NULL,
431 'add' => '4.3',
432 'title' => 'Available Languages (Multi-lingual)',
433 'is_domain' => 1,
434 'is_contact' => 0,
435 'description' => '',
436 'help_text' => NULL,
437 'pseudoconstant' => array(
438 'callback' => 'CRM_Core_I18n::languages',
439 ),
440 ),
6a488035
TO
441 'lcMessages' => array(
442 'group_name' => 'Localization Preferences',
443 'group' => 'localization',
444 'name' => 'lcMessages',
6a488035 445 'type' => 'String',
8a61528e
TO
446 'quick_form_type' => 'Select',
447 'html_type' => 'Select',
448 'html_attributes' => array(
449 'class' => 'crm-select2',
450 ),
6a488035
TO
451 'default' => 'en_US',
452 'add' => '4.3',
453 'title' => 'Default Language',
454 'is_domain' => 1,
455 'is_contact' => 0,
456 'description' => '',
08e57c58 457 'help_text' => NULL,
8a61528e
TO
458 'pseudoconstant' => array(
459 'callback' => 'CRM_Admin_Form_Setting_Localization::getDefaultLocaleOptions',
460 ),
b72b5fc0
TO
461 'on_change' => array(
462 'CRM_Admin_Form_Setting_Localization::onChangeLcMessages',
463 ),
6a488035 464 ),
b7c8991e
TO
465 'legacyEncoding' => array(
466 'add' => '4.7',
b7c8991e
TO
467 'help_text' => NULL,
468 'is_domain' => 1,
469 'is_contact' => 0,
470 'group_name' => 'Localization Preferences',
471 'group' => 'localization',
472 'name' => 'legacyEncoding',
473 'type' => 'String',
474 'quick_form_type' => 'Element',
475 'html_type' => 'text',
476 'html_attributes' => array(
477 'size' => '12',
478 'maxlength' => '30',
479 ),
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.',
483 ),
630d30ec
TO
484 'timeInputFormat' => array(
485 'add' => '4.7',
630d30ec
TO
486 'help_text' => NULL,
487 'is_domain' => 1,
488 'is_contact' => 0,
489 'group_name' => 'Localization Preferences',
490 'group' => 'localization',
491 'name' => 'timeInputFormat',
492 'type' => 'String',
493 'quick_form_type' => 'Select',
494 'html_type' => 'Select',
495 'pseudoconstant' => array(
496 'callback' => 'CRM_Core_SelectValues::getTimeFormats',
497 ),
498 'default' => '1',
499 'title' => 'Time Input Format',
500 'description' => '',
501 'on_change' => array(
502 'CRM_Core_BAO_PreferencesDate::onChangeSetting',
503 ),
504 ),
6d9ac92c
CW
505 'weekBegins' => array(
506 'group_name' => 'Localization Preferences',
507 'group' => 'localization',
508 'name' => 'weekBegins',
509 'type' => 'String',
976afa8f
TO
510 'quick_form_type' => 'Select',
511 'html_type' => 'Select',
512 'pseudoconstant' => array(
513 'callback' => 'CRM_Utils_Date::getFullWeekdayNames',
514 ),
6d9ac92c
CW
515 'default' => '0',
516 'add' => '4.7',
517 'title' => 'Week begins on',
518 'is_domain' => 1,
519 'is_contact' => 0,
520 'description' => "",
521 'help_text' => NULL,
522 ),
9747df8a 523 'contact_default_language' => array(
524 'group_name' => 'Localization Preferences',
525 'group' => 'localization',
526 'name' => 'contact_default_language',
527 'type' => 'String',
9c325795
TO
528 'quick_form_type' => 'Select',
529 'html_type' => 'Select',
530 'html_attributes' => array(
531 'class' => 'crm-select2',
532 ),
533 'pseudoconstant' => array(
534 'callback' => 'CRM_Admin_Form_Setting_Localization::getDefaultLanguageOptions',
535 ),
9747df8a 536 'default' => '*default*',
537 'add' => '4.7',
538 'title' => 'Default Language for contacts',
539 'is_domain' => 1,
540 'is_contact' => 0,
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',
544 ),
232624b1 545);