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

[4.x] Fix unit translations #9472

Merged
merged 1 commit into from
Feb 6, 2024
Merged

[4.x] Fix unit translations #9472

merged 1 commit into from
Feb 6, 2024

Conversation

jasonvarga
Copy link
Member

Fixes #9471

The trans_choice helper expects the count argument to be an integer. The error was due to number_format resulting in an uncastable number sometimes when it got formatted with a comma.

The trans_choice helper doesn't need to be used anyway as it's not a different translation depending on the number. This PR changes it to trans as it should have been.

I've updated the three spots where number_format wasn't used, for consistency, even though it wouldn't cause an error.

@jasonvarga jasonvarga merged commit c2495fa into 4.x Feb 6, 2024
36 checks passed
@jasonvarga jasonvarga deleted the fix-unit-translations branch February 6, 2024 20:31
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

Successfully merging this pull request may close these issues.

Units translations not working for slovenian locale
1 participant