Wrong plural form on catalan po file

Created on 30 July 2019, almost 6 years ago
Updated 4 July 2023, almost 2 years ago

Problem/Motivation

I'm using the formatPlural function of the StringTranslationTrait and discovered that it was showing the wrong text for $count = 0 when the current locale is set to Catalan.

Stepping into the code it looks like it's using the "Plural-Forms" of the .po file, so I just downloaded the "drupal-8.7.5.ca.po" file and it shows:"Plural-Forms: nplurals=2; plural=(n>1);\n". Core translation files can be downloaded from: https://localize.drupal.org/translate/languages/ca

Proposed resolution

It should be: "Plural-Forms: nplurals=2; plural=(n!=1);\n" for the catalan language.
Reference: http://docs.translatehouse.org/projects/localization-guide/en/latest/l10...

Remaining tasks

t.b.d.

User interface changes

none

API changes

none

Data model changes

none

Release notes snippet

🐛 Bug report
Status

Active

Version

1.0

Component

New language request

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇪🇸Spain rvilar Montcada i Reixac, Catalonia

    Gábor, how can we set this configuration as a team admin? I am a Catalan administrator but I am not sure how to do it.

Production build 0.71.5 2024