strangerstudios / paid-memberships-pro

WordPress membership plugin to restrict access to content and charge recurring subscriptions using Stripe, PayPal, and more. Fully open source. 100% GPL.
https://www.paidmembershipspro.com
Other
463 stars 358 forks source link

Euro currency position for Deutsch locale #1473

Open kimcoleman opened 4 years ago

kimcoleman commented 4 years ago

Describe the bug A user has suggested that the location of the currency symbol for the Euro when using the Deutsch locale should be on the left. The function pmpro_euro_position_from_locale could be extended to support this locale and currency position.

https://github.com/strangerstudios/paid-memberships-pro/blob/dev/includes/currencies.php#L119-L129

mircobabini commented 3 years ago

Just followed the same login already implemented for the en_ locales.

Maybe a switch(true) would be cleaner but I don't like weird usage of switch/case.

switch(true):
    case strpos(...):
    case strpos(...):
        $position = 'left';