PriMoThemes — now s2Member® (official notice)
This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™
<?php
if (!function_exists ("my_s2_pro_paypal_exp_co_button_locale"))
{
add_filter ("gettext_with_context", "my_s2_pro_paypal_exp_co_button_locale", 10, 3);
function my_s2_pro_paypal_exp_co_button_locale ($translated, $original, $context)
{
if ($context && $context === "s2member-front paypal-button-lang-code" && $original === "en_US")
/* See: <https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_api_ECButtonIntegration#id089QD0O0TX4__id08AH8N000HS>. */
$translated = /* Use another/different PayPal locale that you prefer. */ "de_DE";
/**/
return $translated;
}
}
?>
https://www.paypal.com/de_DE/i/btn/btn_xpressCheckout.gif
oxwald wrote:It works, thanks.
(in fact, the s2-hacks.php is not needed, and therefore creates an error). Only s2memeber-o.php needed
Best regards
Users browsing this forum: No registered users and 0 guests