Bug 1564406
Summary: | Plural forms are used wrong in messages resulting in bugs when Polish language is used | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Marcin Juszkiewicz <mjuszkie> |
Component: | dnf | Assignee: | rpm-software-management |
Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 28 | CC: | dmach, mblaha, mhatina, packaging-team-maint, rpm-software-management, vmukhame |
Target Milestone: | --- | Keywords: | Triaged |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2018-04-06 10:18:46 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Marcin Juszkiewicz
2018-04-06 08:00:26 UTC
Hi Marcin, we are using fedora.zanata.org for translating. Plural forms for polish language are defined (https://github.com/rpm-software-management/dnf/blob/master/po/pl.po) as Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n%10>=2 && n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2); which, as far as I understand, means: for 1 item use plural form 0 for any number ending with digits 2,3,4 and at the same time not ending with numbers 10,11,...19 use form 1 otherwise use form 2 your text is defined on line 104 with plural forms: msgstr[0] "Usunięto %d plik" msgstr[1] "Usunięto %d pliki" msgstr[2] "Usunięto %d plików" So I think, translation exactly followed given rules - 4572 ends with 2 and is not ending with 12, so form 1 was chosen. If you think that definition of plurals for polish language is wrong, please reopen this bug against Fedora localization product. Thanks for pointer. Will take a look. |