The 'PayPal login page language' dropdown is incomplete.
It currently has the following code:

      $form['uc_paypal_wps_language'] = array(
        '#type' => 'select',
        '#title' => t('PayPal login page language'),
        '#options' => drupal_map_assoc(array('AU', 'DE', 'FR', 'IT', 'GB', 'ES', 'US')),
        '#default_value' => variable_get('uc_paypal_wps_language', 'US'),
      );

This list is incomplete; PayPal has translated pages for many European countries. The PayPal documentation says: "For allowable values, see Country Codes." (https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=develo...)

Comments

josi123’s picture

Changing the Paypal login page language setting doesn't seem to work. Has everyone ever tested this?

tr’s picture

If someone wants to roll a patch for this issue I'd be happy to review it.

chazz’s picture

Anyone found the solution for this? I am looking for PL landing page

Regards

longwave’s picture

Title: 'PayPal login page langage' is incomplete » 'PayPal login page language' is incomplete
Version: 6.x-2.0 » 6.x-2.x-dev

As PayPal now seems to support all country codes for this, perhaps we should just send billing country as "lc" and drop the setting?

xibun’s picture

please take into account previous work: #488624: PayPal login page language per site language

Enrique.Ruiz’s picture

This issue, if I understand well, is about adding more languages to the dropdown menu.

But it means that in a multi-language site, the buying user will always be sent to a PayPal page in a single language chosen by the site admin. So if I have a commerce website in 1.English and 2.Spanish, the user will initiate a transaction in Spanish, only to be sent to a PayPal page in English. Customers buying in English will of course have no problem.

Does anyone have a fix for it? Can we have uc_paypal sending the user to PayPal in his chosen language?

longwave’s picture

Status: Active » Closed (duplicate)

Discovered in #1586424: PayPal login page language never changes and always "US", PayPal ignores the language parameter if you send a country as part of the address. As we always send a country code, we should ensure it has a sensible default (the store country, not US), and just drop this language setting entirely.