Displaying translation string counts and string errors is too much detail in the installer

Created on 21 February 2019, about 6 years ago
Updated 17 April 2025, 5 days ago

Problem/Motivation

When Drupal is installed in a foreign language or a foreign language is added on top of the English language in an install profile, Drupal imports translations. This results in two sizeable feedback messages in some cases. If all translations were imported well, some stats are reported, and if there was some format error in even one single string out of the several thousands imported, then an error is also printed.

While this reporting makes sense when a new language is added on the UI, displaying them as part of the installation process seems like too much detail. We don't display stats about config imported or modules enabled, etc. The warning (if shown) is also something the user cannot do anything about as it is about broken HTML in the .po file downloaded. The warning also makes the actual settings.php warning harder to notice and act on, causing warning fatigue.

Proposed resolution

Avoid user facing messages for imported translations except for the case of entirely missing translation files. The logging of the messages that are not displayed should still be intact.

Remaining tasks

Implement properly.

User interface changes

Reporting messages and warnings about invalid HTML strings will not display anymore in the installer.

API changes

No API changes. The proposed implementation fixes the finish_feedback option on locale batches to work according to its documentation and silence user messages (while still keeping logging intact).

Data model changes

None.

Release notes snippet

N/A.

πŸ› Bug report
Status

Postponed: needs info

Version

11.0 πŸ”₯

Component

Umami demo

Created by

πŸ‡­πŸ‡ΊHungary GΓ‘bor Hojtsy Hungary

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.

Production build 0.71.5 2024