Poll_admin view causes the Yes translation to be changed to No

Created on 17 January 2025, about 2 months ago

Problem/Motivation

We noticed in the User interface translation that "Yes" would get translated to "No". After debugging we found that it is caused by a mismatch of ids in the config.

The status filter in this config has ids 2 and 3:
https://git.drupalcode.org/project/poll/-/blob/2.0.x/config/install/view...

While our config has 1 and 2

            group_items:
              1:
                title: Ja
                operator: '='
                value: '1'
              2:
                title: Nee
                operator: '='
                value: '0'

The LocaleConfigSubscriber would use these configs to determine translations and would match Yes with Nee (No).

The issue seems to be introduced in this change: https://git.drupalcode.org/project/poll/-/commit/8b8709f43e550c7912a337f...

Suggestion would be to revert the ids back to 1 and 2

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇧🇪Belgium dave.mentens

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024