Ian province abbreviation patch - issue 724
[civicrm-core.git] / settings / Localization.setting.php
CommitLineData
6a488035
TO
1<?php
2/*
3 +--------------------------------------------------------------------+
81621fee 4 | CiviCRM version 4.7 |
6a488035 5 +--------------------------------------------------------------------+
e7112fa7 6 | Copyright CiviCRM LLC (c) 2004-2015 |
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
e7112fa7 31 * @copyright CiviCRM LLC (c) 2004-2015
6a488035
TO
32 * $Id$
33 *
34 */
35/*
36 * Settings metadata file
37 */
38
39return array(
40 'monetaryThousandSeparator' => array(
41 'group_name' => 'Localization Preferences',
42 'group' => 'localization',
43 'name' => 'monetaryThousandSeparator',
56fdfc52
TO
44 'prefetch' => 1,
45 // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent
46 'config_only' => 1,
47 //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value
6a488035
TO
48 'type' => 'String',
49 'quick_form_type' => 'Element',
50 'html_type' => 'text',
51 'html_attributes' => array(
52 'size' => 2,
53 ),
54 'default' => ',',
55 'add' => '4.3',
56 'title' => 'Thousands Separator',
57 'is_domain' => 1,
58 'is_contact' => 0,
08e57c58
TO
59 'description' => NULL,
60 'help_text' => NULL,
6a488035
TO
61 ),
62 'monetaryDecimalPoint' => array(
63 'group_name' => 'Localization Preferences',
64 'group' => 'localization',
65 'name' => 'monetaryDecimalPoint',
56fdfc52
TO
66 'prefetch' => 1,
67 // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent
68 'config_only' => 1,
69 //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value
6a488035
TO
70 'type' => 'String',
71 'quick_form_type' => 'Element',
72 'html_type' => 'text',
73 'html_attributes' => array(
74 'size' => 2,
75 ),
76 'default' => '.',
77 'add' => '4.3',
78 'title' => 'Decimal Delimiter',
79 'is_domain' => 1,
80 'is_contact' => 0,
08e57c58
TO
81 'description' => NULL,
82 'help_text' => NULL,
6a488035
TO
83 ),
84 'moneyformat' => array(
85 'group_name' => 'Localization Preferences',
86 'group' => 'localization',
87 'name' => 'moneyformat',
56fdfc52
TO
88 'prefetch' => 1,
89 // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent
90 'config_only' => 1,
91 //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value
6a488035
TO
92 'type' => 'String',
93 'quick_form_type' => 'Element',
94 'html_type' => 'text',
95 'default' => '%c %a',
96 'add' => '4.3',
97 'title' => 'Monetary Amount Display',
98 'is_domain' => 1,
99 'is_contact' => 0,
08e57c58
TO
100 'description' => NULL,
101 'help_text' => NULL,
6a488035
TO
102 ),
103 'moneyvalueformat' => array(
104 'group_name' => 'Localization Preferences',
105 'group' => 'localization',
106 'name' => 'moneyvalueformat',
56fdfc52
TO
107 'prefetch' => 1,
108 // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent
109 'config_only' => 1,
110 //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value
6a488035
TO
111 'type' => 'String',
112 'quick_form_type' => 'Element',
113 'html_type' => 'text',
114 'default' => '%!i',
115 'add' => '4.3',
116 'title' => 'Monetary Amount Display',
117 'is_domain' => 1,
118 'is_contact' => 0,
08e57c58
TO
119 'description' => NULL,
120 'help_text' => NULL,
6a488035
TO
121 ),
122 'defaultCurrency' => array(
123 'group_name' => 'Localization Preferences',
124 'group' => 'localization',
125 'name' => 'defaultCurrency',
56fdfc52
TO
126 'prefetch' => 1,
127 // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent
128 'config_only' => 1,
129 //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value
6a488035
TO
130 'type' => 'String',
131 'quick_form_type' => 'Element',
132 'html_type' => 'text',
133 'html_attributes' => array(
134 'size' => 2,
135 ),
136 'default' => 'USD',
137 'add' => '4.3',
138 'title' => 'Default Currency',
139 'is_domain' => 1,
140 'is_contact' => 0,
141 'description' => 'Default currency assigned to contributions and other monetary transactions.',
08e57c58 142 'help_text' => NULL,
6a488035 143 ),
f9f9f147
CW
144 'defaultContactCountry' => array(
145 'group_name' => 'Localization Preferences',
146 'group' => 'localization',
147 'name' => 'defaultContactCountry',
56fdfc52
TO
148 'prefetch' => 1,
149 // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent
150 'config_only' => 1,
151 //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value
f9f9f147
CW
152 'type' => 'String',
153 'quick_form_type' => 'Element',
154 'html_type' => 'text',
155 'html_attributes' => array(
156 'size' => 4,
157 ),
158 'default' => '1228',
159 'add' => '4.4',
160 'title' => 'Default Country',
161 'is_domain' => 1,
162 'is_contact' => 0,
163 'description' => 'This value is selected by default when adding a new contact address.',
08e57c58 164 'help_text' => NULL,
f9f9f147 165 ),
ee12f1b2
TO
166 'defaultContactStateProvince' => array(
167 'add' => '4.7',
168 'prefetch' => 1,
169 'config_only' => 1,
170 'help_text' => NULL,
171 'is_domain' => 1,
172 'is_contact' => 0,
173 'group_name' => 'Localization Preferences',
174 'group' => 'localization',
175 'name' => 'defaultContactStateProvince',
176 'type' => 'Integer',
177 'quick_form_type' => 'Select',
178 'html_type' => 'Select',
179 'pseudoconstant' => array(
180 'callback' => 'CRM_Core_PseudoConstant::stateProvince',
181 ),
182 'html_attributes',
183 'default' => '',
184 'title' => 'Default State/Province',
185 'description' => 'This value is selected by default when adding a new contact address.',
186 ),
6a488035
TO
187 'countryLimit' => array(
188 'group_name' => 'Localization Preferences',
189 'group' => 'localization',
190 'name' => 'countryLimit',
56fdfc52
TO
191 'prefetch' => 1,
192 // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent
193 'config_only' => 1,
194 //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value
6a488035
TO
195 'type' => 'Array',
196 'quick_form_type' => 'Element',
197 'html_type' => 'advmultiselect',
198 'html_attributes' => array(
199 'size' => 5,
200 'style' => 'width:150px',
201 'class' => 'advmultiselect',
202 ),
203 'default' => 'null',
204 'add' => '4.3',
205 'title' => 'Available Countries',
206 'is_domain' => 1,
207 'is_contact' => 0,
208 'description' => '',
08e57c58 209 'help_text' => NULL,
6a488035
TO
210 ),
211 'provinceLimit' => array(
212 'group_name' => 'Localization Preferences',
213 'group' => 'localization',
214 'name' => 'provinceLimit',
56fdfc52
TO
215 'prefetch' => 1,
216 // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent
217 'config_only' => 1,
218 //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value
6a488035
TO
219 'type' => 'Array',
220 'quick_form_type' => 'Element',
221 'html_type' => 'advmultiselect',
222 'html_attributes' => array(
223 'size' => 5,
224 'style' => 'width:150px',
225 'class' => 'advmultiselect',
226 ),
227 'default' => 'null',
228 'add' => '4.3',
229 'title' => 'Available States and Provinces',
230 'is_domain' => 1,
231 'is_contact' => 0,
232 'description' => '',
08e57c58 233 'help_text' => NULL,
6a488035
TO
234 ),
235 'inheritLocale' => array(
236 'group_name' => 'Localization Preferences',
237 'group' => 'localization',
238 'name' => 'inheritLocale',
56fdfc52
TO
239 'prefetch' => 1,
240 // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent
241 'config_only' => 1,
242 //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value
6a488035
TO
243 'type' => 'Boolean',
244 'quick_form_type' => 'YesNo',
245 'default' => '0',
246 'add' => '4.3',
247 'title' => 'Inherit CMS Language',
248 'is_domain' => 1,
249 'is_contact' => 0,
250 'description' => '',
08e57c58 251 'help_text' => NULL,
6a488035
TO
252 ),
253 'dateformatDatetime' => array(
254 'group_name' => 'Localization Preferences',
255 'group' => 'localization',
256 'name' => 'dateformatDatetime',
56fdfc52
TO
257 'prefetch' => 1,
258 // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent
259 'config_only' => 1,
260 //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value
6a488035
TO
261 'type' => 'String',
262 'default' => '%B %E%f, %Y %l:%M %P',
263 'add' => '4.3',
264 'title' => 'Complete Date and Time',
265 'is_domain' => 1,
266 'is_contact' => 0,
267 'description' => '',
08e57c58 268 'help_text' => NULL,
6a488035
TO
269 ),
270 'dateformatFull' => array(
271 'group_name' => 'Localization Preferences',
272 'group' => 'localization',
273 'name' => 'dateformatFull',
56fdfc52
TO
274 'prefetch' => 1,
275 // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent
276 'config_only' => 1,
277 //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value
6a488035
TO
278 'type' => 'String',
279 'default' => '%B %E%f, %Y',
280 'add' => '4.3',
281 'title' => 'Complete Date',
282 'is_domain' => 1,
283 'is_contact' => 0,
284 'description' => '',
08e57c58 285 'help_text' => NULL,
6a488035
TO
286 ),
287 'dateformatPartial' => array(
288 'group_name' => 'Localization Preferences',
289 'group' => 'localization',
290 'name' => 'dateformatPartial',
56fdfc52
TO
291 'prefetch' => 1,
292 // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent
293 'config_only' => 1,
294 //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value
6a488035
TO
295 'type' => 'String',
296 'default' => '%B %Y',
297 'add' => '4.3',
298 'title' => 'Month and Year',
299 'is_domain' => 1,
300 'is_contact' => 0,
301 'description' => '',
08e57c58 302 'help_text' => NULL,
6a488035 303 ),
9277b874
TO
304 'dateformatTime' => array(
305 'add' => '4.7',
306 'prefetch' => 1,
307 'config_only' => 1,
308 'help_text' => NULL,
309 'is_domain' => 1,
310 'is_contact' => 0,
311 'group_name' => 'Localization Preferences',
312 'group' => 'localization',
313 'name' => 'dateformatTime',
314 'type' => 'String',
315 'quick_form_type' => 'Element',
316 'html_type' => 'text',
317 'html_attributes' => array(
318 'size' => '12',
319 'maxlength' => '60',
320 ),
321 'default' => '%l:%M %P',
322 'title' => 'Date Format: Time Only',
323 'description' => '',
324 ),
325 'dateformatYear' => array(
326 'add' => '4.7',
327 'prefetch' => 1,
328 'config_only' => 1,
329 'help_text' => NULL,
330 'is_domain' => 1,
331 'is_contact' => 0,
332 'group_name' => 'Localization Preferences',
333 'group' => 'localization',
334 'name' => 'dateformatYear',
335 'type' => 'String',
336 'quick_form_type' => 'Element',
337 'html_type' => 'text',
338 'html_attributes' => array(
339 'size' => '12',
340 'maxlength' => '60',
341 ),
342 'default' => '%Y',
343 'title' => 'Date Format: Year Only',
344 'description' => '',
345 ),
630d30ec
TO
346 'dateInputFormat' => array(
347 'add' => '4.7',
348 'prefetch' => 1,
349 'help_text' => NULL,
350 'is_domain' => 1,
351 'is_contact' => 0,
352 'group_name' => 'Localization Preferences',
353 'group' => 'localization',
354 'name' => 'dateInputFormat',
355 'type' => 'String',
356 'quick_form_type' => 'Select',
357 'html_type' => 'Select',
358 'pseudoconstant' => array(
359 'callback' => 'CRM_Core_SelectValues::getDatePluginInputFormats',
360 ),
361 'default' => 'mm/dd/yy',
362 'title' => 'Date Input Format',
363 'description' => '',
364 ),
b7c8991e
TO
365 'fieldSeparator' => array(
366 'add' => '4.7',
367 'prefetch' => 1,
368 'config_only' => 1,
369 'help_text' => NULL,
370 'is_domain' => 1,
371 'is_contact' => 0,
372 'group_name' => 'Localization Preferences',
373 'group' => 'localization',
374 'name' => 'fieldSeparator',
375 'type' => 'String',
376 'quick_form_type' => 'Element',
377 'html_type' => 'text',
378 'html_attributes' => array(
379 'size' => '2',
380 'maxlength' => '8',
381 ),
382 'default' => ',',
383 'title' => 'Import / Export Field Separator',
384 'description' => 'Global CSV separator character. Modify this setting to enable import and export of different kinds of CSV files (for example: \',\' \';\' \':\' \'|\' ).',
385 ),
439b55df
TO
386 'fiscalYearStart' => array(
387 'add' => '4.7',
388 'prefetch' => 1,
389 'help_text' => NULL,
390 'is_domain' => 1,
391 'is_contact' => 0,
392 'group_name' => 'Localization Preferences',
393 'group' => 'localization',
394 'name' => 'fiscalYearStart',
395 'type' => 'Array',
396 'quick_form_type' => 'MonthDay',
397 'html_type' => 'MonthDay',
398 'default' => ',',
399 'title' => 'Fiscal Year Start',
400 'description' => '',
401 ),
6a488035
TO
402 'lcMessages' => array(
403 'group_name' => 'Localization Preferences',
404 'group' => 'localization',
405 'name' => 'lcMessages',
56fdfc52
TO
406 'prefetch' => 1,
407 // prefetch causes it to be cached in config settings. Usually this is a transitional setting. Some things like urls are permanent. Remove this comment if you have assessed & it should be permanent
408 'config_only' => 1,
409 //@todo - see https://wiki.civicrm.org/confluence/display/CRMDOC/Settings+Reference#SettingsReference-Convertingaconfigobjecttoasetting on removing this deprecated value
6a488035
TO
410 'type' => 'String',
411 'default' => 'en_US',
412 'add' => '4.3',
413 'title' => 'Default Language',
414 'is_domain' => 1,
415 'is_contact' => 0,
416 'description' => '',
08e57c58 417 'help_text' => NULL,
6a488035 418 ),
b7c8991e
TO
419 'legacyEncoding' => array(
420 'add' => '4.7',
421 'prefetch' => 1,
422 'config_only' => 1,
423 'help_text' => NULL,
424 'is_domain' => 1,
425 'is_contact' => 0,
426 'group_name' => 'Localization Preferences',
427 'group' => 'localization',
428 'name' => 'legacyEncoding',
429 'type' => 'String',
430 'quick_form_type' => 'Element',
431 'html_type' => 'text',
432 'html_attributes' => array(
433 'size' => '12',
434 'maxlength' => '30',
435 ),
436 'default' => 'Windows-1252',
437 'title' => 'Legacy Encoding',
438 '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.',
439 ),
630d30ec
TO
440 'timeInputFormat' => array(
441 'add' => '4.7',
442 'prefetch' => 1,
443 'help_text' => NULL,
444 'is_domain' => 1,
445 'is_contact' => 0,
446 'group_name' => 'Localization Preferences',
447 'group' => 'localization',
448 'name' => 'timeInputFormat',
449 'type' => 'String',
450 'quick_form_type' => 'Select',
451 'html_type' => 'Select',
452 'pseudoconstant' => array(
453 'callback' => 'CRM_Core_SelectValues::getTimeFormats',
454 ),
455 'default' => '1',
456 'title' => 'Time Input Format',
457 'description' => '',
458 'on_change' => array(
459 'CRM_Core_BAO_PreferencesDate::onChangeSetting',
460 ),
461 ),
6d9ac92c
CW
462 'weekBegins' => array(
463 'group_name' => 'Localization Preferences',
464 'group' => 'localization',
465 'name' => 'weekBegins',
466 'type' => 'String',
976afa8f
TO
467 'quick_form_type' => 'Select',
468 'html_type' => 'Select',
469 'pseudoconstant' => array(
470 'callback' => 'CRM_Utils_Date::getFullWeekdayNames',
471 ),
6d9ac92c
CW
472 'default' => '0',
473 'add' => '4.7',
474 'title' => 'Week begins on',
475 'is_domain' => 1,
476 'is_contact' => 0,
477 'description' => "",
478 'help_text' => NULL,
479 ),
232624b1 480);