Change "Add" to "Create" for Labels and Zones following HA Design guidelines #22942
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Following up on the previous PR for the 'Automations & Scenes' section this PR implements the same necessary fixes according to the Home Assistant Design guidelines regarding the use of "Create" vs. "Add".
Under Areas in the 'Areas, labels and zones' part of settings we already have the action buttons:
But for Labels and Zones there are still the inconsistent buttons:
While "Add" should only be used for existing entities, both labels and zones are "created" in HA by the user.
This PR addresses that to make all four action buttons and some related strings consistent in this part of settings.
Note that for a tracked person there is an option to create a zone based on the current location.
That is already correct using:
frontend/src/translations/en.json
Lines 1289 to 1290 in 4e63eac
Proposed change
Change "Add label" to "Create label".
Change "Add zone" to "Create zone".
Change the "Add" button in the 'New zone' dialog to "Create".
Fix the "Looks like you have not added any zones yet." that is shown when the tab is empty.
Note that there is one more "add_zone": "Add zone" key that I haven't touched here.
Type of change
Additional information
Checklist
If user exposed functionality or configuration variables are added/changed: