Merge pull request #8914 from totten/master-soap
[civicrm-core.git] / settings / Localization.setting.php
CommitLineData
6a488035
TO
1<?php
2/*
3 +--------------------------------------------------------------------+
81621fee 4 | CiviCRM version 4.7 |
6a488035 5 +--------------------------------------------------------------------+
fa938177 6 | Copyright CiviCRM LLC (c) 2004-2016 |
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
fa938177 31 * @copyright CiviCRM LLC (c) 2004-2016
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 ),
630d30ec
TO
348 'dateInputFormat' => array(
349 'add' => '4.7',
630d30ec
TO
350 'help_text' => NULL,
351 'is_domain' => 1,
352 'is_contact' => 0,
353 'group_name' => 'Localization Preferences',
354 'group' => 'localization',
355 'name' => 'dateInputFormat',
356 'type' => 'String',
357 'quick_form_type' => 'Select',
358 'html_type' => 'Select',
359 'pseudoconstant' => array(
360 'callback' => 'CRM_Core_SelectValues::getDatePluginInputFormats',
361 ),
362 'default' => 'mm/dd/yy',
363 'title' => 'Date Input Format',
364 'description' => '',
365 ),
b7c8991e
TO
366 'fieldSeparator' => array(
367 'add' => '4.7',
b7c8991e
TO
368 'help_text' => NULL,
369 'is_domain' => 1,
370 'is_contact' => 0,
371 'group_name' => 'Localization Preferences',
372 'group' => 'localization',
373 'name' => 'fieldSeparator',
374 'type' => 'String',
375 'quick_form_type' => 'Element',
376 'html_type' => 'text',
377 'html_attributes' => array(
378 'size' => '2',
379 'maxlength' => '8',
380 ),
381 'default' => ',',
382 'title' => 'Import / Export Field Separator',
383 'description' => 'Global CSV separator character. Modify this setting to enable import and export of different kinds of CSV files (for example: \',\' \';\' \':\' \'|\' ).',
384 ),
439b55df
TO
385 'fiscalYearStart' => array(
386 'add' => '4.7',
439b55df
TO
387 'help_text' => NULL,
388 'is_domain' => 1,
389 'is_contact' => 0,
390 'group_name' => 'Localization Preferences',
391 'group' => 'localization',
392 'name' => 'fiscalYearStart',
393 'type' => 'Array',
394 'quick_form_type' => 'MonthDay',
395 'html_type' => 'MonthDay',
a809a3f1 396 'default' => array('M' => 1, 'd' => 1),
439b55df
TO
397 'title' => 'Fiscal Year Start',
398 'description' => '',
399 ),
b72b5fc0
TO
400 'languageLimit' => array(
401 'group_name' => 'Localization Preferences',
402 'group' => 'localization',
403 'name' => 'languageLimit',
404 'type' => 'Array',
405 'quick_form_type' => 'Select',
406 'html_type' => 'Select',
407 'html_attributes' => array(
408 'multiple' => 1,
409 'class' => 'crm-select2',
410 ),
411 'default' => NULL,
412 'add' => '4.3',
413 'title' => 'Available Languages (Multi-lingual)',
414 'is_domain' => 1,
415 'is_contact' => 0,
416 'description' => '',
417 'help_text' => NULL,
418 'pseudoconstant' => array(
419 'callback' => 'CRM_Core_I18n::languages',
420 ),
421 ),
6a488035
TO
422 'lcMessages' => array(
423 'group_name' => 'Localization Preferences',
424 'group' => 'localization',
425 'name' => 'lcMessages',
6a488035 426 'type' => 'String',
8a61528e
TO
427 'quick_form_type' => 'Select',
428 'html_type' => 'Select',
429 'html_attributes' => array(
430 'class' => 'crm-select2',
431 ),
6a488035
TO
432 'default' => 'en_US',
433 'add' => '4.3',
434 'title' => 'Default Language',
435 'is_domain' => 1,
436 'is_contact' => 0,
437 'description' => '',
08e57c58 438 'help_text' => NULL,
8a61528e
TO
439 'pseudoconstant' => array(
440 'callback' => 'CRM_Admin_Form_Setting_Localization::getDefaultLocaleOptions',
441 ),
b72b5fc0
TO
442 'on_change' => array(
443 'CRM_Admin_Form_Setting_Localization::onChangeLcMessages',
444 ),
6a488035 445 ),
b7c8991e
TO
446 'legacyEncoding' => array(
447 'add' => '4.7',
b7c8991e
TO
448 'help_text' => NULL,
449 'is_domain' => 1,
450 'is_contact' => 0,
451 'group_name' => 'Localization Preferences',
452 'group' => 'localization',
453 'name' => 'legacyEncoding',
454 'type' => 'String',
455 'quick_form_type' => 'Element',
456 'html_type' => 'text',
457 'html_attributes' => array(
458 'size' => '12',
459 'maxlength' => '30',
460 ),
461 'default' => 'Windows-1252',
462 'title' => 'Legacy Encoding',
463 '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.',
464 ),
630d30ec
TO
465 'timeInputFormat' => array(
466 'add' => '4.7',
630d30ec
TO
467 'help_text' => NULL,
468 'is_domain' => 1,
469 'is_contact' => 0,
470 'group_name' => 'Localization Preferences',
471 'group' => 'localization',
472 'name' => 'timeInputFormat',
473 'type' => 'String',
474 'quick_form_type' => 'Select',
475 'html_type' => 'Select',
476 'pseudoconstant' => array(
477 'callback' => 'CRM_Core_SelectValues::getTimeFormats',
478 ),
479 'default' => '1',
480 'title' => 'Time Input Format',
481 'description' => '',
482 'on_change' => array(
483 'CRM_Core_BAO_PreferencesDate::onChangeSetting',
484 ),
485 ),
6d9ac92c
CW
486 'weekBegins' => array(
487 'group_name' => 'Localization Preferences',
488 'group' => 'localization',
489 'name' => 'weekBegins',
490 'type' => 'String',
976afa8f
TO
491 'quick_form_type' => 'Select',
492 'html_type' => 'Select',
493 'pseudoconstant' => array(
494 'callback' => 'CRM_Utils_Date::getFullWeekdayNames',
495 ),
6d9ac92c
CW
496 'default' => '0',
497 'add' => '4.7',
498 'title' => 'Week begins on',
499 'is_domain' => 1,
500 'is_contact' => 0,
501 'description' => "",
502 'help_text' => NULL,
503 ),
9747df8a 504 'contact_default_language' => array(
505 'group_name' => 'Localization Preferences',
506 'group' => 'localization',
507 'name' => 'contact_default_language',
508 'type' => 'String',
9c325795
TO
509 'quick_form_type' => 'Select',
510 'html_type' => 'Select',
511 'html_attributes' => array(
512 'class' => 'crm-select2',
513 ),
514 'pseudoconstant' => array(
515 'callback' => 'CRM_Admin_Form_Setting_Localization::getDefaultLanguageOptions',
516 ),
9747df8a 517 'default' => '*default*',
518 'add' => '4.7',
519 'title' => 'Default Language for contacts',
520 'is_domain' => 1,
521 'is_contact' => 0,
522 'description' => 'Default language (if any) for contact records',
523 'help_text' => 'If a contact is created with no language this setting will determine the language data (if any) to save.'
524 . 'You may or may not wish to make an assumption here about whether it matches the site language',
525 ),
232624b1 526);