You are here

function commerce_paypal_wps_languages in Commerce PayPal 7.2

Same name and namespace in other branches
  1. 7 modules/wps/commerce_paypal_wps.module \commerce_paypal_wps_languages()

Returns an array of all possible language codes.

1 call to commerce_paypal_wps_languages()
commerce_paypal_wps_settings_form in modules/wps/commerce_paypal_wps.module
Payment method callback: settings form.

File

modules/wps/commerce_paypal_wps.module, line 545
Implements PayPal Website Payments Standard in Drupal Commerce checkout.

Code

function commerce_paypal_wps_languages() {
  return array(
    t('By country') => array(
      'AL' => t('Albania'),
      'DZ' => t('Algeria'),
      'AD' => t('Andorra'),
      'AO' => t('Angola'),
      'AI' => t('Anguilla'),
      'AG' => t('Antigua and Barbuda'),
      'AR' => t('Argentina'),
      'AM' => t('Armenia'),
      'AW' => t('Aruba'),
      'AU' => t('Australia'),
      'AT' => t('Austria'),
      'AZ' => t('Azerbaijan Republic'),
      'BS' => t('Bahamas'),
      'BH' => t('Bahrain'),
      'BB' => t('Barbados'),
      'BY' => t('Belarus'),
      'BE' => t('Belgium'),
      'BZ' => t('Belize'),
      'BJ' => t('Benin'),
      'BM' => t('Bermuda'),
      'BT' => t('Bhutan'),
      'BO' => t('Bolivia'),
      'BA' => t('Bosnia and Herzegovina'),
      'BW' => t('Botswana'),
      'BR' => t('Brazil'),
      'BN' => t('Brunei'),
      'BG' => t('Bulgaria'),
      'BF' => t('Burkina Faso'),
      'BI' => t('Burundi'),
      'KH' => t('Cambodia'),
      'CM' => t('Cameroon'),
      'CA' => t('Canada'),
      'CV' => t('Cape Verde'),
      'KY' => t('Cayman Islands'),
      'TD' => t('Chad'),
      'CL' => t('Chile'),
      'C2' => t('China'),
      'CO' => t('Colombia'),
      'KM' => t('Comoros'),
      'CK' => t('Cook Islands'),
      'CR' => t('Costa Rica'),
      'CI' => t('Cote D\'Ivoire'),
      'HR' => t('Croatia'),
      'CY' => t('Cyprus'),
      'CZ' => t('Czech Republic'),
      'CD' => t('Democratic Republic of the Congo'),
      'DK' => t('Denmark'),
      'DJ' => t('Djibouti'),
      'DM' => t('Dominica'),
      'DO' => t('Dominican Republic'),
      'EC' => t('Ecuador'),
      'EG' => t('Egypt'),
      'SV' => t('El Salvador'),
      'ER' => t('Eritrea'),
      'EE' => t('Estonia'),
      'ET' => t('Ethiopia'),
      'FK' => t('Falkland Islands'),
      'FO' => t('Faroe Islands'),
      'FJ' => t('Fiji'),
      'FI' => t('Finland'),
      'FR' => t('France'),
      'GF' => t('French Guiana'),
      'PF' => t('French Polynesia'),
      'GA' => t('Gabon Republic'),
      'GM' => t('Gambia'),
      'GE' => t('Georgia'),
      'DE' => t('Germany'),
      'GI' => t('Gibraltar'),
      'GR' => t('Greece'),
      'GL' => t('Greenland'),
      'GD' => t('Grenada'),
      'GP' => t('Guadeloupe'),
      'GT' => t('Guatemala'),
      'GN' => t('Guinea'),
      'GW' => t('Guinea Bissau'),
      'GY' => t('Guyana'),
      'HN' => t('Honduras'),
      'HK' => t('Hong Kong'),
      'HU' => t('Hungary'),
      'IS' => t('Iceland'),
      'IN' => t('India'),
      'ID' => t('Indonesia'),
      'IE' => t('Ireland'),
      'IL' => t('Israel'),
      'IT' => t('Italy'),
      'JM' => t('Jamaica'),
      'JP' => t('Japan'),
      'JO' => t('Jordan'),
      'KZ' => t('Kazakhstan'),
      'KE' => t('Kenya'),
      'KI' => t('Kiribati'),
      'KW' => t('Kuwait'),
      'KG' => t('Kyrgyzstan'),
      'LA' => t('Laos'),
      'LV' => t('Latvia'),
      'LS' => t('Lesotho'),
      'LI' => t('Liechtenstein'),
      'LT' => t('Lithuania'),
      'LU' => t('Luxembourg'),
      'MK' => t('Macedonia'),
      'MG' => t('Madagascar'),
      'MW' => t('Malawi'),
      'MY' => t('Malaysia'),
      'MV' => t('Maldives'),
      'ML' => t('Mali'),
      'MT' => t('Malta'),
      'MH' => t('Marshall Islands'),
      'MQ' => t('Martinique'),
      'MR' => t('Mauritania'),
      'MU' => t('Mauritius'),
      'YT' => t('Mayotte'),
      'MX' => t('Mexico'),
      'FM' => t('Micronesia'),
      'MD' => t('Moldova'),
      'MC' => t('Monaco'),
      'MN' => t('Mongolia'),
      'ME' => t('Montenegro'),
      'MS' => t('Montserrat'),
      'MA' => t('Morocco'),
      'MZ' => t('Mozambique'),
      'NA' => t('Namibia'),
      'NR' => t('Nauru'),
      'NP' => t('Nepal'),
      'NL' => t('Netherlands'),
      'AN' => t('Netherlands Antilles'),
      'NC' => t('New Caledonia'),
      'NZ' => t('New Zealand'),
      'NI' => t('Nicaragua'),
      'NE' => t('Niger'),
      'NG' => t('Nigeria'),
      'NU' => t('Niue'),
      'NF' => t('Norfolk Island'),
      'NO' => t('Norway'),
      'OM' => t('Oman'),
      'PW' => t('Palau'),
      'PA' => t('Panama'),
      'PG' => t('Papua New Guinea'),
      'PY' => t('Paraguay'),
      'PE' => t('Peru'),
      'PH' => t('Philippines'),
      'PN' => t('Pitcairn Islands'),
      'PL' => t('Poland'),
      'PT' => t('Portugal'),
      'QA' => t('Qatar'),
      'CG' => t('Republic of the Congo'),
      'RE' => t('Reunion'),
      'RO' => t('Romania'),
      'RU' => t('Russia'),
      'RW' => t('Rwanda'),
      'KN' => t('Saint Kitts and Nevis Anguilla'),
      'PM' => t('Saint Pierre and Miquelon'),
      'VC' => t('Saint Vincent and Grenadines'),
      'WS' => t('Samoa'),
      'SM' => t('San Marino'),
      'ST' => t('São Tomé and Príncipe'),
      'SA' => t('Saudi Arabia'),
      'SN' => t('Senegal'),
      'RS' => t('Serbia'),
      'SC' => t('Seychelles'),
      'SL' => t('Sierra Leone'),
      'SG' => t('Singapore'),
      'SK' => t('Slovakia'),
      'SI' => t('Slovenia'),
      'SB' => t('Solomon Islands'),
      'SO' => t('Somalia'),
      'ZA' => t('South Africa'),
      'KR' => t('South Korea'),
      'ES' => t('Spain'),
      'LK' => t('Sri Lanka'),
      'SH' => t('St. Helena'),
      'LC' => t('St. Lucia'),
      'SR' => t('Suriname'),
      'SJ' => t('Svalbard and Jan Mayen Islands'),
      'SZ' => t('Swaziland'),
      'SE' => t('Sweden'),
      'CH' => t('Switzerland'),
      'TW' => t('Taiwan'),
      'TJ' => t('Tajikistan'),
      'TZ' => t('Tanzania'),
      'TH' => t('Thailand'),
      'TG' => t('Togo'),
      'TO' => t('Tonga'),
      'TT' => t('Trinidad and Tobago'),
      'TN' => t('Tunisia'),
      'TR' => t('Turkey'),
      'TM' => t('Turkmenistan'),
      'TC' => t('Turks and Caicos Islands'),
      'TV' => t('Tuvalu'),
      'UG' => t('Uganda'),
      'UA' => t('Ukraine'),
      'AE' => t('United Arab Emirates'),
      'GB' => t('United Kingdom'),
      'US' => t('United States'),
      'UY' => t('Uruguay'),
      'VU' => t('Vanuatu'),
      'VA' => t('Vatican City State'),
      'VE' => t('Venezuela'),
      'VN' => t('Vietnam'),
      'VG' => t('Virgin Islands (British)'),
      'WF' => t('Wallis and Futuna Islands'),
      'YE' => t('Yemen'),
      'ZM' => t('Zambia'),
      'ZW' => t('Zimbabwe'),
    ),
    t('By language') => array(
      'da_DK' => t('Danish (for Denmark only)'),
      'fr_CA' => t('French (for Canada only)'),
      'he_IL' => t('Hebrew (for all)'),
      'id_ID' => t('Indonesian (for Indonesia only)'),
      'jp_JP' => t('Japanese (for Japan only)'),
      'no_NO' => t('Norwegian (for Norway only)'),
      'pt_BR' => t('Brazilian Portuguese (for Portugal and Brazil only)'),
      'ru_RU' => t('Russian (for Lithuania, Latvia, and Ukraine only)'),
      'sv_SE' => t('Swedish (for Sweden only)'),
      'th_TH' => t('Thai (for Thailand only)'),
      'tr_TR' => t('Turkish (for Turkey only)'),
      'zh_CN' => t('Simplified Chinese (for China only)'),
      'zh_HK' => t('Traditional Chinese (for Hong Kong only)'),
      'zh_TW' => t('Traditional Chinese (for Taiwan only)'),
    ),
  );
}