Settings - Remove special cases for `prefetch` and `config_only`
[civicrm-core.git] / settings / Localization.setting.php
1 <?php
2 /*
3 +--------------------------------------------------------------------+
4 | CiviCRM version 4.7 |
5 +--------------------------------------------------------------------+
6 | Copyright CiviCRM LLC (c) 2004-2015 |
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 +--------------------------------------------------------------------+
26 */
27
28 /**
29 *
30 * @package CRM
31 * @copyright CiviCRM LLC (c) 2004-2015
32 * $Id$
33 *
34 */
35 /*
36 * Settings metadata file
37 */
38
39 return array(
40 'customTranslateFunction' => array(
41 'add' => '4.7',
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 ),
59 'monetaryThousandSeparator' => array(
60 'group_name' => 'Localization Preferences',
61 'group' => 'localization',
62 'name' => 'monetaryThousandSeparator',
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,
74 'description' => NULL,
75 'help_text' => NULL,
76 ),
77 'monetaryDecimalPoint' => array(
78 'group_name' => 'Localization Preferences',
79 'group' => 'localization',
80 'name' => 'monetaryDecimalPoint',
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,
92 'description' => NULL,
93 'help_text' => NULL,
94 ),
95 'moneyformat' => array(
96 'group_name' => 'Localization Preferences',
97 'group' => 'localization',
98 'name' => 'moneyformat',
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,
107 'description' => NULL,
108 'help_text' => NULL,
109 ),
110 'moneyvalueformat' => array(
111 'group_name' => 'Localization Preferences',
112 'group' => 'localization',
113 'name' => 'moneyvalueformat',
114 'type' => 'String',
115 'quick_form_type' => 'Element',
116 'html_type' => 'text',
117 'default' => '%!i',
118 'add' => '4.3',
119 'title' => 'Monetary Value Display',
120 'is_domain' => 1,
121 'is_contact' => 0,
122 'description' => NULL,
123 'help_text' => NULL,
124 ),
125 'defaultCurrency' => array(
126 'group_name' => 'Localization Preferences',
127 'group' => 'localization',
128 'name' => 'defaultCurrency',
129 'type' => 'String',
130 'quick_form_type' => 'Select',
131 'html_type' => 'Select',
132 'html_attributes' => array(
133 'class' => 'crm-select2',
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.',
141 'help_text' => NULL,
142 'pseudoconstant' => array(
143 'callback' => 'CRM_Admin_Form_Setting_Localization::getCurrencySymbols',
144 ),
145 ),
146 'defaultContactCountry' => array(
147 'group_name' => 'Localization Preferences',
148 'group' => 'localization',
149 'name' => 'defaultContactCountry',
150 'type' => 'String',
151 'quick_form_type' => 'Select',
152 'html_type' => 'Select',
153 'html_attributes' => array(
154 //'class' => 'crm-select2',
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.',
162 'help_text' => NULL,
163 'pseudoconstant' => array(
164 'callback' => 'CRM_Admin_Form_Setting_Localization::getAvailableCountries',
165 ),
166 ),
167 'defaultContactStateProvince' => array(
168 'add' => '4.7',
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',
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,
183 'title' => 'Default State/Province',
184 'description' => 'This value is selected by default when adding a new contact address.',
185 ),
186 'countryLimit' => array(
187 'group_name' => 'Localization Preferences',
188 'group' => 'localization',
189 'name' => 'countryLimit',
190 'type' => 'Array',
191 'quick_form_type' => 'Select',
192 'html_type' => 'Select',
193 'html_attributes' => array(
194 'multiple' => 1,
195 'class' => 'crm-select2',
196 ),
197 'default' => array('1228'),
198 'add' => '4.3',
199 'title' => 'Available Countries',
200 'is_domain' => 1,
201 'is_contact' => 0,
202 'description' => '',
203 'help_text' => NULL,
204 'pseudoconstant' => array(
205 'callback' => 'CRM_Admin_Form_Setting_Localization::getAvailableCountries',
206 ),
207 ),
208 'provinceLimit' => array(
209 'group_name' => 'Localization Preferences',
210 'group' => 'localization',
211 'name' => 'provinceLimit',
212 'type' => 'Array',
213 'quick_form_type' => 'Select',
214 'html_type' => 'Select',
215 'html_attributes' => array(
216 'multiple' => 1,
217 'class' => 'crm-select2',
218 ),
219 'default' => array('1228'),
220 'add' => '4.3',
221 'title' => 'Available States and Provinces',
222 'is_domain' => 1,
223 'is_contact' => 0,
224 'description' => '',
225 'help_text' => NULL,
226 'pseudoconstant' => array(
227 'callback' => 'CRM_Admin_Form_Setting_Localization::getAvailableCountries',
228 ),
229 ),
230 'inheritLocale' => array(
231 'group_name' => 'Localization Preferences',
232 'group' => 'localization',
233 'name' => 'inheritLocale',
234 'type' => 'Boolean',
235 'quick_form_type' => 'YesNo',
236 'default' => '0',
237 'add' => '4.3',
238 'title' => 'Inherit CMS Language',
239 'is_domain' => 1,
240 'is_contact' => 0,
241 'description' => '',
242 'help_text' => NULL,
243 ),
244 'dateformatDatetime' => array(
245 'group_name' => 'Localization Preferences',
246 'group' => 'localization',
247 'name' => 'dateformatDatetime',
248 'type' => 'String',
249 'quick_form_type' => 'Element',
250 'html_type' => 'text',
251 'default' => '%B %E%f, %Y %l:%M %P',
252 'add' => '4.3',
253 'title' => 'Date Format: Complete Date and Time',
254 'is_domain' => 1,
255 'is_contact' => 0,
256 'description' => '',
257 'help_text' => NULL,
258 ),
259 'dateformatFull' => array(
260 'group_name' => 'Localization Preferences',
261 'group' => 'localization',
262 'name' => 'dateformatFull',
263 'type' => 'String',
264 'quick_form_type' => 'Element',
265 'html_type' => 'text',
266 'default' => '%B %E%f, %Y',
267 'add' => '4.3',
268 'title' => 'Date Format: Complete Date',
269 'is_domain' => 1,
270 'is_contact' => 0,
271 'description' => '',
272 'help_text' => NULL,
273 ),
274 'dateformatPartial' => array(
275 'group_name' => 'Localization Preferences',
276 'group' => 'localization',
277 'name' => 'dateformatPartial',
278 'type' => 'String',
279 'quick_form_type' => 'Element',
280 'html_type' => 'text',
281 'default' => '%B %Y',
282 'add' => '4.3',
283 'title' => 'Date Format: Month and Year',
284 'is_domain' => 1,
285 'is_contact' => 0,
286 'description' => '',
287 'help_text' => NULL,
288 ),
289 'dateformatTime' => array(
290 'add' => '4.7',
291 'help_text' => NULL,
292 'is_domain' => 1,
293 'is_contact' => 0,
294 'group_name' => 'Localization Preferences',
295 'group' => 'localization',
296 'name' => 'dateformatTime',
297 'type' => 'String',
298 'quick_form_type' => 'Element',
299 'html_type' => 'text',
300 'html_attributes' => array(
301 'size' => '12',
302 'maxlength' => '60',
303 ),
304 'default' => '%l:%M %P',
305 'title' => 'Date Format: Time Only',
306 'description' => '',
307 ),
308 'dateformatYear' => array(
309 'add' => '4.7',
310 'help_text' => NULL,
311 'is_domain' => 1,
312 'is_contact' => 0,
313 'group_name' => 'Localization Preferences',
314 'group' => 'localization',
315 'name' => 'dateformatYear',
316 'type' => 'String',
317 'quick_form_type' => 'Element',
318 'html_type' => 'text',
319 'html_attributes' => array(
320 'size' => '12',
321 'maxlength' => '60',
322 ),
323 'default' => '%Y',
324 'title' => 'Date Format: Year Only',
325 'description' => '',
326 ),
327 'dateInputFormat' => array(
328 'add' => '4.7',
329 'help_text' => NULL,
330 'is_domain' => 1,
331 'is_contact' => 0,
332 'group_name' => 'Localization Preferences',
333 'group' => 'localization',
334 'name' => 'dateInputFormat',
335 'type' => 'String',
336 'quick_form_type' => 'Select',
337 'html_type' => 'Select',
338 'pseudoconstant' => array(
339 'callback' => 'CRM_Core_SelectValues::getDatePluginInputFormats',
340 ),
341 'default' => 'mm/dd/yy',
342 'title' => 'Date Input Format',
343 'description' => '',
344 ),
345 'fieldSeparator' => array(
346 'add' => '4.7',
347 'help_text' => NULL,
348 'is_domain' => 1,
349 'is_contact' => 0,
350 'group_name' => 'Localization Preferences',
351 'group' => 'localization',
352 'name' => 'fieldSeparator',
353 'type' => 'String',
354 'quick_form_type' => 'Element',
355 'html_type' => 'text',
356 'html_attributes' => array(
357 'size' => '2',
358 'maxlength' => '8',
359 ),
360 'default' => ',',
361 'title' => 'Import / Export Field Separator',
362 'description' => 'Global CSV separator character. Modify this setting to enable import and export of different kinds of CSV files (for example: \',\' \';\' \':\' \'|\' ).',
363 ),
364 'fiscalYearStart' => array(
365 'add' => '4.7',
366 'help_text' => NULL,
367 'is_domain' => 1,
368 'is_contact' => 0,
369 'group_name' => 'Localization Preferences',
370 'group' => 'localization',
371 'name' => 'fiscalYearStart',
372 'type' => 'Array',
373 'quick_form_type' => 'MonthDay',
374 'html_type' => 'MonthDay',
375 'default' => ',',
376 'title' => 'Fiscal Year Start',
377 'description' => '',
378 ),
379 'languageLimit' => array(
380 'group_name' => 'Localization Preferences',
381 'group' => 'localization',
382 'name' => 'languageLimit',
383 'type' => 'Array',
384 'quick_form_type' => 'Select',
385 'html_type' => 'Select',
386 'html_attributes' => array(
387 'multiple' => 1,
388 'class' => 'crm-select2',
389 ),
390 'default' => NULL,
391 'add' => '4.3',
392 'title' => 'Available Languages (Multi-lingual)',
393 'is_domain' => 1,
394 'is_contact' => 0,
395 'description' => '',
396 'help_text' => NULL,
397 'pseudoconstant' => array(
398 'callback' => 'CRM_Core_I18n::languages',
399 ),
400 ),
401 'lcMessages' => array(
402 'group_name' => 'Localization Preferences',
403 'group' => 'localization',
404 'name' => 'lcMessages',
405 'type' => 'String',
406 'quick_form_type' => 'Select',
407 'html_type' => 'Select',
408 'html_attributes' => array(
409 'class' => 'crm-select2',
410 ),
411 'default' => 'en_US',
412 'add' => '4.3',
413 'title' => 'Default Language',
414 'is_domain' => 1,
415 'is_contact' => 0,
416 'description' => '',
417 'help_text' => NULL,
418 'pseudoconstant' => array(
419 'callback' => 'CRM_Admin_Form_Setting_Localization::getDefaultLocaleOptions',
420 ),
421 'on_change' => array(
422 'CRM_Admin_Form_Setting_Localization::onChangeLcMessages',
423 ),
424 ),
425 'legacyEncoding' => array(
426 'add' => '4.7',
427 'help_text' => NULL,
428 'is_domain' => 1,
429 'is_contact' => 0,
430 'group_name' => 'Localization Preferences',
431 'group' => 'localization',
432 'name' => 'legacyEncoding',
433 'type' => 'String',
434 'quick_form_type' => 'Element',
435 'html_type' => 'text',
436 'html_attributes' => array(
437 'size' => '12',
438 'maxlength' => '30',
439 ),
440 'default' => 'Windows-1252',
441 'title' => 'Legacy Encoding',
442 '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.',
443 ),
444 'timeInputFormat' => array(
445 'add' => '4.7',
446 'help_text' => NULL,
447 'is_domain' => 1,
448 'is_contact' => 0,
449 'group_name' => 'Localization Preferences',
450 'group' => 'localization',
451 'name' => 'timeInputFormat',
452 'type' => 'String',
453 'quick_form_type' => 'Select',
454 'html_type' => 'Select',
455 'pseudoconstant' => array(
456 'callback' => 'CRM_Core_SelectValues::getTimeFormats',
457 ),
458 'default' => '1',
459 'title' => 'Time Input Format',
460 'description' => '',
461 'on_change' => array(
462 'CRM_Core_BAO_PreferencesDate::onChangeSetting',
463 ),
464 ),
465 'weekBegins' => array(
466 'group_name' => 'Localization Preferences',
467 'group' => 'localization',
468 'name' => 'weekBegins',
469 'type' => 'String',
470 'quick_form_type' => 'Select',
471 'html_type' => 'Select',
472 'pseudoconstant' => array(
473 'callback' => 'CRM_Utils_Date::getFullWeekdayNames',
474 ),
475 'default' => '0',
476 'add' => '4.7',
477 'title' => 'Week begins on',
478 'is_domain' => 1,
479 'is_contact' => 0,
480 'description' => "",
481 'help_text' => NULL,
482 ),
483 'contact_default_language' => array(
484 'group_name' => 'Localization Preferences',
485 'group' => 'localization',
486 'name' => 'contact_default_language',
487 'type' => 'String',
488 'default' => '*default*',
489 'add' => '4.7',
490 'title' => 'Default Language for contacts',
491 'is_domain' => 1,
492 'is_contact' => 0,
493 'description' => 'Default language (if any) for contact records',
494 'help_text' => 'If a contact is created with no language this setting will determine the language data (if any) to save.'
495 . 'You may or may not wish to make an assumption here about whether it matches the site language',
496 ),
497 );