8000 [DX] Minor improvement for the translation:debug output · Issue #13874 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
[DX] Minor improvement for the translation:debug output #13874
Closed
@javiereguiluz

Description

@javiereguiluz

Currently, translation:debug output uses a legend to show the state of each translation. Example:

+----------+----------------------------------------+------------------------------------------+
| State(s) | Id                                     | Message Preview (en)                     |
+----------+----------------------------------------+------------------------------------------+
| o        | what.is.component                      | What is a Component?                     |
| =        | the.components                         | The Components                           |
| o        | browserkit.summary                     | Simulates the behavior of a web browser. |
| x        | browserkit.description                 |                                          |
| o        | classloader.summary                    | Loads your project classes automatica... |
| x        | classloader.description                |                                          |
| ...                                                                                          |
+----------+----------------------------------------+------------------------------------------+

Legend:
 x Missing message
 o Unused message
 = Same as the fallback message

I find the legend confusing when the table is very long, which is usually the case. Moreover, the State column is wide enough to not use a legend and just display the labels.

That's why I propose to change this table a bit to look as follows:

+----------+----------------------------------------+------------------------------------------+
| State    | Id                                     | Message Preview (en)                     |
+----------+----------------------------------------+------------------------------------------+
| unused   | what.is.component                      | What is a Component?                     |
| same     | the.components                         | The Components                           |
| unused   | browserkit.summary                     | Simulates the behavior of a web browser. |
| missing  | browserkit.description                 |                                          |
| unused   | classloader.summary                    | Loads your project classes automatica... |
| missing  | classloader.description                |                                          |
| ...                                                                                          |
+----------+----------------------------------------+------------------------------------------+

Metadata

Metadata

Assignees

No one assigned

    Labels

    DXDX = Developer eXperience (anything that improves the experience of using Symfony)Good first issueIdeal for your first contribution! (some Symfony experience may be required)Translation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0