Skip to content

Plurals don't work without red-datasets gem #93

@MichaelHoste

Description

@MichaelHoste

It's a bit like #87 but in production too.

Since red-datasets is not included as runtime dependency, plural forms of languages are now always ignored by default: https://github.com/ruby-gettext/gettext/blob/master/lib/gettext/tools/msginit.rb#L382

I'm not sure it was voluntary because that's a big change for a minor version.

Shouldn't we explicitly tell that red-datasets is mandatory for plural management in the "installation" part of the README?

Or maybe find a better way to manage plurals? I don't really like the fact that plural rules could change without any manual update of this gem (plural rules are now parsed live).

Also, there are some parsing issue with specific languages that I'm not sure have been fixed:

A hash containing all plurals, bundled with this gem, would certainly be a better solution.

This hash could be manually updated using red-datasets if the problematic plural forms have been fixed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions