Merge pull request #15510 from civicrm/5.19
[civicrm-core.git] / CRM / Core / I18n / SchemaStructure_5_13_alpha1.php
1 <?php
2 /*
3 +--------------------------------------------------------------------+
4 | CiviCRM version 5 |
5 +--------------------------------------------------------------------+
6 | Copyright CiviCRM LLC (c) 2004-2019 |
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-2019
32 *
33 * Generated from schema_structure.tpl
34 * DO NOT EDIT. Generated by CRM_Core_CodeGen
35 */
36 class CRM_Core_I18n_SchemaStructure_5_13_alpha1 {
37
38 /**
39 * Get translatable columns.
40 *
41 * @return array
42 * A table-indexed array of translatable columns.
43 */
44 public static function &columns() {
45 static $result = NULL;
46 if (!$result) {
47 $result = [
48 'civicrm_location_type' => [
49 'display_name' => "varchar(64)",
50 ],
51 'civicrm_option_group' => [
52 'title' => "varchar(255)",
53 'description' => "varchar(255)",
54 ],
55 'civicrm_relationship_type' => [
56 'label_a_b' => "varchar(64)",
57 'label_b_a' => "varchar(64)",
58 'description' => "varchar(255)",
59 ],
60 'civicrm_contact_type' => [
61 'label' => "varchar(64)",
62 'description' => "text",
63 ],
64 'civicrm_batch' => [
65 'title' => "varchar(255)",
66 'description' => "text",
67 ],
68 'civicrm_premiums' => [
69 'premiums_intro_title' => "varchar(255)",
70 'premiums_intro_text' => "text",
71 'premiums_nothankyou_label' => "varchar(255)",
72 ],
73 'civicrm_membership_status' => [
74 'label' => "varchar(128)",
75 ],
76 'civicrm_survey' => [
77 'title' => "varchar(255)",
78 'instructions' => "text",
79 'thankyou_title' => "varchar(255)",
80 'thankyou_text' => "text",
81 ],
82 'civicrm_participant_status_type' => [
83 'label' => "varchar(255)",
84 ],
85 'civicrm_case_type' => [
86 'title' => "varchar(64)",
87 'description' => "varchar(255)",
88 ],
89 'civicrm_tell_friend' => [
90 'title' => "varchar(255)",
91 'intro' => "text",
92 'suggested_message' => "text",
93 'thankyou_title' => "varchar(255)",
94 'thankyou_text' => "text",
95 ],
96 'civicrm_custom_group' => [
97 'title' => "varchar(64)",
98 'help_pre' => "text",
99 'help_post' => "text",
100 ],
101 'civicrm_custom_field' => [
102 'label' => "varchar(255)",
103 'help_pre' => "text",
104 'help_post' => "text",
105 ],
106 'civicrm_option_value' => [
107 'label' => "varchar(512)",
108 'description' => "text",
109 ],
110 'civicrm_group' => [
111 'title' => "varchar(64)",
112 ],
113 'civicrm_contribution_page' => [
114 'title' => "varchar(255)",
115 'intro_text' => "text",
116 'pay_later_text' => "text",
117 'pay_later_receipt' => "text",
118 'initial_amount_label' => "varchar(255)",
119 'initial_amount_help_text' => "text",
120 'thankyou_title' => "varchar(255)",
121 'thankyou_text' => "text",
122 'thankyou_footer' => "text",
123 'receipt_from_name' => "varchar(255)",
124 'receipt_text' => "text",
125 'footer_text' => "text",
126 ],
127 'civicrm_product' => [
128 'name' => "varchar(255)",
129 'description' => "text",
130 'options' => "text",
131 ],
132 'civicrm_payment_processor' => [
133 'title' => "varchar(127)",
134 ],
135 'civicrm_membership_type' => [
136 'name' => "varchar(128)",
137 'description' => "varchar(255)",
138 ],
139 'civicrm_membership_block' => [
140 'new_title' => "varchar(255)",
141 'new_text' => "text",
142 'renewal_title' => "varchar(255)",
143 'renewal_text' => "text",
144 ],
145 'civicrm_price_set' => [
146 'title' => "varchar(255)",
147 'help_pre' => "text",
148 'help_post' => "text",
149 ],
150 'civicrm_dashboard' => [
151 'label' => "varchar(255)",
152 ],
153 'civicrm_uf_group' => [
154 'title' => "varchar(64)",
155 'frontend_title' => "varchar(64)",
156 'help_pre' => "text",
157 'help_post' => "text",
158 'cancel_button_text' => "varchar(64)",
159 'submit_button_text' => "varchar(64)",
160 ],
161 'civicrm_uf_field' => [
162 'help_post' => "text",
163 'help_pre' => "text",
164 'label' => "varchar(255)",
165 ],
166 'civicrm_price_field' => [
167 'label' => "varchar(255)",
168 'help_pre' => "text",
169 'help_post' => "text",
170 ],
171 'civicrm_price_field_value' => [
172 'label' => "varchar(255)",
173 'description' => "text",
174 'help_pre' => "text",
175 'help_post' => "text",
176 ],
177 'civicrm_pcp_block' => [
178 'link_text' => "varchar(255)",
179 ],
180 'civicrm_event' => [
181 'title' => "varchar(255)",
182 'summary' => "text",
183 'description' => "text",
184 'registration_link_text' => "varchar(255)",
185 'event_full_text' => "text",
186 'fee_label' => "varchar(255)",
187 'intro_text' => "text",
188 'footer_text' => "text",
189 'confirm_title' => "varchar(255)",
190 'confirm_text' => "text",
191 'confirm_footer_text' => "text",
192 'confirm_email_text' => "text",
193 'confirm_from_name' => "varchar(255)",
194 'thankyou_title' => "varchar(255)",
195 'thankyou_text' => "text",
196 'thankyou_footer_text' => "text",
197 'pay_later_text' => "text",
198 'pay_later_receipt' => "text",
199 'initial_amount_label' => "varchar(255)",
200 'initial_amount_help_text' => "text",
201 'waitlist_text' => "text",
202 'approval_req_text' => "text",
203 'template_title' => "varchar(255)",
204 ],
205 ];
206 }
207 return $result;
208 }
209
210 /**
211 * Get a table indexed array of the indices for translatable fields.
212 *
213 * @return array
214 * Indices for translatable fields.
215 */
216 public static function &indices() {
217 static $result = NULL;
218 if (!$result) {
219 $result = [
220 'civicrm_custom_group' => [
221 'UI_title_extends' => [
222 'name' => 'UI_title_extends',
223 'field' => [
224 'title',
225 'extends',
226 ],
227 'unique' => 1,
228 ],
229 ],
230 'civicrm_custom_field' => [
231 'UI_label_custom_group_id' => [
232 'name' => 'UI_label_custom_group_id',
233 'field' => [
234 'label',
235 'custom_group_id',
236 ],
237 'unique' => 1,
238 ],
239 ],
240 'civicrm_group' => [
241 'UI_title' => [
242 'name' => 'UI_title',
243 'field' => [
244 'title',
245 ],
246 'unique' => 1,
247 ],
248 ],
249 ];
250 }
251 return $result;
252 }
253
254 /**
255 * Get tables with translatable fields.
256 *
257 * @return array
258 * Array of names of tables with fields that can be translated.
259 */
260 public static function &tables() {
261 static $result = NULL;
262 if (!$result) {
263 $result = array_keys(self::columns());
264 }
265 return $result;
266 }
267
268 /**
269 * Get a list of widgets for editing translatable fields.
270 *
271 * @return array
272 * Array of the widgets for editing translatable fields.
273 */
274 public static function &widgets() {
275 static $result = NULL;
276 if (!$result) {
277 $result = [
278 'civicrm_location_type' => [
279 'display_name' => [
280 'type' => "Text",
281 ],
282 ],
283 'civicrm_option_group' => [
284 'title' => [
285 'type' => "Text",
286 ],
287 'description' => [
288 'type' => "Text",
289 ],
290 ],
291 'civicrm_relationship_type' => [
292 'label_a_b' => [
293 'type' => "Text",
294 ],
295 'label_b_a' => [
296 'type' => "Text",
297 ],
298 'description' => [
299 'type' => "Text",
300 ],
301 ],
302 'civicrm_contact_type' => [
303 'label' => [
304 'type' => "Text",
305 ],
306 'description' => [
307 'type' => "TextArea",
308 'rows' => "2",
309 'cols' => "60",
310 ],
311 ],
312 'civicrm_batch' => [
313 'title' => [
314 'type' => "Text",
315 ],
316 'description' => [
317 'type' => "TextArea",
318 'rows' => "4",
319 'cols' => "80",
320 ],
321 ],
322 'civicrm_premiums' => [
323 'premiums_intro_title' => [
324 'type' => "Text",
325 ],
326 'premiums_intro_text' => [
327 'type' => "Text",
328 ],
329 'premiums_nothankyou_label' => [
330 'type' => "Text",
331 ],
332 ],
333 'civicrm_membership_status' => [
334 'label' => [
335 'type' => "Text",
336 ],
337 ],
338 'civicrm_survey' => [
339 'title' => [
340 'type' => "Text",
341 'required' => "true",
342 ],
343 'instructions' => [
344 'type' => "TextArea",
345 'rows' => "20",
346 'cols' => "80",
347 ],
348 'thankyou_title' => [
349 'type' => "Text",
350 ],
351 'thankyou_text' => [
352 'type' => "TextArea",
353 'rows' => "8",
354 'cols' => "60",
355 ],
356 ],
357 'civicrm_participant_status_type' => [
358 'label' => [
359 'type' => "Text",
360 ],
361 ],
362 'civicrm_case_type' => [
363 'title' => [
364 'type' => "Text",
365 'required' => "true",
366 ],
367 'description' => [
368 'type' => "Text",
369 ],
370 ],
371 'civicrm_tell_friend' => [
372 'title' => [
373 'type' => "Text",
374 ],
375 'intro' => [
376 'type' => "Text",
377 ],
378 'suggested_message' => [
379 'type' => "Text",
380 ],
381 'thankyou_title' => [
382 'type' => "Text",
383 ],
384 'thankyou_text' => [
385 'type' => "Text",
386 ],
387 ],
388 'civicrm_custom_group' => [
389 'title' => [
390 'type' => "Text",
391 'required' => "true",
392 ],
393 'help_pre' => [
394 'type' => "TextArea",
395 'rows' => "4",
396 'cols' => "80",
397 ],
398 'help_post' => [
399 'type' => "TextArea",
400 'rows' => "4",
401 'cols' => "80",
402 ],
403 ],
404 'civicrm_custom_field' => [
405 'label' => [
406 'type' => "Text",
407 'required' => "true",
408 ],
409 'help_pre' => [
410 'type' => "Text",
411 ],
412 'help_post' => [
413 'type' => "Text",
414 ],
415 ],
416 'civicrm_option_value' => [
417 'label' => [
418 'type' => "Text",
419 'required' => "true",
420 ],
421 'description' => [
422 'type' => "TextArea",
423 'rows' => "8",
424 'cols' => "60",
425 ],
426 ],
427 'civicrm_group' => [
428 'title' => [
429 'type' => "Text",
430 ],
431 ],
432 'civicrm_contribution_page' => [
433 'title' => [
434 'type' => "Text",
435 ],
436 'intro_text' => [
437 'type' => "RichTextEditor",
438 'rows' => "6",
439 'cols' => "50",
440 ],
441 'pay_later_text' => [
442 'type' => "Text",
443 ],
444 'pay_later_receipt' => [
445 'type' => "Text",
446 ],
447 'initial_amount_label' => [
448 'type' => "Text",
449 ],
450 'initial_amount_help_text' => [
451 'type' => "Text",
452 ],
453 'thankyou_title' => [
454 'type' => "Text",
455 ],
456 'thankyou_text' => [
457 'type' => "RichTextEditor",
458 'rows' => "8",
459 'cols' => "60",
460 ],
461 'thankyou_footer' => [
462 'type' => "RichTextEditor",
463 'rows' => "8",
464 'cols' => "60",
465 ],
466 'receipt_from_name' => [
467 'type' => "Text",
468 ],
469 'receipt_text' => [
470 'type' => "TextArea",
471 'rows' => "6",
472 'cols' => "50",
473 ],
474 'footer_text' => [
475 'type' => "RichTextEditor",
476 'rows' => "6",
477 'cols' => "50",
478 ],
479 ],
480 'civicrm_product' => [
481 'name' => [
482 'type' => "Text",
483 'required' => "true",
484 ],
485 'description' => [
486 'type' => "Text",
487 ],
488 'options' => [
489 'type' => "Text",
490 ],
491 ],
492 'civicrm_payment_processor' => [
493 'title' => [
494 'type' => "Text",
495 ],
496 ],
497 'civicrm_membership_type' => [
498 'name' => [
499 'type' => "Text",
500 'label' => "Name",
501 ],
502 'description' => [
503 'type' => "TextArea",
504 'rows' => "6",
505 'cols' => "50",
506 'label' => "Description",
507 ],
508 ],
509 'civicrm_membership_block' => [
510 'new_title' => [
511 'type' => "Text",
512 ],
513 'new_text' => [
514 'type' => "Text",
515 ],
516 'renewal_title' => [
517 'type' => "Text",
518 ],
519 'renewal_text' => [
520 'type' => "Text",
521 ],
522 ],
523 'civicrm_price_set' => [
524 'title' => [
525 'type' => "Text",
526 'required' => "true",
527 ],
528 'help_pre' => [
529 'type' => "TextArea",
530 'rows' => "4",
531 'cols' => "80",
532 ],
533 'help_post' => [
534 'type' => "TextArea",
535 'rows' => "4",
536 'cols' => "80",
537 ],
538 ],
539 'civicrm_dashboard' => [
540 'label' => [
541 'type' => "Text",
542 ],
543 ],
544 'civicrm_uf_group' => [
545 'title' => [
546 'type' => "Text",
547 'required' => "true",
548 ],
549 'frontend_title' => [
550 'type' => "Text",
551 ],
552 'help_pre' => [
553 'type' => "TextArea",
554 'rows' => "4",
555 'cols' => "80",
556 ],
557 'help_post' => [
558 'type' => "TextArea",
559 'rows' => "4",
560 'cols' => "80",
561 ],
562 'cancel_button_text' => [
563 'type' => "Text",
564 ],
565 'submit_button_text' => [
566 'type' => "Text",
567 ],
568 ],
569 'civicrm_uf_field' => [
570 'help_post' => [
571 'type' => "Text",
572 ],
573 'help_pre' => [
574 'type' => "Text",
575 ],
576 'label' => [
577 'type' => "Text",
578 'required' => "true",
579 ],
580 ],
581 'civicrm_price_field' => [
582 'label' => [
583 'type' => "Text",
584 'required' => "true",
585 ],
586 'help_pre' => [
587 'type' => "TextArea",
588 'rows' => "4",
589 'cols' => "80",
590 ],
591 'help_post' => [
592 'type' => "TextArea",
593 'rows' => "4",
594 'cols' => "80",
595 ],
596 ],
597 'civicrm_price_field_value' => [
598 'label' => [
599 'type' => "Text",
600 ],
601 'description' => [
602 'type' => "TextArea",
603 'rows' => "2",
604 'cols' => "60",
605 ],
606 'help_pre' => [
607 'type' => "TextArea",
608 'rows' => "2",
609 'cols' => "60",
610 ],
611 'help_post' => [
612 'type' => "TextArea",
613 'rows' => "2",
614 'cols' => "60",
615 ],
616 ],
617 'civicrm_pcp_block' => [
618 'link_text' => [
619 'type' => "Text",
620 ],
621 ],
622 'civicrm_event' => [
623 'title' => [
624 'type' => "Text",
625 ],
626 'summary' => [
627 'type' => "TextArea",
628 'rows' => "4",
629 'cols' => "60",
630 ],
631 'description' => [
632 'type' => "TextArea",
633 'rows' => "8",
634 'cols' => "60",
635 ],
636 'registration_link_text' => [
637 'type' => "Text",
638 ],
639 'event_full_text' => [
640 'type' => "TextArea",
641 'rows' => "4",
642 'cols' => "60",
643 ],
644 'fee_label' => [
645 'type' => "Text",
646 ],
647 'intro_text' => [
648 'type' => "TextArea",
649 'rows' => "6",
650 'cols' => "50",
651 ],
652 'footer_text' => [
653 'type' => "TextArea",
654 'rows' => "6",
655 'cols' => "50",
656 ],
657 'confirm_title' => [
658 'type' => "Text",
659 ],
660 'confirm_text' => [
661 'type' => "TextArea",
662 'rows' => "6",
663 'cols' => "50",
664 ],
665 'confirm_footer_text' => [
666 'type' => "TextArea",
667 'rows' => "6",
668 'cols' => "50",
669 ],
670 'confirm_email_text' => [
671 'type' => "TextArea",
672 'rows' => "4",
673 'cols' => "50",
674 ],
675 'confirm_from_name' => [
676 'type' => "Text",
677 ],
678 'thankyou_title' => [
679 'type' => "Text",
680 ],
681 'thankyou_text' => [
682 'type' => "TextArea",
683 'rows' => "6",
684 'cols' => "50",
685 ],
686 'thankyou_footer_text' => [
687 'type' => "TextArea",
688 'rows' => "6",
689 'cols' => "50",
690 ],
691 'pay_later_text' => [
692 'type' => "Text",
693 ],
694 'pay_later_receipt' => [
695 'type' => "Text",
696 ],
697 'initial_amount_label' => [
698 'type' => "Text",
699 ],
700 'initial_amount_help_text' => [
701 'type' => "Text",
702 ],
703 'waitlist_text' => [
704 'type' => "TextArea",
705 'rows' => "4",
706 'cols' => "60",
707 ],
708 'approval_req_text' => [
709 'type' => "TextArea",
710 'rows' => "4",
711 'cols' => "60",
712 ],
713 'template_title' => [
714 'type' => "Text",
715 ],
716 ],
717 ];
718 }
719 return $result;
720 }
721
722 }