From 82f1150df35e251979d91284f1212c3891a1e9aa Mon Sep 17 00:00:00 2001
From: mqanneh <mqanneh@2833163.no-reply.drupal.org>
Date: Wed, 20 Dec 2017 10:52:29 +0200
Subject: [PATCH] Issue #2815307 by mqanneh: Sort by most recent videos instead
 of relevance

---
 modules/wps/commerce_paypal_wps.module | 188 ++++++++++++++++++++++++++++++++-
 1 file changed, 187 insertions(+), 1 deletion(-)

diff --git a/modules/wps/commerce_paypal_wps.module b/modules/wps/commerce_paypal_wps.module
index 6eb5137..18e379a 100644
--- a/modules/wps/commerce_paypal_wps.module
+++ b/modules/wps/commerce_paypal_wps.module
@@ -514,23 +514,209 @@ function commerce_paypal_wps_server_url($server) {
 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'),
-      'CN' => t('China'),
+      '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)'),
-- 
2.7.4

