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