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