3 +--------------------------------------------------------------------+
5 +--------------------------------------------------------------------+
6 | Copyright CiviCRM LLC (c) 2004-2019 |
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-2019
33 * Generated from schema_structure.tpl
34 * DO NOT EDIT. Generated by CRM_Core_CodeGen
36 class CRM_Core_I18n_SchemaStructure_5_13_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_payment_processor' => [
133 'title' => "varchar(127)",
135 'civicrm_membership_type' => [
136 'name' => "varchar(128)",
137 'description' => "varchar(255)",
139 'civicrm_membership_block' => [
140 'new_title' => "varchar(255)",
141 'new_text' => "text",
142 'renewal_title' => "varchar(255)",
143 'renewal_text' => "text",
145 'civicrm_price_set' => [
146 'title' => "varchar(255)",
147 'help_pre' => "text",
148 'help_post' => "text",
150 'civicrm_dashboard' => [
151 'label' => "varchar(255)",
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)",
161 'civicrm_uf_field' => [
162 'help_post' => "text",
163 'help_pre' => "text",
164 'label' => "varchar(255)",
166 'civicrm_price_field' => [
167 'label' => "varchar(255)",
168 'help_pre' => "text",
169 'help_post' => "text",
171 'civicrm_price_field_value' => [
172 'label' => "varchar(255)",
173 'description' => "text",
174 'help_pre' => "text",
175 'help_post' => "text",
177 'civicrm_pcp_block' => [
178 'link_text' => "varchar(255)",
181 'title' => "varchar(255)",
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)",
211 * Get a table indexed array of the indices for translatable fields.
214 * Indices for translatable fields.
216 public static function &indices() {
217 static $result = NULL;
220 'civicrm_custom_group' => [
221 'UI_title_extends' => [
222 'name' => 'UI_title_extends',
230 'civicrm_custom_field' => [
231 'UI_label_custom_group_id' => [
232 'name' => 'UI_label_custom_group_id',
242 'name' => 'UI_title',
255 * Get tables with translatable fields.
258 * Array of names of tables with fields that can be translated.
260 public static function &tables() {
261 static $result = NULL;
263 $result = array_keys(self
::columns());
269 * Get a list of widgets for editing translatable fields.
272 * Array of the widgets for editing translatable fields.
274 public static function &widgets() {
275 static $result = NULL;
278 'civicrm_location_type' => [
283 'civicrm_option_group' => [
291 'civicrm_relationship_type' => [
302 'civicrm_contact_type' => [
307 'type' => "TextArea",
317 'type' => "TextArea",
322 'civicrm_premiums' => [
323 'premiums_intro_title' => [
326 'premiums_intro_text' => [
329 'premiums_nothankyou_label' => [
333 'civicrm_membership_status' => [
338 'civicrm_survey' => [
341 'required' => "true",
344 'type' => "TextArea",
348 'thankyou_title' => [
352 'type' => "TextArea",
357 'civicrm_participant_status_type' => [
362 'civicrm_case_type' => [
365 'required' => "true",
371 'civicrm_tell_friend' => [
378 'suggested_message' => [
381 'thankyou_title' => [
388 'civicrm_custom_group' => [
391 'required' => "true",
394 'type' => "TextArea",
399 'type' => "TextArea",
404 'civicrm_custom_field' => [
407 'required' => "true",
416 'civicrm_option_value' => [
419 'required' => "true",
422 'type' => "TextArea",
432 'civicrm_contribution_page' => [
437 'type' => "RichTextEditor",
441 'pay_later_text' => [
444 'pay_later_receipt' => [
447 'initial_amount_label' => [
450 'initial_amount_help_text' => [
453 'thankyou_title' => [
457 'type' => "RichTextEditor",
461 'thankyou_footer' => [
462 'type' => "RichTextEditor",
466 'receipt_from_name' => [
470 'type' => "TextArea",
475 'type' => "RichTextEditor",
480 'civicrm_product' => [
483 'required' => "true",
492 'civicrm_payment_processor' => [
497 'civicrm_membership_type' => [
503 'type' => "TextArea",
506 'label' => "Description",
509 'civicrm_membership_block' => [
523 'civicrm_price_set' => [
526 'required' => "true",
529 'type' => "TextArea",
534 'type' => "TextArea",
539 'civicrm_dashboard' => [
544 'civicrm_uf_group' => [
547 'required' => "true",
549 'frontend_title' => [
553 'type' => "TextArea",
558 'type' => "TextArea",
562 'cancel_button_text' => [
565 'submit_button_text' => [
569 'civicrm_uf_field' => [
578 'required' => "true",
581 'civicrm_price_field' => [
584 'required' => "true",
587 'type' => "TextArea",
592 'type' => "TextArea",
597 'civicrm_price_field_value' => [
602 'type' => "TextArea",
607 'type' => "TextArea",
612 'type' => "TextArea",
617 'civicrm_pcp_block' => [
627 'type' => "TextArea",
632 'type' => "TextArea",
636 'registration_link_text' => [
639 'event_full_text' => [
640 'type' => "TextArea",
648 'type' => "TextArea",
653 'type' => "TextArea",
661 'type' => "TextArea",
665 'confirm_footer_text' => [
666 'type' => "TextArea",
670 'confirm_email_text' => [
671 'type' => "TextArea",
675 'confirm_from_name' => [
678 'thankyou_title' => [
682 'type' => "TextArea",
686 'thankyou_footer_text' => [
687 'type' => "TextArea",
691 'pay_later_text' => [
694 'pay_later_receipt' => [
697 'initial_amount_label' => [
700 'initial_amount_help_text' => [
704 'type' => "TextArea",
708 'approval_req_text' => [
709 'type' => "TextArea",
713 'template_title' => [