Problem/Motivation
Found in #2580575: Installing a module can delete config translations
views.style.table schema has incorrect label for 'description'
Currently, the config schema label for both 'caption' and 'description' are "Caption". That results in two fields labeled "Caption" in the configuration translation form.
specifically, the "Caption" element of the style settings of a table View (in my case, I tried it with the /admin/content View
steps to reproduce
- install standard profile
- enable config_translation
- add any language
- translate the view admin/structure/views/view/content/translate
- open: displays, master display settings, content default display options, format, table
Proposed resolution
Fix the description in the schema.
Remaining tasks
Contributor tasks needed
| Task |
Novice task? |
Contributor instructions |
Complete? |
| Add steps to reproduce the issue |
Novice |
Instructions |
|
| Embed before and after screenshots in the issue summary |
Novice |
Instructions |
|
| Review patch to ensure that it fixes the issue, stays within scope, is properly documented, and follows coding standards |
|
Instructions |
|
User interface changes
before

after

No (no new patterns, just correcting the label)
API changes
No
Data model changes
No
Comments
Comment #2
yesct commentedComment #3
yesct commentedComment #4
gábor hojtsyWe don't say "Table caption" either. Is "Table description" the UI text used on the admin UI for this field? We usually try to match that because then people can match the things together AND the translations would also be the same (easy!)
Comment #5
yesct commentedComment #6
yesct commentedmaybe here... I'm not sure yet.
Comment #7
yesct commentedyeah, when I put in values, then I can see.
Comment #8
yesct commentedI think this makes those match the UI. (didn't check *everything* in this UI)
Comment #9
yesct commentedwhich makes the translate form (after a drush cr) look like
Comment #10
gábor hojtsyYay, looks good!
Comment #11
yesct commentedComment #13
gábor hojtsyTest fails were entirely unrelated.
Comment #14
xjmSeveral questions to figure out what of this, if any, can go into a patch release:
The third option, with the duplicated "Caption", is obviously just plain wrong. However, now that 8.0.0 is released, we should possibly separate the improvements for the other two strings and have those go into 8.1.x instead, to reduce the disruption for translations. References: https://www.drupal.org/core/d8-allowed-changes#minor and https://www.drupal.org/core/d8-bc-policy
@Gábor Hojtsy, thoughts?
Comment #15
gábor hojtsy@xjm: yes, they are displayed in the core config translation UI, as screenshot in the summary; yes they would change translatable strings, but these are minor (and the original ones don't make sense, the changing strings are not a reason to keep the UI that does not make sense).
On the other hand this will not break existing configuration and is not something stored in configuration, and will not need an upgrade path. The strings are merely used to display the config translation UI (in core). They are not stored anywhere.
As for which changes to put into which versions, the "new" strings are already used in views, in fact the views schema should have just used the same strings as the views UI, which in fact means LESS work for translators:
In short, this patch removes a few incorrect strings and replaces them with strings that are already in core (and already translated), so while it is no work for translators, it also improves the translation user interface without needing an upgrade path. That sounds like win-win-win.
Comment #16
xjmThanks @Gábor Hojtsy! Based on that it also sounds to me like it will be good to include this fix in a patch release.
Comment #17
catchCommitted/pushed to 8.1.x and cherry-picked to 8.0.x. Thanks!
Comment #20
xjmComment #21
gábor hojtsy