Skip to content

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

@Mailaender

Description

@Mailaender

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions