Skip to content

Wrong pluralization for non-english languages #417

@jonas-koeritz

Description

@jonas-koeritz

For Bug Reports

  • BookStack Version: v0.16.3
  • PHP Version: irrelevant
  • MySQL Version: irrelevant
Expected Behavior

Correct pluralization of terms for non-english languages.

Actual Behavior

The profile view uses str_plural() to pluralize terms. This only works for english nouns. German nouns get pluralized the wrong way.

Proposed fix

Switch to trans_choice() to provide localized pluralizations.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions