Index: trunk/extensions/DonationInterface/payflowpro_gateway/forms/Form.php |
— | — | @@ -113,11 +113,20 @@ |
114 | 114 | */ |
115 | 115 | public function generateCountryDropdown() { |
116 | 116 | $country_options = ''; |
| 117 | + |
| 118 | + // create a new array of countries with potentially translated country names for alphabetizing later |
| 119 | + foreach ( $this->getCountries() as $iso_value => $full_name ) { |
| 120 | + $countries[ $iso_value ] = wfMsg( 'payflowpro_gateway-country-dropdown-' . $iso_value ); |
| 121 | + } |
117 | 122 | |
| 123 | + // alphabetically sort the country names |
| 124 | + // @fixme we should probably set locale and do a locale string sort |
| 125 | + asort( $countries, SORT_STRING ); |
| 126 | + |
118 | 127 | // generate a dropdown option for each country |
119 | | - foreach ( $this->getCountries() as $iso_value => $full_name ) { |
| 128 | + foreach ( $countries as $iso_value => $full_name ) { |
120 | 129 | $selected = ( $iso_value == $this->form_data[ 'country' ] ) ? true : false; |
121 | | - $country_options .= Xml::option( wfMsg( 'payflowpro_gateway-country-dropdown-' . $iso_value ), $iso_value, $selected ); |
| 130 | + $country_options .= Xml::option( $full_name, $iso_value, $selected ); |
122 | 131 | } |
123 | 132 | |
124 | 133 | // build the actual select |
Index: trunk/extensions/DonationInterface/payflowpro_gateway/payflowpro_gateway.i18n.php |
— | — | @@ -1591,6 +1591,26 @@ |
1592 | 1592 | 'payflowpro_gateway-token-mismatch' => 'Deine Sitzung ist inzwischen abgelaufen. Bitte fülle das Formular erneut aus und sende es nochmals ab.', |
1593 | 1593 | 'payflowpro_gateway-cc-form-header-personal' => 'Zahlungsinformationen', |
1594 | 1594 | 'payflowpro_gateway-cc-form-header-payment' => 'Zahlungsinformationen', |
| 1595 | + 'payflowpro_gateway-state-dropdown-YY' => 'Wählen Sie einen Bundesstaat', |
| 1596 | + 'payflowpro_gateway-state-dropdown-XX' => 'Außerhalb der USA', |
| 1597 | + 'payflowpro_gateway-country-dropdown-840' => 'USA', |
| 1598 | + 'payflowpro_gateway-country-dropdown-036' => 'Australien', |
| 1599 | + 'payflowpro_gateway-country-dropdown-040' => 'Österreich', |
| 1600 | + 'payflowpro_gateway-country-dropdown-124' => 'Kanada', |
| 1601 | + 'payflowpro_gateway-country-dropdown-208' => 'Dänemark', |
| 1602 | + 'payflowpro_gateway-country-dropdown-246' => 'Finnland', |
| 1603 | + 'payflowpro_gateway-country-dropdown-250' => 'Frankreich', |
| 1604 | + 'payflowpro_gateway-country-dropdown-276' => 'Deutschland', |
| 1605 | + 'payflowpro_gateway-country-dropdown-380' => 'Italien', |
| 1606 | + 'payflowpro_gateway-country-dropdown-440' => 'Litauen', |
| 1607 | + 'payflowpro_gateway-country-dropdown-442' => 'Luxemburg', |
| 1608 | + 'payflowpro_gateway-country-dropdown-528' => 'Niederlande', |
| 1609 | + 'payflowpro_gateway-country-dropdown-616' => 'Polen', |
| 1610 | + 'payflowpro_gateway-country-dropdown-643' => 'Russland', |
| 1611 | + 'payflowpro_gateway-country-dropdown-710' => 'Südafrika', |
| 1612 | + 'payflowpro_gateway-country-dropdown-724' => 'Spanien', |
| 1613 | + 'payflowpro_gateway-country-dropdown-756' => 'Schweiz', |
| 1614 | + 'payflowpro_gateway-country-dropdown-826' => 'Großbritannien', |
1595 | 1615 | ); |
1596 | 1616 | |
1597 | 1617 | /** German (formal address) (Deutsch (Sie-Form)) |