Problem/Motivation
In views configuration every display has an admin title. For example, the frontpage view has two displays with the titles 'Page' and 'Feed'. These are configurable and are saved in the display plugin's display_title field. Page display's also have a display option called title this is saved in the display's display_options.title field. Both of these are translatable. The label in the translation form for the display_title is 'Title' and the label for the display's display_option.title is 'Display title' (lol).
As a user you are way more likely to want to translate the display_option.title field because this is way your user's see. Also there is no point in translating display_title because actually these are never used. When you edit a view you are always editing the base view - not a translated view - you edit translations on the translation page. How stopping translations of display_title will be destructive and we don't know how current sites are using it.
Proposed resolution
- Change
display_title's label to make it clearer that it is an admin facing thing ieDisplay title in administration - Change
display_option.title's label fromDisplay titletoTitleto match the UI.
Remaining tasks
User interface changes
display_titlecan not be translated- The title field you are likely to be looking for is not called
Titleand not display title.
Before

After

API changes
display_titlecan not be translated
Data model changes
None
| Comment | File | Size | Author |
|---|---|---|---|
| #30 | interdiff-3_30.txt | 561 bytes | gauravvvv |
| #30 | 2750267-30.patch | 1.01 KB | gauravvvv |
| #15 | Display name.png | 10.36 KB | lendude |
| #14 | Screen Shot 2016-07-28 at 10.14.12.png | 83.63 KB | dawehner |
| #4 | after.png | 124.81 KB | alexpott |
Issue fork drupal-2750267
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
alexpottSomething like this.
Comment #3
alexpottThinking about this some more... being more cautious - maybe someone is using this and using the translated versions for something. Let's not change that here.
Comment #4
alexpottAdding a before and after screenshot.
This bug is especially painful because the fieldsets are all closed to begin with so the first urge is to change the first thing you see called title.
Comment #6
dawehnerThese new labels makes it at least easier to understand for me! Let's see whether it doesn't fail this time.
Comment #7
chandeepkhosa commented..
Comment #8
kostyashupenkoLooks like doesn't need to be rerolled, because git apply --check 2750267-3.patch shows nothing
Comment #9
alexpottYep the patch applies fine to 8.2.x (it's target branch)
Comment #10
alexpottComment #11
dawehnerI just like it. It makes things more explicit
Comment #12
xjmComment #13
xjmThanks @alexpott and @dawehner.
Some parts of the summary seem to be out of date, so I marked them with a delete tag.
I actually find the "Display title in administration" confusing though. "Display" could be either an adjective or a verb, and it changes the meaning of the label. English--
Is it an "Administrative label"? "Administrative label for the display"? "Label to display in administration"? Etc. I've gotten confused about what is what. Screenshots of where these two title thingies are used might help too. :)
Comment #14
dawehnerI doubt this is an actual confusion for people, because you have the context of displays already when you read this translation form, see screenshot above.
This display title is used always in the UI, when a certain display is referred to, for example here:
https://www.drupal.org/files/issues/Screen%20Shot%202016-07-28%20at%2010...
Note: In the views UI we call this field "Administration name", but its clearly marked in the context of display
Comment #15
lendudeInstead of "Display title in administration" why not just call it 'Display name'? Thats the label that it gets in the UI (inside the dialog it's "Administration name").
It never actually gets referred to as a 'title' except in config, in the UI it's always 'name'. This way you have a clear 1-on-1 mapping as to what you are translating right?
Comment #29
smustgrave commentedThis issue is being reviewed by the kind folks in Slack, #need-reveiw-queue. We are working to keep the size of Needs Review queue [2700+ issues] to around 400 (1 month or less), following Review a patch or merge require as a guide.
This seems more like a task vs a bug.
Believe it or not the patch in #3 still applies.
Does this need to be changed to "Display name"
Comment #30
gauravvvv commentedI have updated the label
'Display title in administration'to"Display name".Also attached inter-diff for same. Please review
Comment #31
smustgrave commentedIf we are changing the schema believe we will need an update hook for existing sites.
Then would need a test case to verify the change has been made.
Least I know that's how new schemas are handled but would assume schema updates are the same.