Index: trunk/extensions/DonationInterface/donationinterface.php |
— | — | @@ -90,6 +90,7 @@ |
91 | 91 | $wgAutoloadClasses['Gateway_Form_TwoStepTwoColumn'] = $donationinterface_dir . 'gateway_forms/TwoStepTwoColumn.php'; |
92 | 92 | $wgAutoloadClasses['Gateway_Form_TwoStepTwoColumnLetter'] = $donationinterface_dir . 'gateway_forms/TwoStepTwoColumnLetter.php'; |
93 | 93 | $wgAutoloadClasses['Gateway_Form_TwoStepTwoColumnLetter3'] = $donationinterface_dir . 'gateway_forms/TwoStepTwoColumnLetter3.php'; |
| 94 | +$wgAutoloadClasses['Gateway_Form_TwoStepTwoColumnLetterCA'] = $donationinterface_dir . 'gateway_forms/TwoStepTwoColumnLetterCA.php'; |
94 | 95 | $wgAutoloadClasses['Gateway_Form_RapidHtml'] = $donationinterface_dir . 'gateway_forms/RapidHtml.php'; |
95 | 96 | |
96 | 97 | // All these form classes are available, but not enabled by default. |
Index: trunk/extensions/DonationInterface/gateway_forms/TwoStepTwoColumnLetterCA.php |
— | — | @@ -148,7 +148,7 @@ |
149 | 149 | $form .= '</tr>'; |
150 | 150 | $form .= '<tr>'; |
151 | 151 | $form .= '<td class="label">' . Xml::label( wfMsg( 'donate_interface-donor-country' ), 'country' ) . '</td>'; |
152 | | - $form .= '<td>' . $this->generateCountryDropdown( 124 ) . '</td>'; // Canada default |
| 152 | + $form .= '<td>' . $this->generateCountryDropdown( 'CA' ) . '</td>'; // Canada default |
153 | 153 | $form .= '</tr>'; |
154 | 154 | |
155 | 155 | return $form; |
— | — | @@ -174,7 +174,7 @@ |
175 | 175 | } |
176 | 176 | |
177 | 177 | public function generateStateDropdown() { |
178 | | - require_once( dirname( __FILE__ ) . '/../includes/provinceAbbreviations.inc' ); |
| 178 | + require_once( dirname( __FILE__ ) . '/includes/provinceAbbreviations.inc' ); |
179 | 179 | |
180 | 180 | $states = statesMenuXML(); |
181 | 181 | |
Index: trunk/extensions/DonationInterface/gateway_common/us-states.i18n.php |
— | — | @@ -1,6 +1,6 @@ |
2 | 2 | <?php |
3 | 3 | /** |
4 | | - * Internationalization file for the Donation Interface - PayflowPro - extension |
| 4 | + * Internationalization file for the Donation Interface extension - US state names and codes |
5 | 5 | * |
6 | 6 | * @file |
7 | 7 | * @ingroup Extensions |
— | — | @@ -10,7 +10,7 @@ |
11 | 11 | |
12 | 12 | /** English */ |
13 | 13 | $messages['en'] = array( |
14 | | - // Below two messages are in donate_interface.i18n.php. |
| 14 | + // Below two messages are in interface.i18n.php. |
15 | 15 | //'donate_interface-state-dropdown-YY' => 'Select a State', |
16 | 16 | //'donate_interface-state-dropdown-XX' => 'Outside the U.S.', |
17 | 17 | 'donate_interface-state-dropdown-AK' => 'Alaska', |