Problem/Motivation

The usual wording of the button to add something is "Add content type", "Add contact form" etc. but on the Views page this links is "Add new view".

"New" is otherwise only used in connection with installing something new (module, theme).

Proposed resolution

Change the wording to "Add view".

Remaining tasks

Edit the wording in the views_ui.routing.yml and/or views_ui.links.action.yml, and update the hook_help text in views_ui.module accordingly.

User interface changes

This is a UI text change and therefore the help text needs to be edited as well.

API changes

none

Data model changes

none

Comments

ifrik created an issue. See original summary.

prashantgoel’s picture

Assigned: Unassigned » prashantgoel

Picking this up and making progress on this.

mohit_aghera’s picture

Status: Active » Needs review
StatusFileSize
new2.63 KB
mohit_aghera’s picture

StatusFileSize
new3.83 KB
new1.2 KB

Updating test file.

The last submitted patch, 3: add_view_instead_of-2749261-3.patch, failed testing.

dawehner’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: +String change in 8.2.0

Works for me as it is.

ifrik’s picture

Assigned: prashantgoel » Unassigned

Thanks mohit_aghera,

it works for me as well. The link now says "Add view" and the help text uses that wording as well.

Prashantgoel: I unassigned you so that the patch can be committted.

ifrik’s picture

Issue tags: +sprint

  • xjm committed f86f399 on 8.2.x
    Issue #2749261 by mohit_aghera, ifrik: "Add view" instead of "Add new...
xjm’s picture

Status: Reviewed & tested by the community » Fixed

This cleanup makes sense to me and conforms to our general best practices for UI text. I confirmed that this changes all of the "Add new view" text in core. Committed f86f399 and pushed to 8.2.x. Thanks!

While searching for it I found a different string that is not in scope, but has a similar text for a local action. Maybe we could create a followup issue for this:

[mandelbrot:maintainer | Thu 16:49:47] $ grep -ri "add new view" *
core/modules/field_ui/field_ui.links.action.yml:  title: 'Add new view mode'
core/modules/field_ui/src/Tests/EntityDisplayModeTest.php:    $this->assertText(t('Add new view mode'));

Edit: I see now that is covered in #2752709: "Add mode" instead of "Add new mode", so never mind! :)

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

gábor hojtsy’s picture

Issue tags: -sprint

Thanks, removing from UX sprint now.