• 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;

    https://www.ads-software.com/plugins/paypal-donations/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author mra13

    (@mra13)

    Thank you. I will add a filter there. Handling this via a filter is a better way to go (in my opinion).

    Is there any way I can add a button in a different language without having to code? I run my website in both German and English and it would be great to have the possibility to add a German button to the German page and an English one to the English page.

    Thread Starter jfouellette

    (@jfouellette)

    I tried the latest version.

    I agree with Natalie, the apply_filters does not offer an out-of-the-box solution.

    Could there be an option, maybe next to the drop-down list of Localizations, to use the Localization set out in get_locale()?

    Thanks,
    JF

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Localization and languages for multi-lingual sites’ is closed to new replies.