Index: trunk/extensions/DonationInterface/donationinterface.php |
— | — | @@ -548,6 +548,7 @@ |
549 | 549 | 'donate_interface-error-msg-city', |
550 | 550 | 'donate_interface-error-msg-state', |
551 | 551 | 'donate_interface-error-msg-zip', |
| 552 | + 'donate_interface-error-msg-postal', |
552 | 553 | 'donate_interface-error-msg-country', |
553 | 554 | 'donate_interface-error-msg-card_type', |
554 | 555 | 'donate_interface-error-msg-card_num', |
— | — | @@ -555,6 +556,15 @@ |
556 | 557 | 'donate_interface-error-msg-cvv', |
557 | 558 | 'donate_interface-error-msg-captcha', |
558 | 559 | 'donate_interface-error-msg-captcha-please', |
| 560 | + 'donate_interface-donor-fname', |
| 561 | + 'donate_interface-donor-lname', |
| 562 | + 'donate_interface-donor-street', |
| 563 | + 'donate_interface-donor-city', |
| 564 | + 'donate_interface-donor-state', |
| 565 | + 'donate_interface-donor-zip', |
| 566 | + 'donate_interface-donor-postal', |
| 567 | + 'donate_interface-donor-country', |
| 568 | + 'donate_interface-donor-emailAdd', |
559 | 569 | ) |
560 | 570 | ); |
561 | 571 | |
Index: trunk/extensions/DonationInterface/payflowpro_gateway/validate_input.js |
— | — | @@ -52,10 +52,10 @@ |
53 | 53 | var output = ''; |
54 | 54 | var currField = ''; |
55 | 55 | var i = 0; |
56 | | - var fields = [ "emailAdd","fname","lname","street","city","zip" ], |
| 56 | + var fields = [ 'fname','lname','street','city','zip', 'emailAdd' ], |
57 | 57 | numFields = fields.length; |
58 | 58 | for( i = 0; i < numFields; i++ ) { |
59 | | - if( document.getElementById( fields[i] ).value == '' ) { |
| 59 | + if( document.getElementById( fields[i] ).value == '' || document.getElementById( fields[i] ).value == mw.msg( 'donate_interface-donor-'+fields[i] ) ) { |
60 | 60 | currField = mw.msg( 'donate_interface-error-msg-' + fields[i] ); |
61 | 61 | output += mw.msg( 'donate_interface-error-msg-js' ) + ' ' + currField + '.\r\n'; |
62 | 62 | } |
Index: trunk/extensions/DonationInterface/globalcollect_gateway/forms/html/webitects_2_3step.html |
— | — | @@ -82,7 +82,7 @@ |
83 | 83 | <option value="AK">AK</option><option value="AL">AL</option><option value="AR">AR</option><option value="AZ">AZ</option><option value="CA">CA</option><option value="CO">CO</option><option value="CT">CT</option><option value="DC">DC</option><option value="DE">DE</option><option value="FL">FL</option><option value="GA">GA</option><option value="HI">HI</option><option value="IA">IA</option><option value="ID">ID</option><option value="IL">IL</option><option value="IN">IN</option><option value="KS">KS</option><option value="KY">KY</option><option value="LA">LA</option><option value="MA">MA</option><option value="MD">MD</option><option value="ME">ME</option><option value="MI">MI</option><option value="MN">MN</option><option value="MO">MO</option><option value="MS">MS</option><option value="MT">MT</option><option value="NC">NC</option><option value="ND">ND</option><option value="NE">NE</option><option value="NH">NH</option><option value="NJ">NJ</option><option value="NM">NM</option><option value="NV">NV</option><option value="NY">NY</option><option value="OH">OH</option><option value="OK">OK</option><option value="OR">OR</option><option value="PA">PA</option><option value="PR">PR</option><option value="RI">RI</option><option value="SC">SC</option><option value="SD">SD</option><option value="TN">TN</option><option value="TX">TX</option><option value="UT">UT</option><option value="VA">VA</option><option value="VT">VT</option><option value="WA">WA</option><option value="WI">WI</option><option value="WV">WV</option><option value="WY">WY</option><option value="AA">AA</option><option value="AE">AE</option><option value="AP">AP</option> |
84 | 84 | </select> |
85 | 85 | </span> |
86 | | - <span class="loc-postal"><input class="txt" id="zip" name="zip" title="%donate_interface-zip%" value="@zip" placeholder="%donate_interface-zip%"/></span> <!-- TODO: use postal code on non-US --> |
| 86 | + <span class="loc-postal"><input class="txt" id="zip" name="zip" title="%donate_interface-zip%" value="@zip" placeholder="%donate_interface-donor-zip%"/></span> <!-- TODO: use postal code on non-US --> |
87 | 87 | </div> |
88 | 88 | <p><input class="txt" title="%donate_interface-donor-email%" id="emailAdd" name="emailAdd" value="@emailAdd" placeholder="%donate_interface-donor-email%"/></p> |
89 | 89 | |
Index: trunk/extensions/DonationInterface/gateway_common/interface.i18n.php |
— | — | @@ -131,6 +131,7 @@ |
132 | 132 | 'donate_interface-donor-amount' => 'Amount', |
133 | 133 | 'donate_interface-donor-currency-label' => 'Currency', |
134 | 134 | 'donate_interface-donor-email' => 'Email address', |
| 135 | + 'donate_interface-donor-emailAdd' => 'Email address', |
135 | 136 | 'donate_interface-donor-name' => 'Name', |
136 | 137 | 'donate_interface-donor-fname' => 'First name', |
137 | 138 | 'donate_interface-donor-mname' => 'Middle name', |
— | — | @@ -138,6 +139,7 @@ |
139 | 140 | 'donate_interface-donor-street' => 'Street', |
140 | 141 | 'donate_interface-donor-city' => 'City', |
141 | 142 | 'donate_interface-donor-state' => 'State', |
| 143 | + 'donate_interface-donor-zip' => 'Zip', |
142 | 144 | 'donate_interface-donor-postal' => 'Postal code', |
143 | 145 | 'donate_interface-donor-country' => 'Country/Region', |
144 | 146 | 'donate_interface-donor-address' => 'Address', |
— | — | @@ -151,6 +153,7 @@ |
152 | 154 | 'donate_interface-card-name-visa' => 'Visa', |
153 | 155 | 'donate_interface-card-name-mc' => 'Mastercard', |
154 | 156 | 'donate_interface-card-name-discover' => 'Discover', |
| 157 | + // The key names for the error messages should mostly match up with the donate_interface-donor keys above. (There are a few exceptions for backwards compat.) |
155 | 158 | 'donate_interface-error-msg-nopaypal' => 'Due to a technical error, we cannot send your request to PayPal. Please try using our regular credit card donation form.', |
156 | 159 | 'donate_interface-error-msg' => 'Please enter your $1', |
157 | 160 | 'donate_interface-error-msg-js' => 'Please enter your', |
— | — | @@ -168,7 +171,8 @@ |
169 | 172 | 'donate_interface-error-msg-street' => 'street address', |
170 | 173 | 'donate_interface-error-msg-city' => 'city', |
171 | 174 | 'donate_interface-error-msg-state' => 'state', |
172 | | - 'donate_interface-error-msg-zip' => 'postal code', |
| 175 | + 'donate_interface-error-msg-zip' => 'zip code', |
| 176 | + 'donate_interface-error-msg-postal' => 'postal code', |
173 | 177 | 'donate_interface-error-msg-country' => 'country', |
174 | 178 | 'donate_interface-error-msg-card_type' => 'credit card type', |
175 | 179 | 'donate_interface-error-msg-card_num' => 'credit card number', |
— | — | @@ -461,6 +465,7 @@ |
462 | 466 | 'donate_interface-donor-amount' => '{{Identical|Amount}}', |
463 | 467 | 'donate_interface-donor-currency-label' => '{{Identical|Currency}}', |
464 | 468 | 'donate_interface-donor-email' => '{{Identical|E-mail address}}', |
| 469 | + 'donate_interface-donor-emailAdd' => '{{Identical|E-mail address}}', |
465 | 470 | 'donate_interface-donor-name' => '{{Identical|Name}}', |
466 | 471 | 'donate_interface-donor-fname' => 'Label for field containing first name.', |
467 | 472 | 'donate_interface-donor-mname' => 'Label for field to input middle name.', |
— | — | @@ -470,6 +475,7 @@ |
471 | 476 | 'donate_interface-donor-state' => 'The donor is to select either an U.S. state or "Outside the U.S." |
472 | 477 | |
473 | 478 | {{Identical|State}}', |
| 479 | + 'donate_interface-donor-zip' => 'Placeholder for zip code field. This should be 7 characters maximum.', |
474 | 480 | 'donate_interface-donor-postal' => 'Label for field to input postal code.', |
475 | 481 | 'donate_interface-donor-country' => 'Label for field with dropdown list of countries/regions.', |
476 | 482 | 'donate_interface-donor-address' => '{{Identical|Address}}', |
— | — | @@ -531,7 +537,8 @@ |
532 | 538 | 'donate_interface-error-msg-street' => '{{Identical|Street}}', |
533 | 539 | 'donate_interface-error-msg-city' => '{{Identical|City}}', |
534 | 540 | 'donate_interface-error-msg-state' => '{{Identical|State}}', |
535 | | - 'donate_interface-error-msg-zip' => 'Used in error message regarding the postal code field.', |
| 541 | + 'donate_interface-error-msg-zip' => 'Used in error message regarding the zip code field.', |
| 542 | + 'donate_interface-error-msg-postal' => 'Used in error message regarding the postal code field.', |
536 | 543 | 'donate_interface-error-msg-country' => '{{Identical|Country}}', |
537 | 544 | 'donate_interface-error-msg-card_num' => 'Used in error message regarding the credit card number field.', |
538 | 545 | 'donate_interface-error-msg-expiration' => 'Used in error message regarding the card expiration date field.', |