Merge pull request #21496 from civicrm/5.42
[civicrm-core.git] / CRM / Core / I18n / SchemaStructure_5_20_alpha1.php
1 <?php
2 /*
3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
5 | |
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 |
9 +--------------------------------------------------------------------+
10 */
11
12 /**
13 *
14 * @package CRM
15 * @copyright CiviCRM LLC https://civicrm.org/licensing
16 *
17 * Generated from schema_structure.tpl
18 * DO NOT EDIT. Generated by CRM_Core_CodeGen
19 */
20 class CRM_Core_I18n_SchemaStructure_5_20_alpha1 {
21
22 /**
23 * Get translatable columns.
24 *
25 * @return array
26 * A table-indexed array of translatable columns.
27 */
28 public static function &columns() {
29 static $result = NULL;
30 if (!$result) {
31 $result = [
32 'civicrm_location_type' => [
33 'display_name' => "varchar(64) COMMENT 'Location Type Display Name.'",
34 ],
35 'civicrm_option_group' => [
36 'title' => "varchar(255) COMMENT 'Option Group title.'",
37 'description' => "varchar(255) COMMENT 'Option group description.'",
38 ],
39 'civicrm_relationship_type' => [
40 'label_a_b' => "varchar(64) COMMENT 'label for relationship of contact_a to contact_b.'",
41 'label_b_a' => "varchar(64) COMMENT 'Optional label for relationship of contact_b to contact_a.'",
42 'description' => "varchar(255) COMMENT 'Optional verbose description of the relationship type.'",
43 ],
44 'civicrm_contact_type' => [
45 'label' => "varchar(64) COMMENT 'localized Name of Contact Type.'",
46 'description' => "text COMMENT 'localized Optional verbose description of the type.'",
47 ],
48 'civicrm_batch' => [
49 'title' => "varchar(255) COMMENT 'Friendly Name.'",
50 'description' => "text COMMENT 'Description of this batch set.'",
51 ],
52 'civicrm_premiums' => [
53 'premiums_intro_title' => "varchar(255) COMMENT 'Title for Premiums section.'",
54 'premiums_intro_text' => "text COMMENT 'Displayed in <div> at top of Premiums section of page. Text and HTML allowed.'",
55 'premiums_nothankyou_label' => "varchar(255) COMMENT 'Label displayed for No Thank-you option in premiums block (e.g. No thank you)'",
56 ],
57 'civicrm_membership_status' => [
58 'label' => "varchar(128) COMMENT 'Label for Membership Status'",
59 ],
60 'civicrm_survey' => [
61 'title' => "varchar(255) NOT NULL COMMENT 'Title of the Survey.'",
62 'instructions' => "text COMMENT 'Script instructions for volunteers to use for the survey.'",
63 'thankyou_title' => "varchar(255) COMMENT 'Title for Thank-you page (header title tag, and display at the top of the page).'",
64 'thankyou_text' => "text COMMENT 'text and html allowed. displayed above result on success page'",
65 ],
66 'civicrm_participant_status_type' => [
67 'label' => "varchar(255) COMMENT 'localized label for display of this status type'",
68 ],
69 'civicrm_case_type' => [
70 'title' => "varchar(64) NOT NULL COMMENT 'Natural language name for Case Type'",
71 'description' => "varchar(255) COMMENT 'Description of the Case Type'",
72 ],
73 'civicrm_tell_friend' => [
74 'title' => "varchar(255)",
75 'intro' => "text COMMENT 'Introductory message to contributor or participant displayed on the Tell a Friend form.'",
76 'suggested_message' => "text COMMENT 'Suggested message to friends, provided as default on the Tell A Friend form.'",
77 'thankyou_title' => "varchar(255) COMMENT 'Text for Tell a Friend thank you page header and HTML title.'",
78 'thankyou_text' => "text COMMENT 'Thank you message displayed on success page.'",
79 ],
80 'civicrm_custom_group' => [
81 'title' => "varchar(64) NOT NULL COMMENT 'Friendly Name.'",
82 'help_pre' => "text COMMENT 'Description and/or help text to display before fields in form.'",
83 'help_post' => "text COMMENT 'Description and/or help text to display after fields in form.'",
84 ],
85 'civicrm_custom_field' => [
86 'label' => "varchar(255) NOT NULL COMMENT 'Text for form field label (also friendly name for administering this custom property).'",
87 'help_pre' => "text COMMENT 'Description and/or help text to display before this field.'",
88 'help_post' => "text COMMENT 'Description and/or help text to display after this field.'",
89 ],
90 'civicrm_option_value' => [
91 'label' => "varchar(512) NOT NULL COMMENT 'Option string as displayed to users - e.g. the label in an HTML OPTION tag.'",
92 'description' => "text COMMENT 'Optional description.'",
93 ],
94 'civicrm_group' => [
95 'title' => "varchar(64) COMMENT 'Name of Group.'",
96 ],
97 'civicrm_contribution_page' => [
98 'title' => "varchar(255) COMMENT 'Contribution Page title. For top of page display'",
99 'intro_text' => "text COMMENT 'Text and html allowed. Displayed below title.'",
100 'pay_later_text' => "text COMMENT 'The text displayed to the user in the main form'",
101 'pay_later_receipt' => "text COMMENT 'The receipt sent to the user instead of the normal receipt text'",
102 'initial_amount_label' => "varchar(255) COMMENT 'Initial amount label for partial payment'",
103 'initial_amount_help_text' => "text COMMENT 'Initial amount help text for partial payment'",
104 'thankyou_title' => "varchar(255) COMMENT 'Title for Thank-you page (header title tag, and display at the top of the page).'",
105 'thankyou_text' => "text COMMENT 'text and html allowed. displayed above result on success page'",
106 'thankyou_footer' => "text COMMENT 'Text and html allowed. displayed at the bottom of the success page. Common usage is to include link(s) to other pages such as tell-a-friend, etc.'",
107 'receipt_from_name' => "varchar(255) COMMENT 'FROM email name used for receipts generated by contributions to this contribution page.'",
108 'receipt_text' => "text COMMENT 'text to include above standard receipt info on receipt email. emails are text-only, so do not allow html for now'",
109 'footer_text' => "text COMMENT 'Text and html allowed. Displayed at the bottom of the first page of the contribution wizard.'",
110 'frontend_title' => "varchar(255) COMMENT 'Contribution Page Public title'",
111 ],
112 'civicrm_product' => [
113 'name' => "varchar(255) NOT NULL COMMENT 'Required product/premium name'",
114 'description' => "text COMMENT 'Optional description of the product/premium.'",
115 'options' => "text COMMENT 'Store comma-delimited list of color, size, etc. options for the product.'",
116 ],
117 'civicrm_payment_processor' => [
118 'title' => "varchar(127) COMMENT 'Payment Processor Descriptive Name.'",
119 ],
120 'civicrm_membership_type' => [
121 'name' => "varchar(128) COMMENT 'Name of Membership Type'",
122 'description' => "varchar(255) COMMENT 'Description of Membership Type'",
123 ],
124 'civicrm_membership_block' => [
125 'new_title' => "varchar(255) COMMENT 'Title to display at top of block'",
126 'new_text' => "text COMMENT 'Text to display below title'",
127 'renewal_title' => "varchar(255) COMMENT 'Title for renewal'",
128 'renewal_text' => "text COMMENT 'Text to display for member renewal'",
129 ],
130 'civicrm_price_set' => [
131 'title' => "varchar(255) NOT NULL COMMENT 'Displayed title for the Price Set.'",
132 'help_pre' => "text COMMENT 'Description and/or help text to display before fields in form.'",
133 'help_post' => "text COMMENT 'Description and/or help text to display after fields in form.'",
134 ],
135 'civicrm_dashboard' => [
136 'label' => "varchar(255) COMMENT 'dashlet title'",
137 ],
138 'civicrm_uf_group' => [
139 'title' => "varchar(64) NOT NULL COMMENT 'Form title.'",
140 'frontend_title' => "varchar(64) COMMENT 'Profile Form Public title'",
141 'help_pre' => "text COMMENT 'Description and/or help text to display before fields in form.'",
142 'help_post' => "text COMMENT 'Description and/or help text to display after fields in form.'",
143 'cancel_button_text' => "varchar(64) DEFAULT NULL COMMENT 'Custom Text to display on the Cancel button when used in create or edit mode'",
144 'submit_button_text' => "varchar(64) DEFAULT NULL COMMENT 'Custom Text to display on the submit button on profile edit/create screens'",
145 ],
146 'civicrm_uf_field' => [
147 'help_post' => "text COMMENT 'Description and/or help text to display after this field.'",
148 'help_pre' => "text COMMENT 'Description and/or help text to display before this field.'",
149 'label' => "varchar(255) NOT NULL COMMENT 'To save label for fields.'",
150 ],
151 'civicrm_price_field' => [
152 'label' => "varchar(255) NOT NULL COMMENT 'Text for form field label (also friendly name for administering this field).'",
153 'help_pre' => "text COMMENT 'Description and/or help text to display before this field.'",
154 'help_post' => "text COMMENT 'Description and/or help text to display after this field.'",
155 ],
156 'civicrm_price_field_value' => [
157 'label' => "varchar(255) COMMENT 'Price field option label'",
158 'description' => "text DEFAULT NULL COMMENT 'Price field option description.'",
159 'help_pre' => "text DEFAULT NULL COMMENT 'Price field option pre help text.'",
160 'help_post' => "text DEFAULT NULL COMMENT 'Price field option post field help.'",
161 ],
162 'civicrm_pcp_block' => [
163 'link_text' => "varchar(255) DEFAULT NULL COMMENT 'Link text for PCP.'",
164 ],
165 'civicrm_event' => [
166 'title' => "varchar(255) COMMENT 'Event Title (e.g. Fall Fundraiser Dinner)'",
167 'summary' => "text COMMENT 'Brief summary of event. Text and html allowed. Displayed on Event Registration form and can be used on other CMS pages which need an event summary.'",
168 'description' => "text COMMENT 'Full description of event. Text and html allowed. Displayed on built-in Event Information screens.'",
169 'registration_link_text' => "varchar(255) COMMENT 'Text for link to Event Registration form which is displayed on Event Information screen when is_online_registration is true.'",
170 'event_full_text' => "text COMMENT 'Message to display on Event Information page and INSTEAD OF Event Registration form if maximum participants are signed up. Can include email address/info about getting on a waiting list, etc. Text and html allowed.'",
171 'fee_label' => "varchar(255)",
172 'intro_text' => "text COMMENT 'Introductory message for Event Registration page. Text and html allowed. Displayed at the top of Event Registration form.'",
173 'footer_text' => "text COMMENT 'Footer message for Event Registration page. Text and html allowed. Displayed at the bottom of Event Registration form.'",
174 'confirm_title' => "varchar(255) DEFAULT NULL COMMENT 'Title for Confirmation page.'",
175 'confirm_text' => "text COMMENT 'Introductory message for Event Registration page. Text and html allowed. Displayed at the top of Event Registration form.'",
176 'confirm_footer_text' => "text COMMENT 'Footer message for Event Registration page. Text and html allowed. Displayed at the bottom of Event Registration form.'",
177 'confirm_email_text' => "text COMMENT 'text to include above standard event info on confirmation email. emails are text-only, so do not allow html for now'",
178 'confirm_from_name' => "varchar(255) COMMENT 'FROM email name used for confirmation emails.'",
179 'thankyou_title' => "varchar(255) DEFAULT NULL COMMENT 'Title for ThankYou page.'",
180 'thankyou_text' => "text COMMENT 'ThankYou Text.'",
181 'thankyou_footer_text' => "text COMMENT 'Footer message.'",
182 'pay_later_text' => "text COMMENT 'The text displayed to the user in the main form'",
183 'pay_later_receipt' => "text COMMENT 'The receipt sent to the user instead of the normal receipt text'",
184 'initial_amount_label' => "varchar(255) COMMENT 'Initial amount label for partial payment'",
185 'initial_amount_help_text' => "text COMMENT 'Initial amount help text for partial payment'",
186 'waitlist_text' => "text COMMENT 'Text to display when the event is full, but participants can signup for a waitlist.'",
187 'approval_req_text' => "text COMMENT 'Text to display when the approval is required to complete registration for an event.'",
188 'template_title' => "varchar(255) COMMENT 'Event Template Title'",
189 ],
190 ];
191 }
192 return $result;
193 }
194
195 /**
196 * Get a table indexed array of the indices for translatable fields.
197 *
198 * @return array
199 * Indices for translatable fields.
200 */
201 public static function &indices() {
202 static $result = NULL;
203 if (!$result) {
204 $result = [
205 'civicrm_custom_group' => [
206 'UI_title_extends' => [
207 'name' => 'UI_title_extends',
208 'field' => [
209 'title',
210 'extends',
211 ],
212 'unique' => 1,
213 ],
214 ],
215 'civicrm_custom_field' => [
216 'UI_label_custom_group_id' => [
217 'name' => 'UI_label_custom_group_id',
218 'field' => [
219 'label',
220 'custom_group_id',
221 ],
222 'unique' => 1,
223 ],
224 ],
225 'civicrm_group' => [
226 'UI_title' => [
227 'name' => 'UI_title',
228 'field' => [
229 'title',
230 ],
231 'unique' => 1,
232 ],
233 ],
234 ];
235 }
236 return $result;
237 }
238
239 /**
240 * Get tables with translatable fields.
241 *
242 * @return array
243 * Array of names of tables with fields that can be translated.
244 */
245 public static function &tables() {
246 static $result = NULL;
247 if (!$result) {
248 $result = array_keys(self::columns());
249 }
250 return $result;
251 }
252
253 /**
254 * Get a list of widgets for editing translatable fields.
255 *
256 * @return array
257 * Array of the widgets for editing translatable fields.
258 */
259 public static function &widgets() {
260 static $result = NULL;
261 if (!$result) {
262 $result = [
263 'civicrm_location_type' => [
264 'display_name' => [
265 'type' => "Text",
266 ],
267 ],
268 'civicrm_option_group' => [
269 'title' => [
270 'type' => "Text",
271 ],
272 'description' => [
273 'type' => "Text",
274 ],
275 ],
276 'civicrm_relationship_type' => [
277 'label_a_b' => [
278 'type' => "Text",
279 ],
280 'label_b_a' => [
281 'type' => "Text",
282 ],
283 'description' => [
284 'type' => "Text",
285 ],
286 ],
287 'civicrm_contact_type' => [
288 'label' => [
289 'type' => "Text",
290 ],
291 'description' => [
292 'type' => "TextArea",
293 'rows' => "2",
294 'cols' => "60",
295 ],
296 ],
297 'civicrm_batch' => [
298 'title' => [
299 'type' => "Text",
300 ],
301 'description' => [
302 'type' => "TextArea",
303 'rows' => "4",
304 'cols' => "80",
305 ],
306 ],
307 'civicrm_premiums' => [
308 'premiums_intro_title' => [
309 'type' => "Text",
310 ],
311 'premiums_intro_text' => [
312 'type' => "Text",
313 ],
314 'premiums_nothankyou_label' => [
315 'type' => "Text",
316 ],
317 ],
318 'civicrm_membership_status' => [
319 'label' => [
320 'type' => "Text",
321 ],
322 ],
323 'civicrm_survey' => [
324 'title' => [
325 'type' => "Text",
326 'required' => "true",
327 ],
328 'instructions' => [
329 'type' => "TextArea",
330 'rows' => "20",
331 'cols' => "80",
332 ],
333 'thankyou_title' => [
334 'type' => "Text",
335 ],
336 'thankyou_text' => [
337 'type' => "TextArea",
338 'rows' => "8",
339 'cols' => "60",
340 ],
341 ],
342 'civicrm_participant_status_type' => [
343 'label' => [
344 'type' => "Text",
345 ],
346 ],
347 'civicrm_case_type' => [
348 'title' => [
349 'type' => "Text",
350 'required' => "true",
351 ],
352 'description' => [
353 'type' => "Text",
354 ],
355 ],
356 'civicrm_tell_friend' => [
357 'title' => [
358 'type' => "Text",
359 ],
360 'intro' => [
361 'type' => "Text",
362 ],
363 'suggested_message' => [
364 'type' => "Text",
365 ],
366 'thankyou_title' => [
367 'type' => "Text",
368 ],
369 'thankyou_text' => [
370 'type' => "Text",
371 ],
372 ],
373 'civicrm_custom_group' => [
374 'title' => [
375 'type' => "Text",
376 'required' => "true",
377 ],
378 'help_pre' => [
379 'type' => "TextArea",
380 'rows' => "4",
381 'cols' => "80",
382 ],
383 'help_post' => [
384 'type' => "TextArea",
385 'rows' => "4",
386 'cols' => "80",
387 ],
388 ],
389 'civicrm_custom_field' => [
390 'label' => [
391 'type' => "Text",
392 'required' => "true",
393 ],
394 'help_pre' => [
395 'type' => "Text",
396 ],
397 'help_post' => [
398 'type' => "Text",
399 ],
400 ],
401 'civicrm_option_value' => [
402 'label' => [
403 'type' => "Text",
404 'required' => "true",
405 ],
406 'description' => [
407 'type' => "TextArea",
408 'rows' => "8",
409 'cols' => "60",
410 ],
411 ],
412 'civicrm_group' => [
413 'title' => [
414 'type' => "Text",
415 ],
416 ],
417 'civicrm_contribution_page' => [
418 'title' => [
419 'type' => "Text",
420 ],
421 'intro_text' => [
422 'type' => "RichTextEditor",
423 'rows' => "6",
424 'cols' => "50",
425 ],
426 'pay_later_text' => [
427 'type' => "Text",
428 ],
429 'pay_later_receipt' => [
430 'type' => "Text",
431 ],
432 'initial_amount_label' => [
433 'type' => "Text",
434 ],
435 'initial_amount_help_text' => [
436 'type' => "Text",
437 ],
438 'thankyou_title' => [
439 'type' => "Text",
440 ],
441 'thankyou_text' => [
442 'type' => "RichTextEditor",
443 'rows' => "8",
444 'cols' => "60",
445 ],
446 'thankyou_footer' => [
447 'type' => "RichTextEditor",
448 'rows' => "8",
449 'cols' => "60",
450 ],
451 'receipt_from_name' => [
452 'type' => "Text",
453 ],
454 'receipt_text' => [
455 'type' => "TextArea",
456 'rows' => "6",
457 'cols' => "50",
458 ],
459 'footer_text' => [
460 'type' => "RichTextEditor",
461 'rows' => "6",
462 'cols' => "50",
463 ],
464 'frontend_title' => [
465 'type' => "Text",
466 ],
467 ],
468 'civicrm_product' => [
469 'name' => [
470 'type' => "Text",
471 'required' => "true",
472 ],
473 'description' => [
474 'type' => "Text",
475 ],
476 'options' => [
477 'type' => "Text",
478 ],
479 ],
480 'civicrm_payment_processor' => [
481 'title' => [
482 'type' => "Text",
483 ],
484 ],
485 'civicrm_membership_type' => [
486 'name' => [
487 'type' => "Text",
488 'label' => "Name",
489 ],
490 'description' => [
491 'type' => "TextArea",
492 'rows' => "6",
493 'cols' => "50",
494 'label' => "Description",
495 ],
496 ],
497 'civicrm_membership_block' => [
498 'new_title' => [
499 'type' => "Text",
500 ],
501 'new_text' => [
502 'type' => "Text",
503 ],
504 'renewal_title' => [
505 'type' => "Text",
506 ],
507 'renewal_text' => [
508 'type' => "Text",
509 ],
510 ],
511 'civicrm_price_set' => [
512 'title' => [
513 'type' => "Text",
514 'required' => "true",
515 ],
516 'help_pre' => [
517 'type' => "TextArea",
518 'rows' => "4",
519 'cols' => "80",
520 ],
521 'help_post' => [
522 'type' => "TextArea",
523 'rows' => "4",
524 'cols' => "80",
525 ],
526 ],
527 'civicrm_dashboard' => [
528 'label' => [
529 'type' => "Text",
530 ],
531 ],
532 'civicrm_uf_group' => [
533 'title' => [
534 'type' => "Text",
535 'required' => "true",
536 ],
537 'frontend_title' => [
538 'type' => "Text",
539 ],
540 'help_pre' => [
541 'type' => "TextArea",
542 'rows' => "4",
543 'cols' => "80",
544 ],
545 'help_post' => [
546 'type' => "TextArea",
547 'rows' => "4",
548 'cols' => "80",
549 ],
550 'cancel_button_text' => [
551 'type' => "Text",
552 ],
553 'submit_button_text' => [
554 'type' => "Text",
555 ],
556 ],
557 'civicrm_uf_field' => [
558 'help_post' => [
559 'type' => "Text",
560 ],
561 'help_pre' => [
562 'type' => "Text",
563 ],
564 'label' => [
565 'type' => "Text",
566 'required' => "true",
567 ],
568 ],
569 'civicrm_price_field' => [
570 'label' => [
571 'type' => "Text",
572 'required' => "true",
573 ],
574 'help_pre' => [
575 'type' => "TextArea",
576 'rows' => "4",
577 'cols' => "80",
578 ],
579 'help_post' => [
580 'type' => "TextArea",
581 'rows' => "4",
582 'cols' => "80",
583 ],
584 ],
585 'civicrm_price_field_value' => [
586 'label' => [
587 'type' => "Text",
588 ],
589 'description' => [
590 'type' => "TextArea",
591 'rows' => "2",
592 'cols' => "60",
593 ],
594 'help_pre' => [
595 'type' => "TextArea",
596 'rows' => "2",
597 'cols' => "60",
598 ],
599 'help_post' => [
600 'type' => "TextArea",
601 'rows' => "2",
602 'cols' => "60",
603 ],
604 ],
605 'civicrm_pcp_block' => [
606 'link_text' => [
607 'type' => "Text",
608 ],
609 ],
610 'civicrm_event' => [
611 'title' => [
612 'type' => "Text",
613 ],
614 'summary' => [
615 'type' => "TextArea",
616 'rows' => "4",
617 'cols' => "60",
618 ],
619 'description' => [
620 'type' => "RichTextEditor",
621 'rows' => "8",
622 'cols' => "60",
623 ],
624 'registration_link_text' => [
625 'type' => "Text",
626 ],
627 'event_full_text' => [
628 'type' => "TextArea",
629 'rows' => "4",
630 'cols' => "60",
631 ],
632 'fee_label' => [
633 'type' => "Text",
634 ],
635 'intro_text' => [
636 'type' => "RichTextEditor",
637 'rows' => "6",
638 'cols' => "50",
639 ],
640 'footer_text' => [
641 'type' => "RichTextEditor",
642 'rows' => "6",
643 'cols' => "50",
644 ],
645 'confirm_title' => [
646 'type' => "Text",
647 ],
648 'confirm_text' => [
649 'type' => "RichTextEditor",
650 'rows' => "6",
651 'cols' => "50",
652 ],
653 'confirm_footer_text' => [
654 'type' => "RichTextEditor",
655 'rows' => "6",
656 'cols' => "50",
657 ],
658 'confirm_email_text' => [
659 'type' => "TextArea",
660 'rows' => "4",
661 'cols' => "50",
662 ],
663 'confirm_from_name' => [
664 'type' => "Text",
665 ],
666 'thankyou_title' => [
667 'type' => "Text",
668 ],
669 'thankyou_text' => [
670 'type' => "RichTextEditor",
671 'rows' => "6",
672 'cols' => "50",
673 ],
674 'thankyou_footer_text' => [
675 'type' => "RichTextEditor",
676 'rows' => "6",
677 'cols' => "50",
678 ],
679 'pay_later_text' => [
680 'type' => "RichTextEditor",
681 ],
682 'pay_later_receipt' => [
683 'type' => "Text",
684 ],
685 'initial_amount_label' => [
686 'type' => "Text",
687 ],
688 'initial_amount_help_text' => [
689 'type' => "Text",
690 ],
691 'waitlist_text' => [
692 'type' => "TextArea",
693 'rows' => "4",
694 'cols' => "60",
695 ],
696 'approval_req_text' => [
697 'type' => "TextArea",
698 'rows' => "4",
699 'cols' => "60",
700 ],
701 'template_title' => [
702 'type' => "Text",
703 ],
704 ],
705 ];
706 }
707 return $result;
708 }
709
710 }