Remove hardcoded "X minutes" translatable strings

Created on 2 August 2023, over 1 year ago
Updated 15 August 2023, over 1 year ago

Problem/Motivation

Translators of Drupal core need to translate "@count minutes" and "5 minutes", "10 minutes", and "30 minutes". That is unnecessary work - only "@count minutes" is needed. It should be noted that most translators already have translate "1 minute, @count minutes" (plural).

Steps to reproduce

Proposed resolution

Replace $this->t('X minutes') with $this->t('@count minutes', ['@count' => X]) for X equal to 5, 10 and 30 all over the code base. (Even better for translators is to use existing plural translation, but that is more work for developers.)

Remaining tasks

Agree that this is useful fix and create patch. (I can create the trivial patch.)

User interface changes

None

API changes

None

Data model changes

None

Release notes snippet

📌 Task
Status

Fixed

Version

11.0 🔥

Component
Other 

Last updated about 8 hours ago

Created by

🇳🇴Norway hansfn

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

Comments & Activities

Production build 0.71.5 2024