field_type_advanced descriptive texts still not translateable

Created on 5 January 2024, 12 months ago
Updated 6 August 2024, 5 months ago

Problem/Motivation

Advanced descriptions for field type purpose are still not translateable on /admin/structure/types/manage/article/fields/add-field although they are marked as translation like this:

**
 * Plugin implementation of the 'text' field type.
 *
 * @FieldType(
 *   id = "text",
 *   label = @Translation("Text (formatted)"),
 *   description = {
 *     @Translation("Ideal for titles and names that need to support markup such as bold, italics or links"),
 *     @Translation("Efficient storage for short text"),
 *     @Translation("Requires specifying a maximum length"),
 *     @Translation("Good for fields with known or predictable lengths"),
 *   },
 *   category = "formatted_text",
 *   default_widget = "text_textfield",
 *   default_formatter = "text_default",
 *   list_class = "\Drupal\text\Plugin\Field\FieldType\TextFieldItemList"
 * )
 */

This is true for alle field types in core where an advanced descrippion of what can be done with a particular field type is given.

See it for your self here: https://youtu.be/Tt_5GLa1hSw

Steps to reproduce

1. install Drupal
2. Add German as second langage
3. Goto /admin/structure/types/manage/article/fields/add-field
4. Click the fied type you like to add e.g. plaintext (Klartext)

Result:

Proposed resolution

Make sure theese strings got extracted as well.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

🇩🇪Germany joachim namyslo Kulmbach 🇩🇪 🇪🇺

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