Bug when deleting the singular translation of a translation with plural

Created on 29 August 2025, 3 days ago

Problem/Motivation

When deleting the singular translation of a translation with plural, after saving and then refreshing the page, the plural translation goes into the singular translation and the plural is then empty.

Steps to reproduce

  1. In admin/config/regional/babel, translate both singular and plural strings of a row and save.
  2. Delete the singular and save.
  3. Refresh the page.
  4. Check that the plural translation went into the singular translation and the plural is empty.
🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇵🇹Portugal dxvargas

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

Comments & Activities

  • Issue created by @dxvargas
  • 🇷🇴Romania claudiu.cristea Arad 🇷🇴

    They need to preserve their plural variant delte.

    E.g., if the English string to be translated is:

    [
      0 => '1 apple',
      1 => '@count apples',
    ]
    

    Let's take Polish, which has 3 plural variants. It will go as:

    [
      0 => '1 jabłko',
      1 => '@count jabłka',
      2 => '@count jabłek'
    ]
    

    If we delete the singular (index 0) the result should be:

    [
      0 => '',
      1 => '@count jabłka',
      2 => '@count jabłek'
    ]
    

    But if we delete instead the 1st plural form:

    [
      0 => '1 jabłko',
      1 => '',
      2 => '@count jabłek'
    ]
    

    ... or the 2nd plural form

    [
      0 => '1 jabłko',
      1 => '@count jabłka',
      2 => ''
    ]
    

    This should be fixed in the form but also on Excel import, if case.

  • 🇵🇱Poland alorenc Wolsztyn, 🇵🇱
Production build 0.71.5 2024