Skip to content

i18n: Plural does not work with two variables #4850

@rakekniven

Description

@rakekniven

$message = $this->l10n->n(
'Imported %n contact (skipped %d)',
'Imported %n contacts (skipped %d)',
count($imported),
[$skipped],
);

Both of these numbers can take a different plural form, so this is wrong formulation. (skipped %d) should be in a separate source string.

Metadata

Metadata

Assignees

No one assigned

    Labels

    1. to developAccepted and waiting to be taken care ofbugSomething isn't working

    Type

    No type

    Projects

    Status

    📄 To do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions