Localization and languages for multi-lingual sites
-
Hi,
Great plugin.
I’m setting up a multi-lingual website and the Paypal button does not adapt to the “locale” (get_locale()).
I found a quickfix by simply adding $button_localized = get_locale();
If you have the time, could this be added as a native feature?
Thanks.JF
// Get the button URL if ( $pd_options['button'] != "custom" && !$button_url) $button_localized = get_locale(); $button_url = str_replace('en_US', $button_localized, $donate_buttons[$pd_options['button']]); $paypal_btn .= $indent.'<input type="image" src="' .$button_url. '" name="submit" alt="PayPal - The safer, easier way to pay online." />'.PHP_EOL;
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Localization and languages for multi-lingual sites’ is closed to new replies.