@@ -55,17 +55,17 @@ public function __construct() {
55
55
'filters ' =>
56
56
array (
57
57
'batch_id ' => array (
58
- 'title ' => 'Batch ' ,
58
+ 'title ' => ts ( 'Batch ' ) ,
59
59
'operatorType ' => CRM_Report_Form::OP_MULTISELECT ,
60
60
'options ' => CRM_Civigiftaid_Utils_Contribution::getBatchIdTitle ('id desc ' ),
61
61
),
62
62
),
63
63
'fields ' => array (
64
64
'batch_id ' => array (
65
65
'name ' => 'batch_id ' ,
66
- 'title ' => 'Batch ID ' ,
66
+ 'title ' => ts ( 'Batch ID ' ) ,
67
67
'no_display ' => TRUE ,
68
- 'required ' => TRUE
68
+ 'required ' => TRUE ,
69
69
)
70
70
)
71
71
),
@@ -75,19 +75,19 @@ public function __construct() {
75
75
'fields ' => array (
76
76
'prefix_id ' => array (
77
77
'name ' => 'prefix_id ' ,
78
- 'title ' => 'Title ' ,
78
+ 'title ' => ts ( 'Title ' ) ,
79
79
'no_display ' => FALSE ,
80
80
'required ' => TRUE ,
81
81
),
82
82
'first_name ' => array (
83
83
'name ' => 'first_name ' ,
84
- 'title ' => 'First Name ' ,
84
+ 'title ' => ts ( 'First Name ' ) ,
85
85
'no_display ' => FALSE ,
86
86
'required ' => TRUE ,
87
87
),
88
88
'last_name ' => array (
89
89
'name ' => 'last_name ' ,
90
- 'title ' => 'Last Name ' ,
90
+ 'title ' => ts ( 'Last Name ' ) ,
91
91
'no_display ' => FALSE ,
92
92
'required ' => TRUE ,
93
93
),
@@ -99,19 +99,17 @@ public function __construct() {
99
99
'fields ' => array (
100
100
'contribution_id ' => array (
101
101
'name ' => 'id ' ,
102
- 'title ' => 'Payment No ' ,
103
- 'no_display ' => FALSE ,
104
- 'required ' => TRUE ,
102
+ 'title ' => ts ('Payment No ' ),
105
103
),
106
104
'contact_id ' => array (
107
105
'name ' => 'contact_id ' ,
108
- 'title ' => 'Donor Name ' ,
106
+ 'title ' => ts ( 'Donor Name ' ) ,
109
107
'no_display ' => FALSE ,
110
- 'required ' => FALSE ,
108
+ 'required ' => TRUE ,
111
109
),
112
110
'receive_date ' => array (
113
111
'name ' => 'receive_date ' ,
114
- 'title ' => ' Contribution Date ' ,
112
+ 'title ' => ts ( ' Donation Date ') ,
115
113
'no_display ' => FALSE ,
116
114
'required ' => TRUE ,
117
115
),
@@ -123,9 +121,9 @@ public function __construct() {
123
121
'fields ' => array (
124
122
'financial_type_id ' => array (
125
123
'name ' => 'id ' ,
126
- 'title ' => 'Financial Type No ' ,
124
+ 'title ' => ts ( 'Financial Type No ' ) ,
127
125
'no_display ' => TRUE ,
128
- 'required ' => TRUE ,
126
+ 'required ' => FALSE ,
129
127
),
130
128
),
131
129
),
@@ -135,11 +133,30 @@ public function __construct() {
135
133
'grouping ' => 'contact-fields ' ,
136
134
'fields ' =>
137
135
array (
138
- 'street_address ' => NULL ,
139
- 'city ' => NULL ,
140
- 'state_province_id ' => array ('title ' => ts ('State/Province ' ),),
141
- 'country_id ' => array ('title ' => ts ('Country ' ),),
142
- 'postal_code ' => NULL ,
136
+ 'street_address ' => array (
137
+ 'name ' => 'street_address ' ,
138
+ 'title ' => ts ('Street Address ' ),
139
+ 'no_display ' => FALSE ,
140
+ 'required ' => TRUE ,
141
+ ),
142
+ 'city ' => array (
143
+ 'name ' => 'city ' ,
144
+ 'title ' => ts ('City ' ),
145
+ ),
146
+ 'state_province_id ' => array (
147
+ 'name ' => 'state_province_id ' ,
148
+ 'title ' => ts ('State/Province ' ),
149
+ ),
150
+ 'country_id ' => array (
151
+ 'name ' => 'country_id ' ,
152
+ 'title ' => ts ('Country ' ),
153
+ ),
154
+ 'postal_code ' => array (
155
+ 'name ' => 'postal_code ' ,
156
+ 'title ' => ts ('Postcode ' ),
157
+ 'no_display ' => FALSE ,
158
+ 'required ' => TRUE ,
159
+ ),
143
160
),
144
161
),
145
162
'civicrm_line_item ' =>
@@ -148,35 +165,27 @@ public function __construct() {
148
165
'fields ' => array (
149
166
'id ' => array (
150
167
'name ' => 'id ' ,
151
- 'title ' => 'Line Item No ' ,
152
- 'no_display ' => FALSE ,
153
- 'required ' => TRUE ,
168
+ 'title ' => ts ('Line Item No ' ),
154
169
),
155
170
'amount ' => array (
156
171
'name ' => 'line_total ' ,
157
- 'title ' => ' Line Total ' ,
172
+ 'title ' => ts ( ' Amount ' ) ,
158
173
'no_display ' => FALSE ,
159
174
'required ' => TRUE ,
160
175
'type ' => CRM_Utils_Type::T_MONEY
161
176
),
162
177
'quantity ' => array (
163
178
'name ' => 'qty ' ,
164
- 'title ' => 'Qty ' ,
165
- 'no_display ' => FALSE ,
166
- 'required ' => TRUE ,
179
+ 'title ' => ts ('Quantity ' ),
167
180
'type ' => CRM_Utils_Type::T_INT
168
181
),
169
182
'entity_table ' => array (
170
183
'name ' => 'entity_table ' ,
171
- 'title ' => 'Item ' ,
172
- 'no_display ' => FALSE ,
173
- 'required ' => TRUE ,
184
+ 'title ' => ts ('Item ' ),
174
185
),
175
186
'label ' => array (
176
187
'name ' => 'label ' ,
177
- 'title ' => 'Description ' ,
178
- 'no_display ' => FALSE ,
179
- 'required ' => TRUE ,
188
+ 'title ' => ts ('Description ' ),
180
189
),
181
190
),
182
191
)
@@ -471,15 +480,15 @@ private function reorderColumns() {
471
480
'donor name ' ,
472
481
'item ' ,
473
482
'description ' ,
474
- 'contribution date ' ,
483
+ 'donation date ' ,
475
484
'street address ' ,
476
485
'city ' ,
477
486
'county ' ,
478
487
'country ' ,
479
- 'postal code ' ,
488
+ 'postcode ' ,
480
489
'eligible for gift aid? ' ,
481
- 'qty ' ,
482
- 'line total ' ,
490
+ 'quantity ' ,
491
+ 'amount ' ,
483
492
'gift aid amount ' ,
484
493
'batch name '
485
494
);
0 commit comments