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

Integer 0 results in ParseException: Invalid decimal value 0.0 on Bulgarian system #11

Open
Mailaender opened this issue Apr 22, 2022 · 0 comments · May be fixed by #12
Open

Integer 0 results in ParseException: Invalid decimal value 0.0 on Bulgarian system #11

Mailaender opened this issue Apr 22, 2022 · 0 comments · May be fixed by #12

Comments

@Mailaender
Copy link

Mailaender commented Apr 22, 2022

Fluent.Net crashes on Bulgarian Windows 11 when parsing an integer 0 with this strange exception.

System.TypeInitializationException: 'The type initializer for 'Fluent.Net.Plural.LocaleRules' threw an exception.'
Inner exception: ParseException: Invalid decimal value 0.0 at position 66
player-disconnected =
    { $team ->
        [0] { $player } has disconnected.
       *[other] { $player } (Team { $team }) has disconnected.
    }

I assume this happens due to an US English double being parsed with Bulgarian notation where . is a thousand and , is the decimal separator.

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 a pull request may close this issue.

1 participant