Index: trunk/extensions/DonationInterface/gateway_forms/TwoColumnLetter2.php |
— | — | @@ -41,7 +41,7 @@ |
42 | 42 | // add noscript tags for javascript disabled browsers |
43 | 43 | $form .= $this->getNoScript(); |
44 | 44 | |
45 | | - // $form .= Xml::tags( 'h2', array( 'id' => 'donate-head' ), wfMsg( 'payflowpro_gateway-make-your-donation' )); |
| 45 | + // $form .= Xml::tags( 'h2', array( 'id' => 'donate-head' ), wfMsg( 'donate_interface-make-your-donation' )); |
46 | 46 | |
47 | 47 | // provide a place at the top of the form for displaying general messages |
48 | 48 | if ( $this->form_errors['general'] ) { |
— | — | @@ -90,8 +90,8 @@ |
91 | 91 | if ( !$this->paypal ) { |
92 | 92 | // PayPal button |
93 | 93 | $form .= '<tr>'; |
94 | | - $form .= '<td style="text-align:center;" colspan="2"><big><b>' . wfMsg( 'payflowpro_gateway-paypal-button' ) . '</b></big><br/><a href="#" onclick="document.payment.PaypalRedirect.value=1;document.payment.submit();"><img src="' . $scriptPath . '/paypal.png"/></a><br/>' . |
95 | | - '— ' . wfMsg( 'payflowpro_gateway-or' ) . ' —<br/><big><b>' . wfMsg( 'payflowpro_gateway-donate-wikipedia' ) . '</b></big></td>'; |
| 94 | + $form .= '<td style="text-align:center;" colspan="2"><big><b>' . wfMsg( 'donate_interface-paypal-button' ) . '</b></big><br/><a href="#" onclick="document.payment.PaypalRedirect.value=1;document.payment.submit();"><img src="' . $scriptPath . '/paypal.png"/></a><br/>' . |
| 95 | + '— ' . wfMsg( 'donate_interface-or' ) . ' —<br/><big><b>' . wfMsg( 'donate_interface-donate-wikipedia' ) . '</b></big></td>'; |
96 | 96 | $form .= '</tr>'; |
97 | 97 | } |
98 | 98 | |
— | — | @@ -148,7 +148,7 @@ |
149 | 149 | $comment_opt_value = ( $wgRequest->wasPosted() ) ? $this->form_data[ 'comment-option' ] : true; |
150 | 150 | $form .= '<tr>'; |
151 | 151 | $form .= '<td class="check-option" colspan="2">' . Xml::check( 'comment-option', $comment_opt_value ); |
152 | | - $form .= ' ' . Xml::label( wfMsg( 'payflowpro_gateway-anon-message' ), 'comment-option' ) . '</td>'; |
| 152 | + $form .= ' ' . Xml::label( wfMsg( 'donate_interface-anon-message' ), 'comment-option' ) . '</td>'; |
153 | 153 | $form .= '</tr>'; |
154 | 154 | |
155 | 155 | // email agreement |
— | — | @@ -163,12 +163,12 @@ |
164 | 164 | $form .= Xml::openElement( 'div', array( 'id' => 'mw-donate-submit-button' ) ); |
165 | 165 | if ( $this->paypal ) { |
166 | 166 | $form .= Html::hidden( 'PaypalRedirect', 0 ); |
167 | | - $form .= Xml::element( 'input', array( 'class' => 'button-plain', 'value' => wfMsg( 'payflowpro_gateway-paypal-button' ), 'onclick' => 'document.payment.PaypalRedirect.value=1;return true;', 'type' => 'submit' ) ); |
| 167 | + $form .= Xml::element( 'input', array( 'class' => 'button-plain', 'value' => wfMsg( 'donate_interface-paypal-button' ), 'onclick' => 'document.payment.PaypalRedirect.value=1;return true;', 'type' => 'submit' ) ); |
168 | 168 | } else { |
169 | | - $form .= Xml::element( 'input', array( 'class' => 'button-plain', 'value' => wfMsg( 'payflowpro_gateway-donor-submit' ), 'type' => 'submit' ) ); |
| 169 | + $form .= Xml::element( 'input', array( 'class' => 'button-plain', 'value' => wfMsg( 'donate_interface-donor-submit' ), 'type' => 'submit' ) ); |
170 | 170 | $form .= Xml::closeElement( 'div' ); // close div#mw-donate-submit-button |
171 | 171 | $form .= Xml::openElement( 'div', array( 'class' => 'mw-donate-submessage', 'id' => 'payflowpro_gateway-donate-submessage' ) ) . |
172 | | - wfMsg( 'payflowpro_gateway-donate-click' ); |
| 172 | + wfMsg( 'donate_interface-donate-click' ); |
173 | 173 | } |
174 | 174 | $form .= Xml::closeElement( 'div' ); // close div#payflowpro_gateway-donate-submessage |
175 | 175 | $form .= Xml::closeElement( 'div' ); // close div#payflowpro_gateway-form-submit |
— | — | @@ -207,9 +207,9 @@ |
208 | 208 | $form .= Xml::tags( 'p', array( 'class' => '' ), Xml::openElement( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/gateway_forms/includes/rapidssl_ssl_certificate.gif" ) ) ); |
209 | 209 | $form .= Xml::closeElement( 'div' ); // close div#payflowpro_gateway-donate-addl-info-secure-logos |
210 | 210 | $form .= Xml::openElement( 'div', array( 'id' => 'payflowpro_gateway-donate-addl-info-text' ) ); |
211 | | - $form .= Xml::tags( 'p', array( 'class' => '' ), wfMsg( 'payflowpro_gateway-otherways-short' ) ); |
212 | | - $form .= Xml::tags( 'p', array( 'class' => '' ), wfMsg( 'payflowpro_gateway-credit-storage-processing' ) ); |
213 | | - $form .= Xml::tags( 'p', array( 'class' => '' ), wfMsg( 'payflowpro_gateway-question-comment' ) ); |
| 211 | + $form .= Xml::tags( 'p', array( 'class' => '' ), wfMsg( 'donate_interface-otherways-short' ) ); |
| 212 | + $form .= Xml::tags( 'p', array( 'class' => '' ), wfMsg( 'donate_interface-credit-storage-processing' ) ); |
| 213 | + $form .= Xml::tags( 'p', array( 'class' => '' ), wfMsg( 'donate_interface-question-comment' ) ); |
214 | 214 | $form .= Xml::closeElement( 'div' ); // close div#payflowpro_gateway-donate-addl-info-text |
215 | 215 | $form .= Xml::closeElement( 'div' ); // close div#payflowpro_gateway-donate-addl-info |
216 | 216 | return $form; |
Index: trunk/extensions/DonationInterface/gateway_forms/TwoStepAmount.php |
— | — | @@ -48,8 +48,8 @@ |
49 | 49 | public function loadPlaceholders() { |
50 | 50 | global $wgOut; |
51 | 51 | // form placeholder values |
52 | | - $first = wfMsg( 'payflowpro_gateway-donor-fname' ); |
53 | | - $last = wfMsg( 'payflowpro_gateway-donor-lname' ); |
| 52 | + $first = wfMsg( 'donate_interface-donor-fname' ); |
| 53 | + $last = wfMsg( 'donate_interface-donor-lname' ); |
54 | 54 | $js = <<<EOT |
55 | 55 | <script type="text/javascript"> |
56 | 56 | function loadPlaceholders() { |
— | — | @@ -170,11 +170,11 @@ |
171 | 171 | // submit button |
172 | 172 | $form = Xml::openElement( 'div', array( 'id' => 'payflowpro_gateway-form-submit' ) ); |
173 | 173 | $form .= Xml::openElement( 'div', array( 'id' => 'mw-donate-submit-button' ) ); |
174 | | - // $form .= Xml::submitButton( wfMsg( 'payflowpro_gateway-submit-button' )); |
175 | | - $form .= Xml::element( 'input', array( 'class' => 'button-plain', 'value' => wfMsg( 'payflowpro_gateway-cc-button' ), 'type' => 'submit' ) ); |
| 174 | + // $form .= Xml::submitButton( wfMsg( 'donate_interface-submit-button' )); |
| 175 | + $form .= Xml::element( 'input', array( 'class' => 'button-plain', 'value' => wfMsg( 'donate_interface-cc-button' ), 'type' => 'submit' ) ); |
176 | 176 | $form .= Xml::closeElement( 'div' ); // close div#mw-donate-submit-button |
177 | 177 | $form .= Xml::openElement( 'div', array( 'class' => 'mw-donate-submessage', 'id' => 'payflowpro_gateway-donate-submessage' ) ) . |
178 | | - wfMsg( 'payflowpro_gateway-donate-click' ); |
| 178 | + wfMsg( 'donate_interface-donate-click' ); |
179 | 179 | $form .= Xml::closeElement( 'div' ); // close div#payflowpro_gateway-donate-submessage |
180 | 180 | $form .= Xml::closeElement( 'div' ); // close div#payflowpro_gateway-form-submit |
181 | 181 | return $form; |
— | — | @@ -201,7 +201,7 @@ |
202 | 202 | protected function generatePersonalContainer() { |
203 | 203 | $form = ''; |
204 | 204 | $form .= Xml::openElement( 'div', array( 'id' => 'payflowpro_gateway-personal-info' ) ); ; |
205 | | - //$form .= Xml::tags( 'h3', array( 'class' => 'payflow-cc-form-header', 'id' => 'payflow-cc-form-header-personal' ), wfMsg( 'payflowpro_gateway-cc-form-header-personal' ) ); |
| 205 | + //$form .= Xml::tags( 'h3', array( 'class' => 'payflow-cc-form-header', 'id' => 'payflow-cc-form-header-personal' ), wfMsg( 'donate_interface-cc-form-header-personal' ) ); |
206 | 206 | $form .= Xml::openElement( 'table', array( 'id' => 'payflow-table-donor' ) ); |
207 | 207 | |
208 | 208 | $form .= $this->generatePersonalFields(); |
— | — | @@ -242,7 +242,7 @@ |
243 | 243 | $form = ''; |
244 | 244 | // credit card info |
245 | 245 | $form .= Xml::openElement( 'div', array( 'id' => 'payflowpro_gateway-payment-info' ) ); |
246 | | - //$form .= Xml::tags( 'h3', array( 'class' => 'payflow-cc-form-header', 'id' => 'payflow-cc-form-header-payment' ), wfMsg( 'payflowpro_gateway-cc-form-header-payment' ) ); |
| 246 | + //$form .= Xml::tags( 'h3', array( 'class' => 'payflow-cc-form-header', 'id' => 'payflow-cc-form-header-payment' ), wfMsg( 'donate_interface-cc-form-header-payment' ) ); |
247 | 247 | $form .= Xml::openElement( 'table', array( 'id' => 'payflow-table-cc' ) ); |
248 | 248 | |
249 | 249 | $form .= $this->generatePaymentFields(); |
— | — | @@ -259,7 +259,7 @@ |
260 | 260 | $form .= '<td colspan="2"><span class="creditcard-error-msg">' . $this->form_errors['invalidamount'] . '</span></td>'; |
261 | 261 | $form .= '</tr>'; |
262 | 262 | $form .= '<tr>'; |
263 | | - $form .= '<td class="label">' . Xml::label( wfMsg( 'payflowpro_gateway-donor-amount' ), 'amount' ) . '</td>'; |
| 263 | + $form .= '<td class="label">' . Xml::label( wfMsg( 'donate_interface-donor-amount' ), 'amount' ) . '</td>'; |
264 | 264 | $form .= '<td>' . Xml::input( 'amount', '7', $this->form_data['amount'], array( 'type' => 'text', 'maxlength' => '10', 'id' => 'amount' ) ) . |
265 | 265 | ' ' . $this->generateCurrencyDropdown() . '</td>'; |
266 | 266 | $form .= '</tr>'; |
Index: trunk/extensions/DonationInterface/gateway_forms/TwoColumnLetter3.php |
— | — | @@ -41,7 +41,7 @@ |
42 | 42 | // add noscript tags for javascript disabled browsers |
43 | 43 | $form .= $this->getNoScript(); |
44 | 44 | |
45 | | - // $form .= Xml::tags( 'h2', array( 'id' => 'donate-head' ), wfMsg( 'payflowpro_gateway-make-your-donation' )); |
| 45 | + // $form .= Xml::tags( 'h2', array( 'id' => 'donate-head' ), wfMsg( 'donate_interface-make-your-donation' )); |
46 | 46 | |
47 | 47 | // provide a place at the top of the form for displaying general messages |
48 | 48 | if ( $this->form_errors['general'] ) { |
— | — | @@ -90,8 +90,8 @@ |
91 | 91 | if ( !$this->paypal ) { |
92 | 92 | // PayPal button |
93 | 93 | $form .= '<tr>'; |
94 | | - $form .= '<td style="text-align:center;" colspan="2"><big><b>' . wfMsg( 'payflowpro_gateway-paypal-button' ) . '</b></big><br/><a href="#" onclick="document.payment.PaypalRedirect.value=1;document.payment.submit();"><img src="' . $scriptPath . '/paypal.png"/></a><br/>' . |
95 | | - '— ' . wfMsg( 'payflowpro_gateway-or' ) . ' —<br/><big><b>' . wfMsg( 'payflowpro_gateway-donate-wikipedia' ) . '</b></big></td>'; |
| 94 | + $form .= '<td style="text-align:center;" colspan="2"><big><b>' . wfMsg( 'donate_interface-paypal-button' ) . '</b></big><br/><a href="#" onclick="document.payment.PaypalRedirect.value=1;document.payment.submit();"><img src="' . $scriptPath . '/paypal.png"/></a><br/>' . |
| 95 | + '— ' . wfMsg( 'donate_interface-or' ) . ' —<br/><big><b>' . wfMsg( 'donate_interface-donate-wikipedia' ) . '</b></big></td>'; |
96 | 96 | $form .= '</tr>'; |
97 | 97 | } |
98 | 98 | |
— | — | @@ -148,7 +148,7 @@ |
149 | 149 | $comment_opt_value = ( $wgRequest->wasPosted() ) ? $this->form_data[ 'comment-option' ] : true; |
150 | 150 | $form .= '<tr>'; |
151 | 151 | $form .= '<td class="check-option" colspan="2">' . Xml::check( 'comment-option', $comment_opt_value ); |
152 | | - $form .= ' ' . Xml::label( wfMsg( 'payflowpro_gateway-anon-message' ), 'comment-option' ) . '</td>'; |
| 152 | + $form .= ' ' . Xml::label( wfMsg( 'donate_interface-anon-message' ), 'comment-option' ) . '</td>'; |
153 | 153 | $form .= '</tr>'; |
154 | 154 | |
155 | 155 | // email agreement |
— | — | @@ -163,12 +163,12 @@ |
164 | 164 | $form .= Xml::openElement( 'div', array( 'id' => 'mw-donate-submit-button' ) ); |
165 | 165 | if ( $this->paypal ) { |
166 | 166 | $form .= Html::hidden( 'PaypalRedirect', 0 ); |
167 | | - $form .= Xml::element( 'input', array( 'class' => 'button-plain', 'value' => wfMsg( 'payflowpro_gateway-paypal-button' ), 'onclick' => 'document.payment.PaypalRedirect.value=1;return true;', 'type' => 'submit' ) ); |
| 167 | + $form .= Xml::element( 'input', array( 'class' => 'button-plain', 'value' => wfMsg( 'donate_interface-paypal-button' ), 'onclick' => 'document.payment.PaypalRedirect.value=1;return true;', 'type' => 'submit' ) ); |
168 | 168 | } else { |
169 | | - $form .= Xml::element( 'input', array( 'class' => 'button-plain', 'value' => wfMsg( 'payflowpro_gateway-donor-submit' ), 'type' => 'submit' ) ); |
| 169 | + $form .= Xml::element( 'input', array( 'class' => 'button-plain', 'value' => wfMsg( 'donate_interface-donor-submit' ), 'type' => 'submit' ) ); |
170 | 170 | $form .= Xml::closeElement( 'div' ); // close div#mw-donate-submit-button |
171 | 171 | $form .= Xml::openElement( 'div', array( 'class' => 'mw-donate-submessage', 'id' => 'payflowpro_gateway-donate-submessage' ) ) . |
172 | | - wfMsg( 'payflowpro_gateway-donate-click' ); |
| 172 | + wfMsg( 'donate_interface-donate-click' ); |
173 | 173 | } |
174 | 174 | $form .= Xml::closeElement( 'div' ); // close div#payflowpro_gateway-donate-submessage |
175 | 175 | $form .= Xml::closeElement( 'div' ); // close div#payflowpro_gateway-form-submit |
— | — | @@ -207,9 +207,9 @@ |
208 | 208 | $form .= Xml::tags( 'p', array( 'class' => '' ), Xml::openElement( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/gateway_forms/includes/rapidssl_ssl_certificate.gif" ) ) ); |
209 | 209 | $form .= Xml::closeElement( 'div' ); // close div#payflowpro_gateway-donate-addl-info-secure-logos |
210 | 210 | $form .= Xml::openElement( 'div', array( 'id' => 'payflowpro_gateway-donate-addl-info-text' ) ); |
211 | | - $form .= Xml::tags( 'p', array( 'class' => '' ), wfMsg( 'payflowpro_gateway-otherways-short' ) ); |
212 | | - $form .= Xml::tags( 'p', array( 'class' => '' ), wfMsg( 'payflowpro_gateway-credit-storage-processing' ) ); |
213 | | - $form .= Xml::tags( 'p', array( 'class' => '' ), wfMsg( 'payflowpro_gateway-question-comment' ) ); |
| 211 | + $form .= Xml::tags( 'p', array( 'class' => '' ), wfMsg( 'donate_interface-otherways-short' ) ); |
| 212 | + $form .= Xml::tags( 'p', array( 'class' => '' ), wfMsg( 'donate_interface-credit-storage-processing' ) ); |
| 213 | + $form .= Xml::tags( 'p', array( 'class' => '' ), wfMsg( 'donate_interface-question-comment' ) ); |
214 | 214 | $form .= Xml::closeElement( 'div' ); // close div#payflowpro_gateway-donate-addl-info-text |
215 | 215 | $form .= Xml::closeElement( 'div' ); // close div#payflowpro_gateway-donate-addl-info |
216 | 216 | return $form; |
Index: trunk/extensions/DonationInterface/gateway_forms/TwoColumnLetter4.php |
— | — | @@ -41,7 +41,7 @@ |
42 | 42 | // add noscript tags for javascript disabled browsers |
43 | 43 | $form .= $this->getNoScript(); |
44 | 44 | |
45 | | - // $form .= Xml::tags( 'h2', array( 'id' => 'donate-head' ), wfMsg( 'payflowpro_gateway-make-your-donation' )); |
| 45 | + // $form .= Xml::tags( 'h2', array( 'id' => 'donate-head' ), wfMsg( 'donate_interface-make-your-donation' )); |
46 | 46 | |
47 | 47 | // provide a place at the top of the form for displaying general messages |
48 | 48 | if ( $this->form_errors['general'] ) { |
— | — | @@ -90,8 +90,8 @@ |
91 | 91 | if ( !$this->paypal ) { |
92 | 92 | // PayPal button |
93 | 93 | $form .= '<tr>'; |
94 | | - $form .= '<td style="text-align:center;" colspan="2"><big><b>' . wfMsg( 'payflowpro_gateway-paypal-button' ) . '</b></big><br/><a href="#" onclick="document.payment.PaypalRedirect.value=1;document.payment.submit();"><img src="' . $scriptPath . '/paypal.png"/></a><br/>' . |
95 | | - '— ' . wfMsg( 'payflowpro_gateway-or' ) . ' —<br/><big><b>' . wfMsg( 'payflowpro_gateway-donate-wikipedia' ) . '</b></big></td>'; |
| 94 | + $form .= '<td style="text-align:center;" colspan="2"><big><b>' . wfMsg( 'donate_interface-paypal-button' ) . '</b></big><br/><a href="#" onclick="document.payment.PaypalRedirect.value=1;document.payment.submit();"><img src="' . $scriptPath . '/paypal.png"/></a><br/>' . |
| 95 | + '— ' . wfMsg( 'donate_interface-or' ) . ' —<br/><big><b>' . wfMsg( 'donate_interface-donate-wikipedia' ) . '</b></big></td>'; |
96 | 96 | $form .= '</tr>'; |
97 | 97 | } |
98 | 98 | |
— | — | @@ -148,7 +148,7 @@ |
149 | 149 | $comment_opt_value = ( $wgRequest->wasPosted() ) ? $this->form_data[ 'comment-option' ] : true; |
150 | 150 | $form .= '<tr>'; |
151 | 151 | $form .= '<td class="check-option" colspan="2">' . Xml::check( 'comment-option', $comment_opt_value ); |
152 | | - $form .= ' ' . Xml::label( wfMsg( 'payflowpro_gateway-anon-message' ), 'comment-option' ) . '</td>'; |
| 152 | + $form .= ' ' . Xml::label( wfMsg( 'donate_interface-anon-message' ), 'comment-option' ) . '</td>'; |
153 | 153 | $form .= '</tr>'; |
154 | 154 | |
155 | 155 | // email agreement |
— | — | @@ -163,12 +163,12 @@ |
164 | 164 | $form .= Xml::openElement( 'div', array( 'id' => 'mw-donate-submit-button' ) ); |
165 | 165 | if ( $this->paypal ) { |
166 | 166 | $form .= Html::hidden( 'PaypalRedirect', 0 ); |
167 | | - $form .= Xml::element( 'input', array( 'class' => 'button-plain', 'value' => wfMsg( 'payflowpro_gateway-paypal-button' ), 'onclick' => 'document.payment.PaypalRedirect.value=1;return true;', 'type' => 'submit' ) ); |
| 167 | + $form .= Xml::element( 'input', array( 'class' => 'button-plain', 'value' => wfMsg( 'donate_interface-paypal-button' ), 'onclick' => 'document.payment.PaypalRedirect.value=1;return true;', 'type' => 'submit' ) ); |
168 | 168 | } else { |
169 | | - $form .= Xml::element( 'input', array( 'class' => 'button-plain', 'value' => wfMsg( 'payflowpro_gateway-donor-submit' ), 'type' => 'submit' ) ); |
| 169 | + $form .= Xml::element( 'input', array( 'class' => 'button-plain', 'value' => wfMsg( 'donate_interface-donor-submit' ), 'type' => 'submit' ) ); |
170 | 170 | $form .= Xml::closeElement( 'div' ); // close div#mw-donate-submit-button |
171 | 171 | $form .= Xml::openElement( 'div', array( 'class' => 'mw-donate-submessage', 'id' => 'payflowpro_gateway-donate-submessage' ) ) . |
172 | | - wfMsg( 'payflowpro_gateway-donate-click' ); |
| 172 | + wfMsg( 'donate_interface-donate-click' ); |
173 | 173 | } |
174 | 174 | $form .= Xml::closeElement( 'div' ); // close div#payflowpro_gateway-donate-submessage |
175 | 175 | $form .= Xml::closeElement( 'div' ); // close div#payflowpro_gateway-form-submit |
— | — | @@ -207,9 +207,9 @@ |
208 | 208 | $form .= Xml::tags( 'p', array( 'class' => '' ), Xml::openElement( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/gateway_forms/includes/rapidssl_ssl_certificate.gif" ) ) ); |
209 | 209 | $form .= Xml::closeElement( 'div' ); // close div#payflowpro_gateway-donate-addl-info-secure-logos |
210 | 210 | $form .= Xml::openElement( 'div', array( 'id' => 'payflowpro_gateway-donate-addl-info-text' ) ); |
211 | | - $form .= Xml::tags( 'p', array( 'class' => '' ), wfMsg( 'payflowpro_gateway-otherways-short' ) ); |
212 | | - $form .= Xml::tags( 'p', array( 'class' => '' ), wfMsg( 'payflowpro_gateway-credit-storage-processing' ) ); |
213 | | - $form .= Xml::tags( 'p', array( 'class' => '' ), wfMsg( 'payflowpro_gateway-question-comment' ) ); |
| 211 | + $form .= Xml::tags( 'p', array( 'class' => '' ), wfMsg( 'donate_interface-otherways-short' ) ); |
| 212 | + $form .= Xml::tags( 'p', array( 'class' => '' ), wfMsg( 'donate_interface-credit-storage-processing' ) ); |
| 213 | + $form .= Xml::tags( 'p', array( 'class' => '' ), wfMsg( 'donate_interface-question-comment' ) ); |
214 | 214 | $form .= Xml::closeElement( 'div' ); // close div#payflowpro_gateway-donate-addl-info-text |
215 | 215 | $form .= Xml::closeElement( 'div' ); // close div#payflowpro_gateway-donate-addl-info |
216 | 216 | return $form; |
Index: trunk/extensions/DonationInterface/gateway_forms/TwoColumnLetter5.php |
— | — | @@ -38,7 +38,7 @@ |
39 | 39 | // add noscript tags for javascript disabled browsers |
40 | 40 | $form .= $this->getNoScript(); |
41 | 41 | |
42 | | - $form .= Xml::tags( 'h2', array( 'id' => 'donate-head' ), wfMsg( 'payflowpro_gateway-make-your-donation' )); |
| 42 | + $form .= Xml::tags( 'h2', array( 'id' => 'donate-head' ), wfMsg( 'donate_interface-make-your-donation' )); |
43 | 43 | |
44 | 44 | // provide a place at the top of the form for displaying general messages |
45 | 45 | if ( $this->form_errors['general'] ) { |
— | — | @@ -86,7 +86,7 @@ |
87 | 87 | |
88 | 88 | /* |
89 | 89 | $form .= '<tr>'; |
90 | | - $form .= '<td style="text-align:center;" colspan="2"><big><b>' . wfMsg( 'payflowpro_gateway-paypal-button' ) . '</b></big><br/><a href="#" onclick="document.payment.PaypalRedirect.value=1;document.payment.submit();"><img src="' . $scriptPath . '/paypal.png"/></a></td>'; |
| 90 | + $form .= '<td style="text-align:center;" colspan="2"><big><b>' . wfMsg( 'donate_interface-paypal-button' ) . '</b></big><br/><a href="#" onclick="document.payment.PaypalRedirect.value=1;document.payment.submit();"><img src="' . $scriptPath . '/paypal.png"/></a></td>'; |
91 | 91 | $form .= '</tr>'; |
92 | 92 | */ |
93 | 93 | |
— | — | @@ -101,7 +101,7 @@ |
102 | 102 | $form .= '<td colspan="2"><span class="creditcard-error-msg">' . $this->form_errors['invalidamount'] . '</span></td>'; |
103 | 103 | $form .= '</tr>'; |
104 | 104 | $form .= '<tr>'; |
105 | | - $form .= '<td class="label">' . Xml::label( wfMsg( 'payflowpro_gateway-donor-amount' ), 'amount' ) . '</td>'; |
| 105 | + $form .= '<td class="label">' . Xml::label( wfMsg( 'donate_interface-donor-amount' ), 'amount' ) . '</td>'; |
106 | 106 | $form .= '<td>' . Xml::radio( 'amount', 100, $this->form_data['amount'] == 100, array( 'onfocus' => 'clearField2( document.getElementById(\'amountOther\'), "Other" )' ) ) . '100 ' . |
107 | 107 | Xml::radio( 'amount', 50, $this->form_data['amount'] == 50, array( 'onfocus' => 'clearField2( document.getElementById(\'amountOther\'), "Other" )' ) ) . '50 ' . |
108 | 108 | Xml::radio( 'amount', 35, $this->form_data['amount'] == 35, array( 'onfocus' => 'clearField2( document.getElementById(\'amountOther\'), "Other" )' ) ) . '35 ' . |
— | — | @@ -134,7 +134,7 @@ |
135 | 135 | $form .= '</tr>'; |
136 | 136 | |
137 | 137 | $form .= '<tr>'; |
138 | | - $form .= '<td class="label">' . wfMsg( 'payflowpro_gateway-payment-type' ) . '</td>'; |
| 138 | + $form .= '<td class="label">' . wfMsg( 'donate_interface-payment-type' ) . '</td>'; |
139 | 139 | $form .= '<td>' . |
140 | 140 | Xml::radio( 'card_type', 'cc1', $this->form_data['card_type'] == 'cc1', array( 'id' => 'cc1radio', 'onclick' => 'switchToCreditCard()' ) ) . '<label for="cc1radio">' . Xml::element( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/gateway_forms/includes/card-visa.png" ) ). '</label>' . |
141 | 141 | Xml::radio( 'card_type', 'cc2', $this->form_data['card_type'] == 'cc2', array( 'id' => 'cc2radio', 'onclick' => 'switchToCreditCard()' ) ) . '<label for="cc2radio">' . Xml::element( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/gateway_forms/includes/card-mastercard.png" ) ). '</label>' . |
— | — | @@ -171,7 +171,7 @@ |
172 | 172 | $form .= '<td colspan=2><span class="creditcard-error-msg">' . $this->form_errors['zip'] . '</span></td>'; |
173 | 173 | $form .= '</tr>'; |
174 | 174 | $form .= '<tr>'; |
175 | | - $form .= '<td class="label">' . Xml::label( wfMsg( 'payflowpro_gateway-donor-postal' ), 'zip' ) . '</td>'; |
| 175 | + $form .= '<td class="label">' . Xml::label( wfMsg( 'donate_interface-donor-postal' ), 'zip' ) . '</td>'; |
176 | 176 | $form .= '<td>' . Xml::input( 'zip', '15', $this->form_data['zip'], array( 'type' => 'text', 'maxlength' => '15', 'id' => 'zip' ) ) . |
177 | 177 | '</td>'; |
178 | 178 | $form .= '</tr>'; |
— | — | @@ -182,7 +182,7 @@ |
183 | 183 | $comment_opt_value = ( $wgRequest->wasPosted() ) ? $this->form_data[ 'comment-option' ] : true; |
184 | 184 | $form .= '<tr>'; |
185 | 185 | $form .= '<td class="check-option" colspan="2">' . Xml::check( 'comment-option', $comment_opt_value ); |
186 | | - $form .= ' ' . Xml::label( wfMsg( 'payflowpro_gateway-anon-message' ), 'comment-option' ) . '</td>'; |
| 186 | + $form .= ' ' . Xml::label( wfMsg( 'donate_interface-anon-message' ), 'comment-option' ) . '</td>'; |
187 | 187 | $form .= '</tr>'; |
188 | 188 | |
189 | 189 | $form .= $this->getEmailOptField(); |
— | — | @@ -195,10 +195,10 @@ |
196 | 196 | // cc submit button |
197 | 197 | $form = Xml::openElement( 'div', array( 'id' => 'payflowpro_gateway-form-submit' ) ); |
198 | 198 | $form .= Xml::openElement( 'div', array( 'id' => 'mw-donate-submit-button' ) ); |
199 | | - $form .= Xml::element( 'input', array( 'class' => 'button-plain', 'value' => wfMsg( 'payflowpro_gateway-donor-submit' ), 'onclick' => 'document.payment.PaypalRedirect.value=0;return true;', 'type' => 'submit' ) ); |
| 199 | + $form .= Xml::element( 'input', array( 'class' => 'button-plain', 'value' => wfMsg( 'donate_interface-donor-submit' ), 'onclick' => 'document.payment.PaypalRedirect.value=0;return true;', 'type' => 'submit' ) ); |
200 | 200 | $form .= Xml::closeElement( 'div' ); // close div#mw-donate-submit-button |
201 | 201 | $form .= Xml::openElement( 'div', array( 'class' => 'mw-donate-submessage', 'id' => 'payflowpro_gateway-donate-submessage' ) ) . |
202 | | - wfMsg( 'payflowpro_gateway-donate-click' ); |
| 202 | + wfMsg( 'donate_interface-donate-click' ); |
203 | 203 | $form .= Xml::closeElement( 'div' ); // close div#payflowpro_gateway-donate-submessage |
204 | 204 | $form .= Xml::closeElement( 'div' ); // close div#payflowpro_gateway-form-submit |
205 | 205 | |
— | — | @@ -206,7 +206,7 @@ |
207 | 207 | $form .= Xml::openElement( 'div', array( 'id' => 'payflowpro_gateway-form-submit-paypal' ) ); |
208 | 208 | $form .= Xml::openElement( 'div', array( 'id' => 'mw-donate-submit-button' ) ); |
209 | 209 | $form .= Html::hidden( 'PaypalRedirect', 0 ); |
210 | | - $form .= Xml::element( 'input', array( 'class' => 'button-plain', 'value' => wfMsg( 'payflowpro_gateway-paypal-button' ), 'onclick' => 'document.payment.PaypalRedirect.value=1;return true;', 'type' => 'submit' ) ); |
| 210 | + $form .= Xml::element( 'input', array( 'class' => 'button-plain', 'value' => wfMsg( 'donate_interface-paypal-button' ), 'onclick' => 'document.payment.PaypalRedirect.value=1;return true;', 'type' => 'submit' ) ); |
211 | 211 | $form .= Xml::closeElement( 'div' ); // close div#payflowpro_gateway-donate-submessage |
212 | 212 | $form .= Xml::closeElement( 'div' ); // close div#payflowpro_gateway-form-submit |
213 | 213 | |
— | — | @@ -244,9 +244,9 @@ |
245 | 245 | $form .= Xml::tags( 'p', array( 'class' => '' ), Xml::openElement( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/gateway_forms/includes/rapidssl_ssl_certificate-nonanimated.png" ) ) ); |
246 | 246 | $form .= Xml::closeElement( 'div' ); // close div#payflowpro_gateway-donate-addl-info-secure-logos |
247 | 247 | $form .= Xml::openElement( 'div', array( 'id' => 'payflowpro_gateway-donate-addl-info-text' ) ); |
248 | | - $form .= Xml::tags( 'p', array( 'class' => '' ), wfMsg( 'payflowpro_gateway-otherways-short' ) ); |
249 | | - $form .= Xml::tags( 'p', array( 'class' => '' ), wfMsg( 'payflowpro_gateway-credit-storage-processing' ) ); |
250 | | - $form .= Xml::tags( 'p', array( 'class' => '' ), wfMsg( 'payflowpro_gateway-question-comment' ) ); |
| 248 | + $form .= Xml::tags( 'p', array( 'class' => '' ), wfMsg( 'donate_interface-otherways-short' ) ); |
| 249 | + $form .= Xml::tags( 'p', array( 'class' => '' ), wfMsg( 'donate_interface-credit-storage-processing' ) ); |
| 250 | + $form .= Xml::tags( 'p', array( 'class' => '' ), wfMsg( 'donate_interface-question-comment' ) ); |
251 | 251 | $form .= Xml::closeElement( 'div' ); // close div#payflowpro_gateway-donate-addl-info-text |
252 | 252 | $form .= Xml::closeElement( 'div' ); // close div#payflowpro_gateway-donate-addl-info |
253 | 253 | return $form; |
Index: trunk/extensions/DonationInterface/gateway_forms/TwoColumnLetter6.php |
— | — | @@ -38,7 +38,7 @@ |
39 | 39 | // add noscript tags for javascript disabled browsers |
40 | 40 | $form .= $this->getNoScript(); |
41 | 41 | |
42 | | - $form .= Xml::tags( 'h2', array( 'id' => 'donate-head' ), wfMsg( 'payflowpro_gateway-make-your-donation' )); |
| 42 | + $form .= Xml::tags( 'h2', array( 'id' => 'donate-head' ), wfMsg( 'donate_interface-make-your-donation' )); |
43 | 43 | |
44 | 44 | // provide a place at the top of the form for displaying general messages |
45 | 45 | if ( $this->form_errors['general'] ) { |
— | — | @@ -86,7 +86,7 @@ |
87 | 87 | |
88 | 88 | /* |
89 | 89 | $form .= '<tr>'; |
90 | | - $form .= '<td style="text-align:center;" colspan="2"><big><b>' . wfMsg( 'payflowpro_gateway-paypal-button' ) . '</b></big><br/><a href="#" onclick="document.payment.PaypalRedirect.value=1;document.payment.submit();"><img src="' . $scriptPath . '/paypal.png"/></a></td>'; |
| 90 | + $form .= '<td style="text-align:center;" colspan="2"><big><b>' . wfMsg( 'donate_interface-paypal-button' ) . '</b></big><br/><a href="#" onclick="document.payment.PaypalRedirect.value=1;document.payment.submit();"><img src="' . $scriptPath . '/paypal.png"/></a></td>'; |
91 | 91 | $form .= '</tr>'; |
92 | 92 | */ |
93 | 93 | |
— | — | @@ -101,7 +101,7 @@ |
102 | 102 | $form .= '<td colspan="2"><span class="creditcard-error-msg">' . $this->form_errors['invalidamount'] . '</span></td>'; |
103 | 103 | $form .= '</tr>'; |
104 | 104 | $form .= '<tr>'; |
105 | | - $form .= '<td class="label">' . Xml::label( wfMsg( 'payflowpro_gateway-donor-amount' ), 'amount' ) . '</td>'; |
| 105 | + $form .= '<td class="label">' . Xml::label( wfMsg( 'donate_interface-donor-amount' ), 'amount' ) . '</td>'; |
106 | 106 | $form .= '<td>' . Xml::radio( 'amount', 100, $this->form_data['amount'] == 100, array( 'onfocus' => 'clearField2( document.getElementById(\'amountOther\'), "Other" )' ) ) . '100 ' . |
107 | 107 | Xml::radio( 'amount', 50, $this->form_data['amount'] == 50, array( 'onfocus' => 'clearField2( document.getElementById(\'amountOther\'), "Other" )' ) ) . '50 ' . |
108 | 108 | Xml::radio( 'amount', 35, $this->form_data['amount'] == 35, array( 'onfocus' => 'clearField2( document.getElementById(\'amountOther\'), "Other" )' ) ) . '35 ' . |
— | — | @@ -128,7 +128,7 @@ |
129 | 129 | $form .= '</tr>'; |
130 | 130 | |
131 | 131 | $form .= '<tr>'; |
132 | | - $form .= '<td class="label">' . wfMsg( 'payflowpro_gateway-payment-type' ) . '</td>'; |
| 132 | + $form .= '<td class="label">' . wfMsg( 'donate_interface-payment-type' ) . '</td>'; |
133 | 133 | $form .= '<td>' . |
134 | 134 | Xml::radio( 'card_type', 'cc1', $this->form_data['card_type'] == 'cc1', array( 'id' => 'cc1radio', 'onclick' => 'switchToCreditCard()' ) ) . '<label for="cc1radio">' . Xml::element( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/gateway_forms/includes/card-visa.png" ) ). '</label>' . |
135 | 135 | Xml::radio( 'card_type', 'cc2', $this->form_data['card_type'] == 'cc2', array( 'id' => 'cc2radio', 'onclick' => 'switchToCreditCard()' ) ) . '<label for="cc2radio">' . Xml::element( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/gateway_forms/includes/card-mastercard.png" ) ). '</label>' . |
— | — | @@ -179,7 +179,7 @@ |
180 | 180 | $form .= '<td colspan=2><span class="creditcard-error-msg">' . $this->form_errors['zip'] . '</span></td>'; |
181 | 181 | $form .= '</tr>'; |
182 | 182 | $form .= '<tr>'; |
183 | | - $form .= '<td class="label">' . Xml::label( wfMsg( 'payflowpro_gateway-donor-postal' ), 'zip' ) . '</td>'; |
| 183 | + $form .= '<td class="label">' . Xml::label( wfMsg( 'donate_interface-donor-postal' ), 'zip' ) . '</td>'; |
184 | 184 | $form .= '<td>' . Xml::input( 'zip', '15', $this->form_data['zip'], array( 'type' => 'text', 'maxlength' => '15', 'id' => 'zip' ) ) . |
185 | 185 | '</td>'; |
186 | 186 | $form .= '</tr>'; |
— | — | @@ -190,7 +190,7 @@ |
191 | 191 | $comment_opt_value = ( $wgRequest->wasPosted() ) ? $this->form_data[ 'comment-option' ] : true; |
192 | 192 | $form .= '<tr>'; |
193 | 193 | $form .= '<td class="check-option" colspan="2">' . Xml::check( 'comment-option', $comment_opt_value ); |
194 | | - $form .= ' ' . Xml::label( wfMsg( 'payflowpro_gateway-anon-message' ), 'comment-option' ) . '</td>'; |
| 194 | + $form .= ' ' . Xml::label( wfMsg( 'donate_interface-anon-message' ), 'comment-option' ) . '</td>'; |
195 | 195 | $form .= '</tr>'; |
196 | 196 | |
197 | 197 | $form .= $this->getEmailOptField(); |
— | — | @@ -208,10 +208,10 @@ |
209 | 209 | $form = Xml::openElement( 'div', array( 'id' => 'payflowpro_gateway-form-submit', 'style' => 'display: none;' ) ); |
210 | 210 | } |
211 | 211 | $form .= Xml::openElement( 'div', array( 'id' => 'mw-donate-submit-button' ) ); |
212 | | - $form .= Xml::element( 'input', array( 'class' => 'button-plain', 'value' => wfMsg( 'payflowpro_gateway-donor-submit' ), 'onclick' => 'document.payment.PaypalRedirect.value=0;return true;', 'type' => 'submit' ) ); |
| 212 | + $form .= Xml::element( 'input', array( 'class' => 'button-plain', 'value' => wfMsg( 'donate_interface-donor-submit' ), 'onclick' => 'document.payment.PaypalRedirect.value=0;return true;', 'type' => 'submit' ) ); |
213 | 213 | $form .= Xml::closeElement( 'div' ); // close div#mw-donate-submit-button |
214 | 214 | $form .= Xml::openElement( 'div', array( 'class' => 'mw-donate-submessage', 'id' => 'payflowpro_gateway-donate-submessage' ) ) . |
215 | | - wfMsg( 'payflowpro_gateway-donate-click' ); |
| 215 | + wfMsg( 'donate_interface-donate-click' ); |
216 | 216 | $form .= Xml::closeElement( 'div' ); // close div#payflowpro_gateway-donate-submessage |
217 | 217 | $form .= Xml::closeElement( 'div' ); // close div#payflowpro_gateway-form-submit |
218 | 218 | |
— | — | @@ -223,7 +223,7 @@ |
224 | 224 | } |
225 | 225 | $form .= Xml::openElement( 'div', array( 'id' => 'mw-donate-submit-button' ) ); |
226 | 226 | $form .= Html::hidden( 'PaypalRedirect', 0 ); |
227 | | - $form .= Xml::element( 'input', array( 'class' => 'button-plain', 'value' => wfMsg( 'payflowpro_gateway-donor-submit' ), 'onclick' => 'document.payment.PaypalRedirect.value=1;return true;', 'type' => 'submit' ) ); |
| 227 | + $form .= Xml::element( 'input', array( 'class' => 'button-plain', 'value' => wfMsg( 'donate_interface-donor-submit' ), 'onclick' => 'document.payment.PaypalRedirect.value=1;return true;', 'type' => 'submit' ) ); |
228 | 228 | $form .= Xml::closeElement( 'div' ); // close div#payflowpro_gateway-donate-submessage |
229 | 229 | $form .= Xml::closeElement( 'div' ); // close div#payflowpro_gateway-form-submit |
230 | 230 | return $form; |
— | — | @@ -260,9 +260,9 @@ |
261 | 261 | $form .= Xml::tags( 'p', array( 'class' => '' ), Xml::openElement( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/gateway_forms/includes/rapidssl_ssl_certificate-nonanimated.png" ) ) ); |
262 | 262 | $form .= Xml::closeElement( 'div' ); // close div#payflowpro_gateway-donate-addl-info-secure-logos |
263 | 263 | $form .= Xml::openElement( 'div', array( 'id' => 'payflowpro_gateway-donate-addl-info-text' ) ); |
264 | | - $form .= Xml::tags( 'p', array( 'class' => '' ), wfMsg( 'payflowpro_gateway-otherways-short' ) ); |
265 | | - $form .= Xml::tags( 'p', array( 'class' => '' ), wfMsg( 'payflowpro_gateway-credit-storage-processing' ) ); |
266 | | - $form .= Xml::tags( 'p', array( 'class' => '' ), wfMsg( 'payflowpro_gateway-question-comment' ) ); |
| 264 | + $form .= Xml::tags( 'p', array( 'class' => '' ), wfMsg( 'donate_interface-otherways-short' ) ); |
| 265 | + $form .= Xml::tags( 'p', array( 'class' => '' ), wfMsg( 'donate_interface-credit-storage-processing' ) ); |
| 266 | + $form .= Xml::tags( 'p', array( 'class' => '' ), wfMsg( 'donate_interface-question-comment' ) ); |
267 | 267 | $form .= Xml::closeElement( 'div' ); // close div#payflowpro_gateway-donate-addl-info-text |
268 | 268 | $form .= Xml::closeElement( 'div' ); // close div#payflowpro_gateway-donate-addl-info |
269 | 269 | return $form; |
Index: trunk/extensions/DonationInterface/gateway_forms/TwoStepTwoColumnLetter.php |
— | — | @@ -37,7 +37,7 @@ |
38 | 38 | // add noscript tags for javascript disabled browsers |
39 | 39 | $form .= $this->getNoScript(); |
40 | 40 | |
41 | | - $form .= Xml::tags( 'h2', array( 'id' => 'donate-head' ), wfMsg( 'payflowpro_gateway-please-complete' ) ); |
| 41 | + $form .= Xml::tags( 'h2', array( 'id' => 'donate-head' ), wfMsg( 'donate_interface-please-complete' ) ); |
42 | 42 | |
43 | 43 | // provide a place at the top of the form for displaying general messages |
44 | 44 | if ( $this->form_errors['general'] ) { |
— | — | @@ -93,7 +93,7 @@ |
94 | 94 | $form .= '<td colspan="2"><span class="creditcard-error-msg">' . $this->form_errors['invalidamount'] . '</span></td>'; |
95 | 95 | $form .= '</tr>'; |
96 | 96 | $form .= '<tr>'; |
97 | | - $form .= '<td class="label">' . Xml::label( wfMsg( 'payflowpro_gateway-donor-amount' ), 'amount' ) . '</td>'; |
| 97 | + $form .= '<td class="label">' . Xml::label( wfMsg( 'donate_interface-donor-amount' ), 'amount' ) . '</td>'; |
98 | 98 | $form .= '<td>' . Xml::input( 'amount', '7', $this->form_data['amount'], array( 'type' => 'text', 'maxlength' => '10', 'id' => 'amount' ) ) . |
99 | 99 | ' ' . $this->generateCurrencyDropdown() . '</td>'; |
100 | 100 | $form .= '</tr>'; |
Index: trunk/extensions/DonationInterface/gateway_forms/TwoColumnLetter7.php |
— | — | @@ -16,13 +16,13 @@ |
17 | 17 | public function loadPlaceholders() { |
18 | 18 | global $wgOut; |
19 | 19 | // form placeholder values |
20 | | - $other = wfMsg( 'payflowpro_gateway-other' ); |
21 | | - $first = wfMsg( 'payflowpro_gateway-donor-fname' ); |
22 | | - $last = wfMsg( 'payflowpro_gateway-donor-lname' ); |
23 | | - $street = wfMsg( 'payflowpro_gateway-donor-street' ); |
24 | | - $city = wfMsg( 'payflowpro_gateway-donor-city' ); |
25 | | - $zip = wfMsg( 'payflowpro_gateway-zip-code' ); |
26 | | - $email = wfMsg( 'payflowpro_gateway-donor-email' ); |
| 20 | + $other = wfMsg( 'donate_interface-other' ); |
| 21 | + $first = wfMsg( 'donate_interface-donor-fname' ); |
| 22 | + $last = wfMsg( 'donate_interface-donor-lname' ); |
| 23 | + $street = wfMsg( 'donate_interface-donor-street' ); |
| 24 | + $city = wfMsg( 'donate_interface-donor-city' ); |
| 25 | + $zip = wfMsg( 'donate_interface-zip-code' ); |
| 26 | + $email = wfMsg( 'donate_interface-donor-email' ); |
27 | 27 | $js = <<<EOT |
28 | 28 | <script type="text/javascript"> |
29 | 29 | function loadPlaceholders() { |
— | — | @@ -151,7 +151,7 @@ |
152 | 152 | // add noscript tags for javascript disabled browsers |
153 | 153 | $form .= $this->getNoScript(); |
154 | 154 | |
155 | | - $form .= Xml::tags( 'h2', array( 'id' => 'donate-head' ), wfMsg( 'payflowpro_gateway-make-your-donation' )); |
| 155 | + $form .= Xml::tags( 'h2', array( 'id' => 'donate-head' ), wfMsg( 'donate_interface-make-your-donation' )); |
156 | 156 | |
157 | 157 | // provide a place at the top of the form for displaying general messages |
158 | 158 | if ( $this->form_errors['general'] ) { |
— | — | @@ -199,7 +199,7 @@ |
200 | 200 | |
201 | 201 | /* |
202 | 202 | $form .= '<tr>'; |
203 | | - $form .= '<td style="text-align:center;" colspan="2"><big><b>' . wfMsg( 'payflowpro_gateway-paypal-button' ) . '</b></big><br/><a href="#" onclick="document.payment.PaypalRedirect.value=1;document.payment.submit();"><img src="' . $scriptPath . '/paypal.png"/></a></td>'; |
| 203 | + $form .= '<td style="text-align:center;" colspan="2"><big><b>' . wfMsg( 'donate_interface-paypal-button' ) . '</b></big><br/><a href="#" onclick="document.payment.PaypalRedirect.value=1;document.payment.submit();"><img src="' . $scriptPath . '/paypal.png"/></a></td>'; |
204 | 204 | $form .= '</tr>'; |
205 | 205 | */ |
206 | 206 | |
— | — | @@ -214,7 +214,7 @@ |
215 | 215 | $form .= '<td colspan="2"><span class="creditcard-error-msg">' . $this->form_errors['invalidamount'] . '</span></td>'; |
216 | 216 | $form .= '</tr>'; |
217 | 217 | $form .= '<tr>'; |
218 | | - $form .= '<td class="label"><div style="padding-top:4px;">' . Xml::label( wfMsg( 'payflowpro_gateway-donor-amount' ), 'amount' ) . '</div></td>'; |
| 218 | + $form .= '<td class="label"><div style="padding-top:4px;">' . Xml::label( wfMsg( 'donate_interface-donor-amount' ), 'amount' ) . '</div></td>'; |
219 | 219 | $form .= '<td>' . |
220 | 220 | '<table cellspacing="3" cellpadding="0" border="0" style="margin-bottom:0.2em;"><tr>' . |
221 | 221 | '<td>'.Xml::radio( 'amount', 20, $this->form_data['amount'] == 20, array( 'onfocus' => 'clearField2( document.getElementById(\'amountOther\'), "Other" )' ) ) . '$20 '.'</td>'. |
— | — | @@ -246,7 +246,7 @@ |
247 | 247 | |
248 | 248 | // Payment type |
249 | 249 | $form .= '<tr>'; |
250 | | - $form .= '<td class="label""><div style="padding-top:9px;">' . wfMsg( 'payflowpro_gateway-payment-type' ) . '</div></td>'; |
| 250 | + $form .= '<td class="label""><div style="padding-top:9px;">' . wfMsg( 'donate_interface-payment-type' ) . '</div></td>'; |
251 | 251 | $form .= '<td>' . |
252 | 252 | '<p style="border: 1px solid rgb(187, 187, 187); float: left; -moz-border-radius: 5px 5px 5px 5px; margin: 0 8px 0 0; padding: 5px 5px 5px 3px; white-space: nowrap;">'. |
253 | 253 | Xml::radio( 'card_type', 'cc1', $this->form_data['card_type'] == 'cc1', array( 'id' => 'cc1radio', 'onclick' => 'switchToCreditCard()' ) ) . '<label for="cc1radio">' . Xml::element( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/gateway_forms/includes/card-visa.png" ) ). '</label>' . |
— | — | @@ -269,7 +269,7 @@ |
270 | 270 | } |
271 | 271 | |
272 | 272 | $form .= '<tr>'; |
273 | | - $form .= '<td colspan="2"><h3 class="cc_header">' . wfMsg( 'payflowpro_gateway-cc-form-header-personal' ) . |
| 273 | + $form .= '<td colspan="2"><h3 class="cc_header">' . wfMsg( 'donate_interface-cc-form-header-personal' ) . |
274 | 274 | Xml::element( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/gateway_forms/includes/padlock.gif", 'style' => 'vertical-align:baseline;margin-left:8px;' ) ) . '</h3></td>'; |
275 | 275 | $form .= '</tr>'; |
276 | 276 | |
— | — | @@ -278,7 +278,7 @@ |
279 | 279 | |
280 | 280 | // expiry |
281 | 281 | $form .= '<tr>'; |
282 | | - $form .= '<td class="label">' . Xml::label( wfMsg( 'payflowpro_gateway-donor-expiration' ), 'expiration' ) . '</td>'; |
| 282 | + $form .= '<td class="label">' . Xml::label( wfMsg( 'donate_interface-donor-expiration' ), 'expiration' ) . '</td>'; |
283 | 283 | $form .= '<td>' . $this->generateExpiryMonthDropdown() . ' / ' . $this->generateExpiryYearDropdown() . '</td>'; |
284 | 284 | $form .= '</tr>'; |
285 | 285 | |
— | — | @@ -293,9 +293,9 @@ |
294 | 294 | $form .= '<td colspan=2><span class="creditcard-error-msg">' . $this->form_errors['lname'] . '</span></td>'; |
295 | 295 | $form .= '</tr>'; |
296 | 296 | $form .= '<tr>'; |
297 | | - $form .= '<td class="label">' . Xml::label( wfMsg( 'payflowpro_gateway-name-on-card' ), 'fname' ) . '</td>'; |
298 | | - $form .= '<td>' . Xml::input( 'fname', '30', $this->form_data['fname'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \''.wfMsg( 'payflowpro_gateway-donor-fname' ).'\' )', 'maxlength' => '25', 'class' => 'required', 'id' => 'fname' ) ) . |
299 | | - Xml::input( 'lname', '30', $this->form_data['lname'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \''.wfMsg( 'payflowpro_gateway-donor-lname' ).'\' )', 'maxlength' => '25', 'id' => 'lname' ) ) . '</td>'; |
| 297 | + $form .= '<td class="label">' . Xml::label( wfMsg( 'donate_interface-name-on-card' ), 'fname' ) . '</td>'; |
| 298 | + $form .= '<td>' . Xml::input( 'fname', '30', $this->form_data['fname'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \''.wfMsg( 'donate_interface-donor-fname' ).'\' )', 'maxlength' => '25', 'class' => 'required', 'id' => 'fname' ) ) . |
| 299 | + Xml::input( 'lname', '30', $this->form_data['lname'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \''.wfMsg( 'donate_interface-donor-lname' ).'\' )', 'maxlength' => '25', 'id' => 'lname' ) ) . '</td>'; |
300 | 300 | $form .= "</tr>"; |
301 | 301 | |
302 | 302 | // street |
— | — | @@ -303,8 +303,8 @@ |
304 | 304 | $form .= '<td colspan=2><span class="creditcard-error-msg">' . $this->form_errors['street'] . '</span></td>'; |
305 | 305 | $form .= '</tr>'; |
306 | 306 | $form .= '<tr>'; |
307 | | - $form .= '<td class="label">' . Xml::label( wfMsg( 'payflowpro_gateway-billing-address' ), 'street' ) . '</td>'; |
308 | | - $form .= '<td>' . Xml::input( 'street', '30', $this->form_data['street'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \''.wfMsg( 'payflowpro_gateway-donor-street' ).'\' )', 'maxlength' => '100', 'id' => 'street', 'class' => 'fullwidth' ) ) . |
| 307 | + $form .= '<td class="label">' . Xml::label( wfMsg( 'donate_interface-billing-address' ), 'street' ) . '</td>'; |
| 308 | + $form .= '<td>' . Xml::input( 'street', '30', $this->form_data['street'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \''.wfMsg( 'donate_interface-donor-street' ).'\' )', 'maxlength' => '100', 'id' => 'street', 'class' => 'fullwidth' ) ) . |
309 | 309 | '</td>'; |
310 | 310 | $form .= '</tr>'; |
311 | 311 | |
— | — | @@ -314,9 +314,9 @@ |
315 | 315 | $form .= '</tr>'; |
316 | 316 | $form .= '<tr>'; |
317 | 317 | $form .= '<td class="label"> </td>'; |
318 | | - $form .= '<td>' . Xml::input( 'city', '18', $this->form_data['city'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \''.wfMsg( 'payflowpro_gateway-donor-city' ).'\' )', 'maxlength' => '40', 'id' => 'city' ) ) . ' ' . |
| 318 | + $form .= '<td>' . Xml::input( 'city', '18', $this->form_data['city'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \''.wfMsg( 'donate_interface-donor-city' ).'\' )', 'maxlength' => '40', 'id' => 'city' ) ) . ' ' . |
319 | 319 | $this->generateStateDropdown() . ' ' . |
320 | | - Xml::input( 'zip', '5', $this->form_data['zip'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \''.wfMsg( 'payflowpro_gateway-zip-code' ).'\' )', 'maxlength' => '10', 'id' => 'zip' ) ) . |
| 320 | + Xml::input( 'zip', '5', $this->form_data['zip'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \''.wfMsg( 'donate_interface-zip-code' ).'\' )', 'maxlength' => '10', 'id' => 'zip' ) ) . |
321 | 321 | Html::hidden( 'country', 'US' ) . |
322 | 322 | '</td>'; |
323 | 323 | $form .= '</tr>'; |
— | — | @@ -337,8 +337,8 @@ |
338 | 338 | $form .= '<td colspan=2><span class="creditcard-error-msg">' . $this->form_errors['emailAdd'] . '</span></td>'; |
339 | 339 | $form .= '</tr>'; |
340 | 340 | $form .= '<tr>'; |
341 | | - $form .= '<td class="label">' . Xml::label( wfMsg( 'payflowpro_gateway-email-receipt' ), 'emailAdd' ) . '</td>'; |
342 | | - $form .= '<td>' . Xml::input( 'emailAdd', '30', $this->form_data['email'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \''.wfMsg( 'payflowpro_gateway-donor-email' ).'\' )', 'maxlength' => '64', 'id' => 'emailAdd', 'class' => 'fullwidth' ) ) . |
| 341 | + $form .= '<td class="label">' . Xml::label( wfMsg( 'donate_interface-email-receipt' ), 'emailAdd' ) . '</td>'; |
| 342 | + $form .= '<td>' . Xml::input( 'emailAdd', '30', $this->form_data['email'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \''.wfMsg( 'donate_interface-donor-email' ).'\' )', 'maxlength' => '64', 'id' => 'emailAdd', 'class' => 'fullwidth' ) ) . |
343 | 343 | Html::hidden( 'email-opt', 1 ) . |
344 | 344 | '</td>'; |
345 | 345 | $form .= '</tr>'; |
— | — | @@ -347,7 +347,7 @@ |
348 | 348 | $comment_opt_value = ( $wgRequest->wasPosted() ) ? $this->form_data[ 'comment-option' ] : true; |
349 | 349 | $form .= '<tr>'; |
350 | 350 | $form .= '<td class="check-option" colspan="2">' . Xml::check( 'comment-option', $comment_opt_value ); |
351 | | - $form .= ' ' . Xml::label( wfMsg( 'payflowpro_gateway-anon-message' ), 'comment-option' ) . '</td>'; |
| 351 | + $form .= ' ' . Xml::label( wfMsg( 'donate_interface-anon-message' ), 'comment-option' ) . '</td>'; |
352 | 352 | $form .= '</tr>'; |
353 | 353 | |
354 | 354 | $form .= $this->getEmailOptField(); |
— | — | @@ -413,9 +413,9 @@ |
414 | 414 | $form = Xml::openElement( 'div', array( 'class' => 'payflow-cc-form-section', 'id' => 'payflowpro_gateway-donate-addl-info' ) ); |
415 | 415 | $form .= Xml::openElement( 'div', array( 'id' => 'payflowpro_gateway-donate-addl-info-text' ) ); |
416 | 416 | $form .= Xml::tags( 'div', array( 'style' => 'text-align:center;' ), '* * *' ); |
417 | | - $form .= Xml::tags( 'div', array( 'class' => '' ), wfMsg( 'payflowpro_gateway-credit-storage-processing' ) ); |
418 | | - $form .= Xml::tags( 'div', array( 'class' => '' ), wfMsg( 'payflowpro_gateway-otherways-alt' ) ); |
419 | | - $form .= Xml::tags( 'div', array( 'class' => '' ), wfMsg( 'payflowpro_gateway-question-comment' ) ); |
| 417 | + $form .= Xml::tags( 'div', array( 'class' => '' ), wfMsg( 'donate_interface-credit-storage-processing' ) ); |
| 418 | + $form .= Xml::tags( 'div', array( 'class' => '' ), wfMsg( 'donate_interface-otherways-alt' ) ); |
| 419 | + $form .= Xml::tags( 'div', array( 'class' => '' ), wfMsg( 'donate_interface-question-comment' ) ); |
420 | 420 | $form .= Xml::closeElement( 'div' ); // close div#payflowpro_gateway-donate-addl-info-text |
421 | 421 | $form .= Xml::closeElement( 'div' ); // close div#payflowpro_gateway-donate-addl-info |
422 | 422 | return $form; |
Index: trunk/extensions/DonationInterface/gateway_forms/TwoColumnPayPal.php |
— | — | @@ -46,7 +46,7 @@ |
47 | 47 | protected function generatePersonalContainer() { |
48 | 48 | $form = ''; |
49 | 49 | $form .= Xml::openElement( 'div', array( 'id' => 'payflowpro_gateway-personal-info' ) ); ; |
50 | | - $form .= Xml::tags( 'h3', array( 'class' => 'payflow-cc-form-header', 'id' => 'payflow-cc-form-header-personal' ), wfMsg( 'payflowpro_gateway-make-your-donation' ) ); |
| 50 | + $form .= Xml::tags( 'h3', array( 'class' => 'payflow-cc-form-header', 'id' => 'payflow-cc-form-header-personal' ), wfMsg( 'donate_interface-make-your-donation' ) ); |
51 | 51 | $form .= Xml::openElement( 'table', array( 'id' => 'payflow-table-donor' ) ); |
52 | 52 | |
53 | 53 | $form .= $this->generatePersonalFields(); |
Index: trunk/extensions/DonationInterface/gateway_forms/SingleColumn.php |
— | — | @@ -7,7 +7,7 @@ |
8 | 8 | |
9 | 9 | // set the path to css, before the parent constructor is called, checking to make sure some child class hasn't already set this |
10 | 10 | if ( !strlen( $this->getStylePath() ) ) { |
11 | | - $this->setStylePath( $wgScriptPath . '/extensions/DonationInterface/payflowpro_gateway/forms/css/SingleColumn.css' ); |
| 11 | + $this->setStylePath( $wgScriptPath . '/extensions/DonationInterface/gateway_forms/css/SingleColumn.css' ); |
12 | 12 | } |
13 | 13 | |
14 | 14 | parent::__construct( $form_data, $form_errors, $gateway ); |
Index: trunk/extensions/DonationInterface/gateway_forms/TwoStepTwoColumnLetterCA.php |
— | — | @@ -37,7 +37,7 @@ |
38 | 38 | // add noscript tags for javascript disabled browsers |
39 | 39 | $form .= $this->getNoScript(); |
40 | 40 | |
41 | | - $form .= Xml::tags( 'h2', array( 'id' => 'donate-head' ), wfMsg( 'payflowpro_gateway-please-complete' ) ); |
| 41 | + $form .= Xml::tags( 'h2', array( 'id' => 'donate-head' ), wfMsg( 'donate_interface-please-complete' ) ); |
42 | 42 | |
43 | 43 | // provide a place at the top of the form for displaying general messages |
44 | 44 | if ( $this->form_errors['general'] ) { |
— | — | @@ -93,7 +93,7 @@ |
94 | 94 | $form .= '<td colspan="2"><span class="creditcard-error-msg">' . $this->form_errors['invalidamount'] . '</span></td>'; |
95 | 95 | $form .= '</tr>'; |
96 | 96 | $form .= '<tr>'; |
97 | | - $form .= '<td class="label">' . Xml::label( wfMsg( 'payflowpro_gateway-donor-amount' ), 'amount' ) . '</td>'; |
| 97 | + $form .= '<td class="label">' . Xml::label( wfMsg( 'donate_interface-donor-amount' ), 'amount' ) . '</td>'; |
98 | 98 | $form .= '<td>' . Xml::input( 'amount', '7', $this->form_data['amount'], array( 'type' => 'text', 'maxlength' => '10', 'id' => 'amount' ) ) . |
99 | 99 | ' ' . $this->generateCurrencyDropdown() . '</td>'; |
100 | 100 | $form .= '</tr>'; |
— | — | @@ -135,7 +135,7 @@ |
136 | 136 | $form .= '<td colspan=2><span class="creditcard-error-msg">' . $this->form_errors['state'] . '</span></td>'; |
137 | 137 | $form .= '</tr>'; |
138 | 138 | $form .= '<tr>'; |
139 | | - $form .= '<td class="label">' . Xml::label( wfMsg( 'payflowpro_gateway-state-province' ), 'state' ) . '</td>'; |
| 139 | + $form .= '<td class="label">' . Xml::label( wfMsg( 'donate_interface-state-province' ), 'state' ) . '</td>'; |
140 | 140 | $form .= '<td>' . $this->generateStateDropdown() . '</td>'; |
141 | 141 | $form .= '</tr>'; |
142 | 142 | |
— | — | @@ -147,7 +147,7 @@ |
148 | 148 | $form .= '<td colspan=2><span class="creditcard-error-msg">' . $this->form_errors['country'] . '</span></td>'; |
149 | 149 | $form .= '</tr>'; |
150 | 150 | $form .= '<tr>'; |
151 | | - $form .= '<td class="label">' . Xml::label( wfMsg( 'payflowpro_gateway-donor-country' ), 'country' ) . '</td>'; |
| 151 | + $form .= '<td class="label">' . Xml::label( wfMsg( 'donate_interface-donor-country' ), 'country' ) . '</td>'; |
152 | 152 | $form .= '<td>' . $this->generateCountryDropdown( 124 ) . '</td>'; // Canada default |
153 | 153 | $form .= '</tr>'; |
154 | 154 | |
Index: trunk/extensions/DonationInterface/gateway_forms/TwoColumnLetter.php |
— | — | @@ -41,7 +41,7 @@ |
42 | 42 | // add noscript tags for javascript disabled browsers |
43 | 43 | $form .= $this->getNoScript(); |
44 | 44 | |
45 | | - $form .= Xml::tags( 'h2', array( 'id' => 'donate-head' ), wfMsg( 'payflowpro_gateway-make-your-donation' ) ); |
| 45 | + $form .= Xml::tags( 'h2', array( 'id' => 'donate-head' ), wfMsg( 'donate_interface-make-your-donation' ) ); |
46 | 46 | |
47 | 47 | // provide a place at the top of the form for displaying general messages |
48 | 48 | if ( $this->form_errors['general'] ) { |
Index: trunk/extensions/DonationInterface/gateway_forms/TwoStepTwoColumnPremium.php |
— | — | @@ -6,7 +6,7 @@ |
7 | 7 | |
8 | 8 | // set the path to css, before the parent constructor is called, checking to make sure some child class hasn't already set this |
9 | 9 | if ( !strlen( $this->getStylePath() ) ) { |
10 | | - $this->setStylePath( $wgScriptPath . '/extensions/DonationInterface/payflowpro_gateway/forms/css/TwoStepTwoColumnPremium.css' ); |
| 10 | + $this->setStylePath( $wgScriptPath . '/extensions/DonationInterface/gateway_forms/css/TwoStepTwoColumnPremium.css' ); |
11 | 11 | } |
12 | 12 | |
13 | 13 | parent::__construct( $form_data, $form_errors, $gateway ); |
— | — | @@ -22,14 +22,14 @@ |
23 | 23 | $form .= Xml::openElement( 'td', array( 'id' => 'appeal', 'valign' => 'top' ) ); |
24 | 24 | |
25 | 25 | $form .= Xml::openElement( 'div', array( 'id' => 'premium-confirmation' ) ); |
26 | | - $form .= Xml::tags( 'div', array( 'id' => 'premium-header' ), wfMsg( 'payflowpro_gateway-tshirt-confirmation' ) ); |
| 26 | + $form .= Xml::tags( 'div', array( 'id' => 'premium-header' ), wfMsg( 'donate_interface-tshirt-confirmation' ) ); |
27 | 27 | $form .= Xml::element( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/gateway_forms/includes/wikipedia-ten-tshirt-front.png", 'width' => '300', 'height' => '280' ) ) . "<br/>"; |
28 | 28 | $form .= Xml::openElement( 'div', array( 'id' => 'premium-values' ) ); |
29 | 29 | $form .= Xml::openElement( 'div', array( 'id' => 'premium-size' ) ); |
30 | 30 | $sizeDisplay = '<span id="size-display">'.$wgRequest->getText( 'size' ).'</span>'; |
31 | | - $form .= wfMsg( 'payflowpro_gateway-shirt-size-2', $sizeDisplay ); |
| 31 | + $form .= wfMsg( 'donate_interface-shirt-size-2', $sizeDisplay ); |
32 | 32 | $form .= Xml::closeElement( 'div' ); // close div#premium-size |
33 | | - $form .= wfMsg( 'payflowpro_gateway-on-the-back' ) . "<br/>"; |
| 33 | + $form .= wfMsg( 'donate_interface-on-the-back' ) . "<br/>"; |
34 | 34 | $form .= Xml::openElement( 'div', array( 'id' => 'premium-language' ) ); |
35 | 35 | $form .= Xml::element( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/gateway_forms/includes/wordmarks/".$wgRequest->getText( 'premium_language' )."-wordmark.png", 'width' => '200', 'height' => '92' ) ); |
36 | 36 | $form .= Xml::closeElement( 'div' ); // close div#premium-language |
— | — | @@ -43,7 +43,7 @@ |
44 | 44 | // add noscript tags for javascript disabled browsers |
45 | 45 | $form .= $this->getNoScript(); |
46 | 46 | |
47 | | - $form .= Xml::tags( 'h2', array( 'id' => 'donate-head' ), wfMsg( 'payflowpro_gateway-please-complete' ) ); |
| 47 | + $form .= Xml::tags( 'h2', array( 'id' => 'donate-head' ), wfMsg( 'donate_interface-please-complete' ) ); |
48 | 48 | |
49 | 49 | // provide a place at the top of the form for displaying general messages |
50 | 50 | if ( $this->form_errors['general'] ) { |
— | — | @@ -99,7 +99,7 @@ |
100 | 100 | $form .= '<td colspan="2"><span class="creditcard-error-msg">' . $this->form_errors['invalidamount'] . '</span></td>'; |
101 | 101 | $form .= '</tr>'; |
102 | 102 | $form .= '<tr>'; |
103 | | - $form .= '<td class="label">' . Xml::label( wfMsg( 'payflowpro_gateway-donor-amount' ), 'amount' ) . '</td>'; |
| 103 | + $form .= '<td class="label">' . Xml::label( wfMsg( 'donate_interface-donor-amount' ), 'amount' ) . '</td>'; |
104 | 104 | $form .= '<td>' . Xml::input( 'amount', '7', $this->form_data['amount'], array( 'type' => 'text', 'maxlength' => '10', 'id' => 'amount' ) ) . |
105 | 105 | ' ' . $this->generateCurrencyDropdown() . '</td>'; |
106 | 106 | $form .= '</tr>'; |
— | — | @@ -149,14 +149,14 @@ |
150 | 150 | $form .= '<td colspan="2"><span class="creditcard-error-msg"></span></td>'; |
151 | 151 | $form .= '</tr>'; |
152 | 152 | $form .= '<tr>'; |
153 | | - $form .= '<td colspan="2"><label for="shipping"><input id="shipping" name="shipping" type="checkbox" checked="checked"/> '.wfMsg( 'payflowpro_gateway-shipping-address-same' ).'</label></td>'; |
| 153 | + $form .= '<td colspan="2"><label for="shipping"><input id="shipping" name="shipping" type="checkbox" checked="checked"/> '.wfMsg( 'donate_interface-shipping-address-same' ).'</label></td>'; |
154 | 154 | $form .= '</tr>'; |
155 | 155 | |
156 | 156 | $form .= '<tr>'; |
157 | 157 | $form .= '<td colspan=2><span class="creditcard-error-msg">' . $this->form_errors['country2'] . '</span></td>'; |
158 | 158 | $form .= '</tr>'; |
159 | 159 | $form .= '<tr>'; |
160 | | - $form .= '<td class="label">' . Xml::label( wfMsg( 'payflowpro_gateway-donor-country' ), 'country2' ) . '</td>'; |
| 160 | + $form .= '<td class="label">' . Xml::label( wfMsg( 'donate_interface-donor-country' ), 'country2' ) . '</td>'; |
161 | 161 | $form .= '<td>' . $this->generateCountryDropdown() . '</td>'; |
162 | 162 | $form .= '</tr>'; |
163 | 163 | */ |
Index: trunk/extensions/DonationInterface/gateway_forms/TwoStepTwoColumn.php |
— | — | @@ -70,11 +70,11 @@ |
71 | 71 | // submit button |
72 | 72 | $form = Xml::openElement( 'div', array( 'id' => 'payflowpro_gateway-form-submit' ) ); |
73 | 73 | $form .= Xml::openElement( 'div', array( 'id' => 'mw-donate-submit-button' ) ); |
74 | | - // $form .= Xml::submitButton( wfMsg( 'payflowpro_gateway-submit-button' )); |
75 | | - $form .= Xml::element( 'input', array( 'class' => 'button-plain', 'value' => wfMsg( 'payflowpro_gateway-cc-button' ), 'type' => 'submit' ) ); |
| 74 | + // $form .= Xml::submitButton( wfMsg( 'donate_interface-submit-button' )); |
| 75 | + $form .= Xml::element( 'input', array( 'class' => 'button-plain', 'value' => wfMsg( 'donate_interface-cc-button' ), 'type' => 'submit' ) ); |
76 | 76 | $form .= Xml::closeElement( 'div' ); // close div#mw-donate-submit-button |
77 | 77 | $form .= Xml::openElement( 'div', array( 'class' => 'mw-donate-submessage', 'id' => 'payflowpro_gateway-donate-submessage' ) ) . |
78 | | - wfMsg( 'payflowpro_gateway-donate-click' ); |
| 78 | + wfMsg( 'donate_interface-donate-click' ); |
79 | 79 | $form .= Xml::closeElement( 'div' ); // close div#payflowpro_gateway-donate-submessage |
80 | 80 | $form .= Xml::closeElement( 'div' ); // close div#payflowpro_gateway-form-submit |
81 | 81 | return $form; |
— | — | @@ -98,7 +98,7 @@ |
99 | 99 | protected function generatePersonalContainer() { |
100 | 100 | $form = ''; |
101 | 101 | $form .= Xml::openElement( 'div', array( 'id' => 'payflowpro_gateway-personal-info' ) ); ; |
102 | | - //$form .= Xml::tags( 'h3', array( 'class' => 'payflow-cc-form-header', 'id' => 'payflow-cc-form-header-personal' ), wfMsg( 'payflowpro_gateway-cc-form-header-personal' ) ); |
| 102 | + //$form .= Xml::tags( 'h3', array( 'class' => 'payflow-cc-form-header', 'id' => 'payflow-cc-form-header-personal' ), wfMsg( 'donate_interface-cc-form-header-personal' ) ); |
103 | 103 | $form .= Xml::openElement( 'table', array( 'id' => 'payflow-table-donor' ) ); |
104 | 104 | |
105 | 105 | $form .= $this->generatePersonalFields(); |
— | — | @@ -139,7 +139,7 @@ |
140 | 140 | $form = ''; |
141 | 141 | // credit card info |
142 | 142 | $form .= Xml::openElement( 'div', array( 'id' => 'payflowpro_gateway-payment-info' ) ); |
143 | | - //$form .= Xml::tags( 'h3', array( 'class' => 'payflow-cc-form-header', 'id' => 'payflow-cc-form-header-payment' ), wfMsg( 'payflowpro_gateway-cc-form-header-payment' ) ); |
| 143 | + //$form .= Xml::tags( 'h3', array( 'class' => 'payflow-cc-form-header', 'id' => 'payflow-cc-form-header-payment' ), wfMsg( 'donate_interface-cc-form-header-payment' ) ); |
144 | 144 | $form .= Xml::openElement( 'table', array( 'id' => 'payflow-table-cc' ) ); |
145 | 145 | |
146 | 146 | $form .= $this->generatePaymentFields(); |
— | — | @@ -158,7 +158,7 @@ |
159 | 159 | $form .= '<td colspan="2"><span class="creditcard-error-msg">' . $this->form_errors['invalidamount'] . '</span></td>'; |
160 | 160 | $form .= '</tr>'; |
161 | 161 | $form .= '<tr>'; |
162 | | - $form .= '<td class="label">' . Xml::label( wfMsg( 'payflowpro_gateway-donor-amount' ), 'amount' ) . '</td>'; |
| 162 | + $form .= '<td class="label">' . Xml::label( wfMsg( 'donate_interface-donor-amount' ), 'amount' ) . '</td>'; |
163 | 163 | $form .= '<td>' . Xml::input( 'amount', '7', $this->form_data['amount'], array( 'type' => 'text', 'maxlength' => '10', 'id' => 'amount' ) ) . |
164 | 164 | ' ' . $this->generateCurrencyDropdown() . '</td>'; |
165 | 165 | $form .= '</tr>'; |
Index: trunk/extensions/DonationInterface/gateway_forms/TwoStepTwoColumnLetter3.php |
— | — | @@ -15,12 +15,12 @@ |
16 | 16 | public function loadPlaceholders() { |
17 | 17 | global $wgOut; |
18 | 18 | // form placeholder values |
19 | | - $first = wfMsg( 'payflowpro_gateway-donor-fname' ); |
20 | | - $last = wfMsg( 'payflowpro_gateway-donor-lname' ); |
21 | | - $street = wfMsg( 'payflowpro_gateway-donor-street' ); |
22 | | - $city = wfMsg( 'payflowpro_gateway-donor-city' ); |
23 | | - $zip = wfMsg( 'payflowpro_gateway-zip-code' ); |
24 | | - $email = wfMsg( 'payflowpro_gateway-donor-email' ); |
| 19 | + $first = wfMsg( 'donate_interface-donor-fname' ); |
| 20 | + $last = wfMsg( 'donate_interface-donor-lname' ); |
| 21 | + $street = wfMsg( 'donate_interface-donor-street' ); |
| 22 | + $city = wfMsg( 'donate_interface-donor-city' ); |
| 23 | + $zip = wfMsg( 'donate_interface-zip-code' ); |
| 24 | + $email = wfMsg( 'donate_interface-donor-email' ); |
25 | 25 | $js = <<<EOT |
26 | 26 | <script type="text/javascript"> |
27 | 27 | ( function( $ ) { |
— | — | @@ -133,7 +133,7 @@ |
134 | 134 | // add noscript tags for javascript disabled browsers |
135 | 135 | $form .= $this->getNoScript(); |
136 | 136 | |
137 | | - $form .= Xml::tags( 'h2', array( 'id' => 'donate-head' ), wfMsg( 'payflowpro_gateway-please-complete' ) ); |
| 137 | + $form .= Xml::tags( 'h2', array( 'id' => 'donate-head' ), wfMsg( 'donate_interface-please-complete' ) ); |
138 | 138 | |
139 | 139 | // provide a place at the top of the form for displaying general messages |
140 | 140 | if ( $this->form_errors['general'] ) { |
— | — | @@ -168,7 +168,7 @@ |
169 | 169 | |
170 | 170 | // submit button |
171 | 171 | $form .= Xml::openElement( 'div', array( 'id' => 'mw-donate-submit-button' ) ); |
172 | | - // $form .= Xml::submitButton( wfMsg( 'payflowpro_gateway-submit-button' )); |
| 172 | + // $form .= Xml::submitButton( wfMsg( 'donate_interface-submit-button' )); |
173 | 173 | $form .= ' <br/>' . Xml::element( 'input', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/gateway_forms/includes/submit-donation-button.png", 'alt' => 'Submit donation', 'type' => 'image' ) ); |
174 | 174 | $form .= Xml::closeElement( 'div' ); // close div#mw-donate-submit-button |
175 | 175 | $form .= Xml::openElement( 'div', array( 'class' => 'mw-donate-submessage', 'id' => 'payflowpro_gateway-donate-submessage' ) ) . |
— | — | @@ -201,12 +201,12 @@ |
202 | 202 | $form .= '<td colspan="2">'; |
203 | 203 | $form .= '<table cellspacing="0" cellpadding="4" border="1" id="donation_amount">'; |
204 | 204 | $form .= '<tr>'; |
205 | | - $form .= '<td class="amount_header">'.wfMsg( 'payflowpro_gateway-description' ).'</td>'; |
206 | | - $form .= '<td class="amount_header" style="text-align:right;width:75px;">'.wfMsg( 'payflowpro_gateway-donor-amount' ).'</td>'; |
207 | | - $form .= '<td class="amount_header" style="text-align:right;width:75px;">'.wfMsg( 'payflowpro_gateway-donor-currency-label' ).'</td>'; |
| 205 | + $form .= '<td class="amount_header">'.wfMsg( 'donate_interface-description' ).'</td>'; |
| 206 | + $form .= '<td class="amount_header" style="text-align:right;width:75px;">'.wfMsg( 'donate_interface-donor-amount' ).'</td>'; |
| 207 | + $form .= '<td class="amount_header" style="text-align:right;width:75px;">'.wfMsg( 'donate_interface-donor-currency-label' ).'</td>'; |
208 | 208 | $form .= '</tr>'; |
209 | 209 | $form .= '<tr>'; |
210 | | - $form .= '<td class="amount_data">'.wfMsg( 'payflowpro_gateway-donation' ).'</td>'; |
| 210 | + $form .= '<td class="amount_data">'.wfMsg( 'donate_interface-donation' ).'</td>'; |
211 | 211 | $form .= '<td class="amount_data" style="text-align:right;width:75px;">'.$this->form_data['amount'] . |
212 | 212 | Html::hidden( 'amount', $this->form_data['amount'] ) . |
213 | 213 | '</td>'; |
— | — | @@ -219,7 +219,7 @@ |
220 | 220 | $form .= '</tr>'; |
221 | 221 | |
222 | 222 | $form .= '<tr>'; |
223 | | - $form .= '<td colspan="2"><h3 class="cc_header">' . wfMsg( 'payflowpro_gateway-cc-form-header-personal' ) . |
| 223 | + $form .= '<td colspan="2"><h3 class="cc_header">' . wfMsg( 'donate_interface-cc-form-header-personal' ) . |
224 | 224 | Xml::element( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/gateway_forms/includes/padlock.gif", 'style' => 'vertical-align:baseline;margin-left:8px;' ) ) . '</h3></td>'; |
225 | 225 | $form .= '</tr>'; |
226 | 226 | |
— | — | @@ -247,14 +247,14 @@ |
248 | 248 | $form .= '</tr>'; |
249 | 249 | } |
250 | 250 | $form .= '<tr>'; |
251 | | - $form .= '<td class="label">' . Xml::label( wfMsg( 'payflowpro_gateway-donor-card-num' ), 'card_num' ) . '</td>'; |
| 251 | + $form .= '<td class="label">' . Xml::label( wfMsg( 'donate_interface-donor-card-num' ), 'card_num' ) . '</td>'; |
252 | 252 | $form .= '<td>' . Xml::input( 'card_num', '30', $card_num, array( 'type' => 'text', 'maxlength' => '100', 'id' => 'card_num', 'class' => 'fullwidth', 'autocomplete' => 'off' ) ) . |
253 | 253 | '</td>'; |
254 | 254 | $form .= '</tr>'; |
255 | 255 | |
256 | 256 | // expiry |
257 | 257 | $form .= '<tr>'; |
258 | | - $form .= '<td class="label">' . Xml::label( wfMsg( 'payflowpro_gateway-donor-expiration' ), 'expiration' ) . '</td>'; |
| 258 | + $form .= '<td class="label">' . Xml::label( wfMsg( 'donate_interface-donor-expiration' ), 'expiration' ) . '</td>'; |
259 | 259 | $form .= '<td>' . $this->generateExpiryMonthDropdown() . ' / ' . $this->generateExpiryYearDropdown() . '</td>'; |
260 | 260 | $form .= '</tr>'; |
261 | 261 | |
— | — | @@ -269,9 +269,9 @@ |
270 | 270 | $form .= '<td colspan=2><span class="creditcard-error-msg">' . $this->form_errors['lname'] . '</span></td>'; |
271 | 271 | $form .= '</tr>'; |
272 | 272 | $form .= '<tr>'; |
273 | | - $form .= '<td class="label">' . Xml::label( wfMsg( 'payflowpro_gateway-name-on-card' ), 'fname' ) . '</td>'; |
274 | | - $form .= '<td>' . Xml::input( 'fname', '30', $this->form_data['fname'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \''.wfMsg( 'payflowpro_gateway-donor-fname' ).'\' )', 'maxlength' => '25', 'class' => 'required', 'id' => 'fname' ) ) . |
275 | | - Xml::input( 'lname', '30', $this->form_data['lname'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \''.wfMsg( 'payflowpro_gateway-donor-lname' ).'\' )', 'maxlength' => '25', 'id' => 'lname' ) ) . '</td>'; |
| 273 | + $form .= '<td class="label">' . Xml::label( wfMsg( 'donate_interface-name-on-card' ), 'fname' ) . '</td>'; |
| 274 | + $form .= '<td>' . Xml::input( 'fname', '30', $this->form_data['fname'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \''.wfMsg( 'donate_interface-donor-fname' ).'\' )', 'maxlength' => '25', 'class' => 'required', 'id' => 'fname' ) ) . |
| 275 | + Xml::input( 'lname', '30', $this->form_data['lname'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \''.wfMsg( 'donate_interface-donor-lname' ).'\' )', 'maxlength' => '25', 'id' => 'lname' ) ) . '</td>'; |
276 | 276 | $form .= "</tr>"; |
277 | 277 | |
278 | 278 | // street |
— | — | @@ -279,8 +279,8 @@ |
280 | 280 | $form .= '<td colspan=2><span class="creditcard-error-msg">' . $this->form_errors['street'] . '</span></td>'; |
281 | 281 | $form .= '</tr>'; |
282 | 282 | $form .= '<tr>'; |
283 | | - $form .= '<td class="label">' . Xml::label( wfMsg( 'payflowpro_gateway-billing-address' ), 'street' ) . '</td>'; |
284 | | - $form .= '<td>' . Xml::input( 'street', '30', $this->form_data['street'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \''.wfMsg( 'payflowpro_gateway-donor-street' ).'\' )', 'maxlength' => '100', 'id' => 'street', 'class' => 'fullwidth' ) ) . |
| 283 | + $form .= '<td class="label">' . Xml::label( wfMsg( 'donate_interface-billing-address' ), 'street' ) . '</td>'; |
| 284 | + $form .= '<td>' . Xml::input( 'street', '30', $this->form_data['street'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \''.wfMsg( 'donate_interface-donor-street' ).'\' )', 'maxlength' => '100', 'id' => 'street', 'class' => 'fullwidth' ) ) . |
285 | 285 | '</td>'; |
286 | 286 | $form .= '</tr>'; |
287 | 287 | |
— | — | @@ -290,9 +290,9 @@ |
291 | 291 | $form .= '</tr>'; |
292 | 292 | $form .= '<tr>'; |
293 | 293 | $form .= '<td class="label"> </td>'; |
294 | | - $form .= '<td>' . Xml::input( 'city', '18', $this->form_data['city'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \''.wfMsg( 'payflowpro_gateway-donor-city' ).'\' )', 'maxlength' => '40', 'id' => 'city' ) ) . ' ' . |
| 294 | + $form .= '<td>' . Xml::input( 'city', '18', $this->form_data['city'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \''.wfMsg( 'donate_interface-donor-city' ).'\' )', 'maxlength' => '40', 'id' => 'city' ) ) . ' ' . |
295 | 295 | $this->generateStateDropdown() . ' ' . |
296 | | - Xml::input( 'zip', '5', $this->form_data['zip'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \''.wfMsg( 'payflowpro_gateway-zip-code' ).'\' )', 'maxlength' => '10', 'id' => 'zip' ) ) . |
| 296 | + Xml::input( 'zip', '5', $this->form_data['zip'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \''.wfMsg( 'donate_interface-zip-code' ).'\' )', 'maxlength' => '10', 'id' => 'zip' ) ) . |
297 | 297 | Html::hidden( 'country', 'US' ) . |
298 | 298 | '</td>'; |
299 | 299 | $form .= '</tr>'; |
— | — | @@ -313,8 +313,8 @@ |
314 | 314 | $form .= '<td colspan=2><span class="creditcard-error-msg">' . $this->form_errors['emailAdd'] . '</span></td>'; |
315 | 315 | $form .= '</tr>'; |
316 | 316 | $form .= '<tr>'; |
317 | | - $form .= '<td class="label">' . Xml::label( wfMsg( 'payflowpro_gateway-email-receipt' ), 'emailAdd' ) . '</td>'; |
318 | | - $form .= '<td>' . Xml::input( 'emailAdd', '30', $this->form_data['email'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \''.wfMsg( 'payflowpro_gateway-donor-email' ).'\' )', 'maxlength' => '64', 'id' => 'emailAdd', 'class' => 'fullwidth' ) ) . |
| 317 | + $form .= '<td class="label">' . Xml::label( wfMsg( 'donate_interface-email-receipt' ), 'emailAdd' ) . '</td>'; |
| 318 | + $form .= '<td>' . Xml::input( 'emailAdd', '30', $this->form_data['email'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \''.wfMsg( 'donate_interface-donor-email' ).'\' )', 'maxlength' => '64', 'id' => 'emailAdd', 'class' => 'fullwidth' ) ) . |
319 | 319 | '</td>'; |
320 | 320 | $form .= '</tr>'; |
321 | 321 | |
— | — | @@ -344,9 +344,9 @@ |
345 | 345 | $form = Xml::openElement( 'div', array( 'class' => 'payflow-cc-form-section', 'id' => 'payflowpro_gateway-donate-addl-info' ) ); |
346 | 346 | $form .= Xml::openElement( 'div', array( 'id' => 'payflowpro_gateway-donate-addl-info-text' ) ); |
347 | 347 | $form .= Xml::tags( 'div', array( 'style' => 'text-align:center;' ), '* * *' ); |
348 | | - $form .= Xml::tags( 'div', array( 'class' => '' ), wfMsg( 'payflowpro_gateway-credit-storage-processing' ) ); |
349 | | - $form .= Xml::tags( 'div', array( 'class' => '' ), wfMsg( 'payflowpro_gateway-otherways-alt' ) ); |
350 | | - $form .= Xml::tags( 'div', array( 'class' => '' ), wfMsg( 'payflowpro_gateway-question-comment' ) ); |
| 348 | + $form .= Xml::tags( 'div', array( 'class' => '' ), wfMsg( 'donate_interface-credit-storage-processing' ) ); |
| 349 | + $form .= Xml::tags( 'div', array( 'class' => '' ), wfMsg( 'donate_interface-otherways-alt' ) ); |
| 350 | + $form .= Xml::tags( 'div', array( 'class' => '' ), wfMsg( 'donate_interface-question-comment' ) ); |
351 | 351 | $form .= Xml::closeElement( 'div' ); // close div#payflowpro_gateway-donate-addl-info-text |
352 | 352 | $form .= Xml::closeElement( 'div' ); // close div#payflowpro_gateway-donate-addl-info |
353 | 353 | return $form; |
Index: trunk/extensions/DonationInterface/gateway_forms/TwoStepTwoColumnPremiumUS.php |
— | — | @@ -15,12 +15,12 @@ |
16 | 16 | public function loadPlaceholders() { |
17 | 17 | global $wgOut; |
18 | 18 | // form placeholder values |
19 | | - $first = wfMsg( 'payflowpro_gateway-donor-fname' ); |
20 | | - $last = wfMsg( 'payflowpro_gateway-donor-lname' ); |
21 | | - $street = wfMsg( 'payflowpro_gateway-donor-street' ); |
22 | | - $city = wfMsg( 'payflowpro_gateway-donor-city' ); |
23 | | - $zip = wfMsg( 'payflowpro_gateway-zip-code' ); |
24 | | - $email = wfMsg( 'payflowpro_gateway-donor-email' ); |
| 19 | + $first = wfMsg( 'donate_interface-donor-fname' ); |
| 20 | + $last = wfMsg( 'donate_interface-donor-lname' ); |
| 21 | + $street = wfMsg( 'donate_interface-donor-street' ); |
| 22 | + $city = wfMsg( 'donate_interface-donor-city' ); |
| 23 | + $zip = wfMsg( 'donate_interface-zip-code' ); |
| 24 | + $email = wfMsg( 'donate_interface-donor-email' ); |
25 | 25 | $js = <<<EOT |
26 | 26 | <script type="text/javascript"> |
27 | 27 | function loadPlaceholders() { |
— | — | @@ -123,7 +123,7 @@ |
124 | 124 | |
125 | 125 | $form .= Xml::openElement( 'div', array( 'id' => 'premium-confirmation' ) ); |
126 | 126 | $form .= Xml::element( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/gateway_forms/includes/Wikipedia-ten-tshirt-back.jpg", 'width' => '300', 'height' => '300' ) ); |
127 | | - $form .= wfMsg( 'payflowpro_gateway-shirt-size-2', $wgRequest->getText( 'size' ) ); |
| 127 | + $form .= wfMsg( 'donate_interface-shirt-size-2', $wgRequest->getText( 'size' ) ); |
128 | 128 | $form .= Xml::closeElement( 'div' ); // close div#premium-confirmation |
129 | 129 | |
130 | 130 | $form .= Xml::closeElement( 'td' ); |
— | — | @@ -133,7 +133,7 @@ |
134 | 134 | // add noscript tags for javascript disabled browsers |
135 | 135 | $form .= $this->getNoScript(); |
136 | 136 | |
137 | | - $form .= Xml::tags( 'h2', array( 'id' => 'donate-head' ), wfMsg( 'payflowpro_gateway-please-complete' ) ); |
| 137 | + $form .= Xml::tags( 'h2', array( 'id' => 'donate-head' ), wfMsg( 'donate_interface-please-complete' ) ); |
138 | 138 | |
139 | 139 | // provide a place at the top of the form for displaying general messages |
140 | 140 | if ( $this->form_errors['general'] ) { |
— | — | @@ -183,12 +183,12 @@ |
184 | 184 | $form .= '<td colspan="2">'; |
185 | 185 | $form .= '<table cellspacing="0" cellpadding="4" border="1" id="donation_amount">'; |
186 | 186 | $form .= '<tr>'; |
187 | | - $form .= '<td class="amount_header">'.wfMsg( 'payflowpro_gateway-description' ).'</td>'; |
188 | | - $form .= '<td class="amount_header" style="text-align:right;width:75px;">'.wfMsg( 'payflowpro_gateway-donor-amount' ).'</td>'; |
189 | | - $form .= '<td class="amount_header" style="text-align:right;width:75px;">'.wfMsg( 'payflowpro_gateway-donor-currency-label' ).'</td>'; |
| 187 | + $form .= '<td class="amount_header">'.wfMsg( 'donate_interface-description' ).'</td>'; |
| 188 | + $form .= '<td class="amount_header" style="text-align:right;width:75px;">'.wfMsg( 'donate_interface-donor-amount' ).'</td>'; |
| 189 | + $form .= '<td class="amount_header" style="text-align:right;width:75px;">'.wfMsg( 'donate_interface-donor-currency-label' ).'</td>'; |
190 | 190 | $form .= '</tr>'; |
191 | 191 | $form .= '<tr>'; |
192 | | - $form .= '<td class="amount_data">'.wfMsg( 'payflowpro_gateway-donation' ).'</td>'; |
| 192 | + $form .= '<td class="amount_data">'.wfMsg( 'donate_interface-donation' ).'</td>'; |
193 | 193 | $form .= '<td class="amount_data" style="text-align:right;width:75px;">'.$this->form_data['amount'] . |
194 | 194 | Html::hidden( 'amount', $this->form_data['amount'] ) . |
195 | 195 | '</td>'; |
— | — | @@ -201,7 +201,7 @@ |
202 | 202 | $form .= '</tr>'; |
203 | 203 | |
204 | 204 | $form .= '<tr>'; |
205 | | - $form .= '<td colspan="2"><h3 class="cc_header">' . wfMsg( 'payflowpro_gateway-cc-form-header-personal' ) . |
| 205 | + $form .= '<td colspan="2"><h3 class="cc_header">' . wfMsg( 'donate_interface-cc-form-header-personal' ) . |
206 | 206 | Xml::element( 'img', array( 'src' => $wgScriptPath . "/extensions/DonationInterface/gateway_forms/includes/padlock.gif", 'style' => 'vertical-align:baseline;margin-left:8px;' ) ) . '</h3></td>'; |
207 | 207 | $form .= '</tr>'; |
208 | 208 | |
— | — | @@ -229,14 +229,14 @@ |
230 | 230 | $form .= '</tr>'; |
231 | 231 | } |
232 | 232 | $form .= '<tr>'; |
233 | | - $form .= '<td class="label">' . Xml::label( wfMsg( 'payflowpro_gateway-donor-card-num' ), 'card_num' ) . '</td>'; |
| 233 | + $form .= '<td class="label">' . Xml::label( wfMsg( 'donate_interface-donor-card-num' ), 'card_num' ) . '</td>'; |
234 | 234 | $form .= '<td>' . Xml::input( 'card_num', '30', $card_num, array( 'type' => 'text', 'maxlength' => '100', 'id' => 'card_num', 'class' => 'fullwidth', 'autocomplete' => 'off' ) ) . |
235 | 235 | '</td>'; |
236 | 236 | $form .= '</tr>'; |
237 | 237 | |
238 | 238 | // expiry |
239 | 239 | $form .= '<tr>'; |
240 | | - $form .= '<td class="label">' . Xml::label( wfMsg( 'payflowpro_gateway-donor-expiration' ), 'expiration' ) . '</td>'; |
| 240 | + $form .= '<td class="label">' . Xml::label( wfMsg( 'donate_interface-donor-expiration' ), 'expiration' ) . '</td>'; |
241 | 241 | $form .= '<td>' . $this->generateExpiryMonthDropdown() . ' / ' . $this->generateExpiryYearDropdown() . '</td>'; |
242 | 242 | $form .= '</tr>'; |
243 | 243 | |
— | — | @@ -251,9 +251,9 @@ |
252 | 252 | $form .= '<td colspan=2><span class="creditcard-error-msg">' . $this->form_errors['lname'] . '</span></td>'; |
253 | 253 | $form .= '</tr>'; |
254 | 254 | $form .= '<tr>'; |
255 | | - $form .= '<td class="label">' . Xml::label( wfMsg( 'payflowpro_gateway-name-on-card' ), 'fname' ) . '</td>'; |
256 | | - $form .= '<td>' . Xml::input( 'fname', '30', $this->form_data['fname'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \''.wfMsg( 'payflowpro_gateway-donor-fname' ).'\' )', 'maxlength' => '25', 'class' => 'required', 'id' => 'fname' ) ) . |
257 | | - Xml::input( 'lname', '30', $this->form_data['lname'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \''.wfMsg( 'payflowpro_gateway-donor-lname' ).'\' )', 'maxlength' => '25', 'id' => 'lname' ) ) . '</td>'; |
| 255 | + $form .= '<td class="label">' . Xml::label( wfMsg( 'donate_interface-name-on-card' ), 'fname' ) . '</td>'; |
| 256 | + $form .= '<td>' . Xml::input( 'fname', '30', $this->form_data['fname'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \''.wfMsg( 'donate_interface-donor-fname' ).'\' )', 'maxlength' => '25', 'class' => 'required', 'id' => 'fname' ) ) . |
| 257 | + Xml::input( 'lname', '30', $this->form_data['lname'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \''.wfMsg( 'donate_interface-donor-lname' ).'\' )', 'maxlength' => '25', 'id' => 'lname' ) ) . '</td>'; |
258 | 258 | $form .= "</tr>"; |
259 | 259 | |
260 | 260 | // street |
— | — | @@ -261,8 +261,8 @@ |
262 | 262 | $form .= '<td colspan=2><span class="creditcard-error-msg">' . $this->form_errors['street'] . '</span></td>'; |
263 | 263 | $form .= '</tr>'; |
264 | 264 | $form .= '<tr>'; |
265 | | - $form .= '<td class="label">' . Xml::label( wfMsg( 'payflowpro_gateway-billing-address' ), 'street' ) . '</td>'; |
266 | | - $form .= '<td>' . Xml::input( 'street', '30', $this->form_data['street'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \''.wfMsg( 'payflowpro_gateway-donor-street' ).'\' )', 'maxlength' => '100', 'id' => 'street', 'class' => 'fullwidth' ) ) . |
| 265 | + $form .= '<td class="label">' . Xml::label( wfMsg( 'donate_interface-billing-address' ), 'street' ) . '</td>'; |
| 266 | + $form .= '<td>' . Xml::input( 'street', '30', $this->form_data['street'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \''.wfMsg( 'donate_interface-donor-street' ).'\' )', 'maxlength' => '100', 'id' => 'street', 'class' => 'fullwidth' ) ) . |
267 | 267 | '</td>'; |
268 | 268 | $form .= '</tr>'; |
269 | 269 | |
— | — | @@ -272,9 +272,9 @@ |
273 | 273 | $form .= '</tr>'; |
274 | 274 | $form .= '<tr>'; |
275 | 275 | $form .= '<td class="label"> </td>'; |
276 | | - $form .= '<td>' . Xml::input( 'city', '18', $this->form_data['city'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \''.wfMsg( 'payflowpro_gateway-donor-city' ).'\' )', 'maxlength' => '40', 'id' => 'city' ) ) . ' ' . |
| 276 | + $form .= '<td>' . Xml::input( 'city', '18', $this->form_data['city'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \''.wfMsg( 'donate_interface-donor-city' ).'\' )', 'maxlength' => '40', 'id' => 'city' ) ) . ' ' . |
277 | 277 | $this->generateStateDropdown() . ' ' . |
278 | | - Xml::input( 'zip', '5', $this->form_data['zip'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \''.wfMsg( 'payflowpro_gateway-zip-code' ).'\' )', 'maxlength' => '10', 'id' => 'zip' ) ) . |
| 278 | + Xml::input( 'zip', '5', $this->form_data['zip'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \''.wfMsg( 'donate_interface-zip-code' ).'\' )', 'maxlength' => '10', 'id' => 'zip' ) ) . |
279 | 279 | Html::hidden( 'country', 'US' ) . |
280 | 280 | '</td>'; |
281 | 281 | $form .= '</tr>'; |
— | — | @@ -293,8 +293,8 @@ |
294 | 294 | $form .= '<td colspan=2><span class="creditcard-error-msg">' . $this->form_errors['emailAdd'] . '</span></td>'; |
295 | 295 | $form .= '</tr>'; |
296 | 296 | $form .= '<tr>'; |
297 | | - $form .= '<td class="label">' . Xml::label( wfMsg( 'payflowpro_gateway-email-receipt' ), 'emailAdd' ) . '</td>'; |
298 | | - $form .= '<td>' . Xml::input( 'emailAdd', '30', $this->form_data['email'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \''.wfMsg( 'payflowpro_gateway-donor-email' ).'\' )', 'maxlength' => '64', 'id' => 'emailAdd', 'class' => 'fullwidth' ) ) . |
| 297 | + $form .= '<td class="label">' . Xml::label( wfMsg( 'donate_interface-email-receipt' ), 'emailAdd' ) . '</td>'; |
| 298 | + $form .= '<td>' . Xml::input( 'emailAdd', '30', $this->form_data['email'], array( 'type' => 'text', 'onfocus' => 'clearField( this, \''.wfMsg( 'donate_interface-donor-email' ).'\' )', 'maxlength' => '64', 'id' => 'emailAdd', 'class' => 'fullwidth' ) ) . |
299 | 299 | '</td>'; |
300 | 300 | $form .= '</tr>'; |
301 | 301 | |
— | — | @@ -324,9 +324,9 @@ |
325 | 325 | $form = Xml::openElement( 'div', array( 'class' => 'payflow-cc-form-section', 'id' => 'payflowpro_gateway-donate-addl-info' ) ); |
326 | 326 | $form .= Xml::openElement( 'div', array( 'id' => 'payflowpro_gateway-donate-addl-info-text' ) ); |
327 | 327 | $form .= Xml::tags( 'div', array( 'style' => 'text-align:center;' ), '* * *' ); |
328 | | - $form .= Xml::tags( 'div', array( 'class' => '' ), wfMsg( 'payflowpro_gateway-credit-storage-processing' ) ); |
329 | | - $form .= Xml::tags( 'div', array( 'class' => '' ), wfMsg( 'payflowpro_gateway-otherways-alt' ) ); |
330 | | - $form .= Xml::tags( 'div', array( 'class' => '' ), wfMsg( 'payflowpro_gateway-question-comment' ) ); |
| 328 | + $form .= Xml::tags( 'div', array( 'class' => '' ), wfMsg( 'donate_interface-credit-storage-processing' ) ); |
| 329 | + $form .= Xml::tags( 'div', array( 'class' => '' ), wfMsg( 'donate_interface-otherways-alt' ) ); |
| 330 | + $form .= Xml::tags( 'div', array( 'class' => '' ), wfMsg( 'donate_interface-question-comment' ) ); |
331 | 331 | $form .= Xml::closeElement( 'div' ); // close div#payflowpro_gateway-donate-addl-info-text |
332 | 332 | $form .= Xml::closeElement( 'div' ); // close div#payflowpro_gateway-donate-addl-info |
333 | 333 | return $form; |
Index: trunk/extensions/DonationInterface/gateway_forms/OneStepTwoColumn.php |
— | — | @@ -20,9 +20,9 @@ |
21 | 21 | public function loadPlaceholders() { |
22 | 22 | global $wgOut; |
23 | 23 | // form placeholder values |
24 | | - $first = wfMsg( 'payflowpro_gateway-donor-fname' ); |
25 | | - $last = wfMsg( 'payflowpro_gateway-donor-lname' ); |
26 | | - $other = wfMsg( 'payflowpro_gateway-other' ); |
| 24 | + $first = wfMsg( 'donate_interface-donor-fname' ); |
| 25 | + $last = wfMsg( 'donate_interface-donor-lname' ); |
| 26 | + $other = wfMsg( 'donate_interface-other' ); |
27 | 27 | $js = <<<EOT |
28 | 28 | <script type="text/javascript"> |
29 | 29 | function loadPlaceholders() { |
— | — | @@ -161,12 +161,12 @@ |
162 | 162 | $form .= Xml::openElement( 'div', array( 'id' => 'mw-donate-submit-button' ) ); |
163 | 163 | if ( $this->paypal ) { |
164 | 164 | $form .= Html::hidden( 'PaypalRedirect', false ); |
165 | | - $form .= Xml::element( 'input', array( 'class' => 'button-plain', 'value' => wfMsg( 'payflowpro_gateway-paypal-button' ), 'onclick' => 'document.payment.PaypalRedirect.value=\'true\';return true;', 'type' => 'submit' ) ); |
| 165 | + $form .= Xml::element( 'input', array( 'class' => 'button-plain', 'value' => wfMsg( 'donate_interface-paypal-button' ), 'onclick' => 'document.payment.PaypalRedirect.value=\'true\';return true;', 'type' => 'submit' ) ); |
166 | 166 | } else { |
167 | | - $form .= Xml::element( 'input', array( 'class' => 'button-plain', 'value' => wfMsg( 'payflowpro_gateway-cc-button' ), 'type' => 'submit' ) ); |
| 167 | + $form .= Xml::element( 'input', array( 'class' => 'button-plain', 'value' => wfMsg( 'donate_interface-cc-button' ), 'type' => 'submit' ) ); |
168 | 168 | $form .= Xml::closeElement( 'div' ); // close div#mw-donate-submit-button |
169 | 169 | $form .= Xml::openElement( 'div', array( 'class' => 'mw-donate-submessage', 'id' => 'payflowpro_gateway-donate-submessage' ) ) . |
170 | | - wfMsg( 'payflowpro_gateway-donate-click' ); |
| 170 | + wfMsg( 'donate_interface-donate-click' ); |
171 | 171 | } |
172 | 172 | $form .= Xml::closeElement( 'div' ); // close div#payflowpro_gateway-donate-submessage |
173 | 173 | $form .= Xml::closeElement( 'div' ); // close div#payflowpro_gateway-form-submit |
— | — | @@ -211,13 +211,13 @@ |
212 | 212 | global $wgRequest, $wgScriptPath; |
213 | 213 | $form = ''; |
214 | 214 | $form .= Xml::openElement( 'div', array( 'id' => 'payflowpro_gateway-personal-info' ) ); |
215 | | - $form .= Xml::tags( 'h3', array( 'class' => 'payflow-cc-form-header', 'id' => 'payflow-cc-form-header-personal' ), wfMsg( 'payflowpro_gateway-make-your-donation' ) ); |
| 215 | + $form .= Xml::tags( 'h3', array( 'class' => 'payflow-cc-form-header', 'id' => 'payflow-cc-form-header-personal' ), wfMsg( 'donate_interface-make-your-donation' ) ); |
216 | 216 | if ( !$this->paypal ) { |
217 | 217 | $source = htmlspecialchars( $wgRequest->getText( 'utm_source' ) ); |
218 | 218 | $medium = htmlspecialchars( $wgRequest->getText( 'utm_medium' ) ); |
219 | 219 | $campaign = htmlspecialchars( $wgRequest->getText( 'utm_campaign' ) ); |
220 | 220 | $formname = htmlspecialchars( $wgRequest->getText( 'form_name' ) ); |
221 | | - $form .= Xml::Tags( 'p', array( 'id' => 'payflowpro_gateway-cc_otherways' ), wfMsg( 'payflowpro_gateway-paypal', $wgScriptPath, $formname, $source, $medium, $campaign ) ); |
| 221 | + $form .= Xml::Tags( 'p', array( 'id' => 'payflowpro_gateway-cc_otherways' ), wfMsg( 'donate_interface-paypal', $wgScriptPath, $formname, $source, $medium, $campaign ) ); |
222 | 222 | } |
223 | 223 | $form .= Xml::openElement( 'table', array( 'id' => 'payflow-table-donor' ) ); |
224 | 224 | |