Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Percentages decimal points in French #13

Closed
cadars opened this issue Apr 28, 2020 · 2 comments
Closed

Percentages decimal points in French #13

cadars opened this issue Apr 28, 2020 · 2 comments

Comments

@cadars
Copy link

cadars commented Apr 28, 2020

When having french as a site language, decimal points for the markers values get converted to commas (and then aren't valid CSS). I was able to circumvent this with a simple str_replace:
<?php echo str_replace(',', '.', markerStyle($marker)) ?> but thought you'd like to know.

@sylvainjule
Copy link
Owner

sylvainjule commented May 5, 2020

This is a LC_NUMERIC issue. Can you try setting your locale to fr_FR.utf-8? This should fix it.

// site/config/config.php
return [
  'locale' => 'fr_FR.utf-8'
];

@sylvainjule
Copy link
Owner

Should be fixed by 268f1fa. Please reopen if needed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants