3 +--------------------------------------------------------------------+
5 +--------------------------------------------------------------------+
6 | Copyright CiviCRM LLC (c) 2004-2020 |
7 +--------------------------------------------------------------------+
8 | This file is a part of CiviCRM. |
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. |
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. |
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 +--------------------------------------------------------------------+
31 * @copyright CiviCRM LLC (c) 2004-2020
33 * Generated from schema_structure.tpl
34 * DO NOT EDIT. Generated by CRM_Core_CodeGen
36 class CRM_Core_I18n_SchemaStructure_5_4_alpha1
{
39 * Get translatable columns.
42 * A table-indexed array of translatable columns.
44 public static function columns() {
45 static $result = NULL;
48 'civicrm_location_type' => [
49 'display_name' => "varchar(64)",
51 'civicrm_option_group' => [
52 'title' => "varchar(255)",
53 'description' => "varchar(255)",
55 'civicrm_relationship_type' => [
56 'label_a_b' => "varchar(64)",
57 'label_b_a' => "varchar(64)",
58 'description' => "varchar(255)",
60 'civicrm_contact_type' => [
61 'label' => "varchar(64)",
62 'description' => "text",
65 'title' => "varchar(255)",
66 'description' => "text",
68 'civicrm_premiums' => [
69 'premiums_intro_title' => "varchar(255)",
70 'premiums_intro_text' => "text",
71 'premiums_nothankyou_label' => "varchar(255)",
73 'civicrm_membership_status' => [
74 'label' => "varchar(128)",
77 'title' => "varchar(255)",
78 'instructions' => "text",
79 'thankyou_title' => "varchar(255)",
80 'thankyou_text' => "text",
82 'civicrm_participant_status_type' => [
83 'label' => "varchar(255)",
85 'civicrm_case_type' => [
86 'title' => "varchar(64)",
87 'description' => "varchar(255)",
89 'civicrm_tell_friend' => [
90 'title' => "varchar(255)",
92 'suggested_message' => "text",
93 'thankyou_title' => "varchar(255)",
94 'thankyou_text' => "text",
96 'civicrm_custom_group' => [
97 'title' => "varchar(64)",
99 'help_post' => "text",
101 'civicrm_custom_field' => [
102 'label' => "varchar(255)",
103 'help_pre' => "text",
104 'help_post' => "text",
106 'civicrm_option_value' => [
107 'label' => "varchar(512)",
108 'description' => "text",
111 'title' => "varchar(64)",
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",
127 'civicrm_product' => [
128 'name' => "varchar(255)",
129 'description' => "text",
132 'civicrm_membership_type' => [
133 'name' => "varchar(128)",
134 'description' => "varchar(255)",
136 'civicrm_membership_block' => [
137 'new_title' => "varchar(255)",
138 'new_text' => "text",
139 'renewal_title' => "varchar(255)",
140 'renewal_text' => "text",
142 'civicrm_price_set' => [
143 'title' => "varchar(255)",
144 'help_pre' => "text",
145 'help_post' => "text",
147 'civicrm_dashboard' => [
148 'label' => "varchar(255)",
150 'civicrm_uf_group' => [
151 'title' => "varchar(64)",
152 'frontend_title' => "varchar(64)",
153 'help_pre' => "text",
154 'help_post' => "text",
155 'cancel_button_text' => "varchar(64)",
156 'submit_button_text' => "varchar(64)",
158 'civicrm_uf_field' => [
159 'help_post' => "text",
160 'help_pre' => "text",
161 'label' => "varchar(255)",
163 'civicrm_price_field' => [
164 'label' => "varchar(255)",
165 'help_pre' => "text",
166 'help_post' => "text",
168 'civicrm_price_field_value' => [
169 'label' => "varchar(255)",
170 'description' => "text",
171 'help_pre' => "text",
172 'help_post' => "text",
174 'civicrm_pcp_block' => [
175 'link_text' => "varchar(255)",
178 'title' => "varchar(255)",
180 'description' => "text",
181 'registration_link_text' => "varchar(255)",
182 'event_full_text' => "text",
183 'fee_label' => "varchar(255)",
184 'intro_text' => "text",
185 'footer_text' => "text",
186 'confirm_title' => "varchar(255)",
187 'confirm_text' => "text",
188 'confirm_footer_text' => "text",
189 'confirm_email_text' => "text",
190 'confirm_from_name' => "varchar(255)",
191 'thankyou_title' => "varchar(255)",
192 'thankyou_text' => "text",
193 'thankyou_footer_text' => "text",
194 'pay_later_text' => "text",
195 'pay_later_receipt' => "text",
196 'initial_amount_label' => "varchar(255)",
197 'initial_amount_help_text' => "text",
198 'waitlist_text' => "text",
199 'approval_req_text' => "text",
200 'template_title' => "varchar(255)",
208 * Get a table indexed array of the indices for translatable fields.
211 * Indices for translatable fields.
213 public static function indices() {
214 static $result = NULL;
217 'civicrm_custom_group' => [
218 'UI_title_extends' => [
219 'name' => 'UI_title_extends',
227 'civicrm_custom_field' => [
228 'UI_label_custom_group_id' => [
229 'name' => 'UI_label_custom_group_id',
239 'name' => 'UI_title',
252 * Get tables with translatable fields.
255 * Array of names of tables with fields that can be translated.
257 public static function tables() {
258 static $result = NULL;
260 $result = array_keys(self
::columns());
266 * Get a list of widgets for editing translatable fields.
269 * Array of the widgets for editing translatable fields.
271 public static function widgets() {
272 static $result = NULL;
275 'civicrm_location_type' => [
280 'civicrm_option_group' => [
288 'civicrm_relationship_type' => [
299 'civicrm_contact_type' => [
304 'type' => "TextArea",
314 'type' => "TextArea",
319 'civicrm_premiums' => [
320 'premiums_intro_title' => [
323 'premiums_intro_text' => [
326 'premiums_nothankyou_label' => [
330 'civicrm_membership_status' => [
335 'civicrm_survey' => [
338 'required' => "true",
341 'type' => "TextArea",
345 'thankyou_title' => [
349 'type' => "TextArea",
354 'civicrm_participant_status_type' => [
359 'civicrm_case_type' => [
362 'required' => "true",
368 'civicrm_tell_friend' => [
375 'suggested_message' => [
378 'thankyou_title' => [
385 'civicrm_custom_group' => [
388 'required' => "true",
391 'type' => "TextArea",
396 'type' => "TextArea",
401 'civicrm_custom_field' => [
404 'required' => "true",
413 'civicrm_option_value' => [
416 'required' => "true",
419 'type' => "TextArea",
429 'civicrm_contribution_page' => [
434 'type' => "RichTextEditor",
438 'pay_later_text' => [
441 'pay_later_receipt' => [
444 'initial_amount_label' => [
447 'initial_amount_help_text' => [
450 'thankyou_title' => [
454 'type' => "RichTextEditor",
458 'thankyou_footer' => [
459 'type' => "RichTextEditor",
463 'receipt_from_name' => [
467 'type' => "TextArea",
472 'type' => "RichTextEditor",
477 'civicrm_product' => [
480 'required' => "true",
489 'civicrm_membership_type' => [
495 'type' => "TextArea",
498 'label' => "Description",
501 'civicrm_membership_block' => [
515 'civicrm_price_set' => [
518 'required' => "true",
521 'type' => "TextArea",
526 'type' => "TextArea",
531 'civicrm_dashboard' => [
536 'civicrm_uf_group' => [
539 'required' => "true",
541 'frontend_title' => [
545 'type' => "TextArea",
550 'type' => "TextArea",
554 'cancel_button_text' => [
557 'submit_button_text' => [
561 'civicrm_uf_field' => [
570 'required' => "true",
573 'civicrm_price_field' => [
576 'required' => "true",
579 'type' => "TextArea",
584 'type' => "TextArea",
589 'civicrm_price_field_value' => [
594 'type' => "TextArea",
599 'type' => "TextArea",
604 'type' => "TextArea",
609 'civicrm_pcp_block' => [
619 'type' => "TextArea",
624 'type' => "TextArea",
628 'registration_link_text' => [
631 'event_full_text' => [
632 'type' => "TextArea",
640 'type' => "TextArea",
645 'type' => "TextArea",
653 'type' => "TextArea",
657 'confirm_footer_text' => [
658 'type' => "TextArea",
662 'confirm_email_text' => [
663 'type' => "TextArea",
667 'confirm_from_name' => [
670 'thankyou_title' => [
674 'type' => "TextArea",
678 'thankyou_footer_text' => [
679 'type' => "TextArea",
683 'pay_later_text' => [
686 'pay_later_receipt' => [
689 'initial_amount_label' => [
692 'initial_amount_help_text' => [
696 'type' => "TextArea",
700 'approval_req_text' => [
701 'type' => "TextArea",
705 'template_title' => [