Index: trunk/extensions/DonationInterface/donationinterface.php |
— | — | @@ -632,7 +632,8 @@ |
633 | 633 | $wgExtensionMessagesFiles['DonateInterface'] = $donationinterface_dir . 'gateway_common/interface.i18n.php'; |
634 | 634 | $wgExtensionMessagesFiles['GatewayCountries'] = $donationinterface_dir . 'gateway_common/countries.i18n.php'; |
635 | 635 | $wgExtensionMessagesFiles['GatewayUSStates'] = $donationinterface_dir . 'gateway_common/us-states.i18n.php'; |
636 | | - |
| 636 | +$wgExtensionMessagesFiles['GatewayCAProvinces'] = $donationinterface_dir . 'gateway_common/canada-provinces.i18n.php'; |
| 637 | + |
637 | 638 | //GlobalCollect gateway magical globals |
638 | 639 | //TODO: all the bits where we make the i18n make sense for multiple gateways. This is clearly less than ideal. |
639 | 640 | if ( $optionalParts['GlobalCollect'] === true ){ |
Index: trunk/extensions/DonationInterface/gateway_forms/TwoStepTwoColumnLetterCA.php |
— | — | @@ -183,7 +183,7 @@ |
184 | 184 | // generate dropdown of state opts |
185 | 185 | foreach ( $states as $value => $state_name ) { |
186 | 186 | $selected = ( $this->form_data[ 'state' ] == $value ) ? true : false; |
187 | | - $state_opts .= Xml::option( $state_name, $value, $selected ); |
| 187 | + $state_opts .= Xml::option( wfMsg( 'donate_interface-province-dropdown-' . $value ), $value, $selected ); |
188 | 188 | } |
189 | 189 | |
190 | 190 | $state_menu = Xml::openElement( |
Index: trunk/extensions/DonationInterface/globalcollect_gateway/globalcollect_gateway.body.php |
— | — | @@ -125,7 +125,7 @@ |
126 | 126 | } else { |
127 | 127 | // Display form |
128 | 128 | |
129 | | - // Not sure what this is for. |
| 129 | + // See GlobalCollectAdapter::stage_returnto() |
130 | 130 | $oid = $wgRequest->getText( 'order_id' ); |
131 | 131 | if ( $oid ) { |
132 | 132 | $result = $this->adapter->do_transaction( 'GET_ORDERSTATUS' ); |
Index: trunk/extensions/DonationInterface/gateway_common/canada-provinces.i18n.php |
— | — | @@ -0,0 +1,29 @@ |
| 2 | +<?php |
| 3 | +/** |
| 4 | + * Internationalization file for the Donation Interface extension |
| 5 | + * Supplies the drop down menu options of Canadian Provinces |
| 6 | + * |
| 7 | + * @file |
| 8 | + * @ingroup Extensions |
| 9 | + */ |
| 10 | + |
| 11 | +$messages = array(); |
| 12 | + |
| 13 | +/** English */ |
| 14 | +$messages['en'] = array( |
| 15 | + 'donate_interface-province-dropdown-YY' => 'Select a Province', |
| 16 | + 'donate_interface-province-dropdown-XX' => 'Outside Canada', |
| 17 | + 'donate_interface-province-dropdown-AB' => 'Alberta', |
| 18 | + 'donate_interface-province-dropdown-BC' => 'British Columbia', |
| 19 | + 'donate_interface-province-dropdown-MB' => 'Manitoba', |
| 20 | + 'donate_interface-province-dropdown-NB' => 'New Brunswick', |
| 21 | + 'donate_interface-province-dropdown-NL' => 'Newfoundland and Labrador', |
| 22 | + 'donate_interface-province-dropdown-NT' => 'Northwest Territories', |
| 23 | + 'donate_interface-province-dropdown-NS' => 'Nova Scotia', |
| 24 | + 'donate_interface-province-dropdown-NU' => 'Nunavut', |
| 25 | + 'donate_interface-province-dropdown-ON' => 'Ontario', |
| 26 | + 'donate_interface-province-dropdown-PE' => 'Prince Edward Island', |
| 27 | + 'donate_interface-province-dropdown-QC' => 'Quebec', |
| 28 | + 'donate_interface-province-dropdown-SK' => 'Saskatchewan', |
| 29 | + 'donate_interface-province-dropdown-YT' => 'Yukon', |
| 30 | +); |