diff --git a/data/core.yaml b/data/core.yaml index a14a5092c..419697dbc 100644 --- a/data/core.yaml +++ b/data/core.yaml @@ -10,6 +10,7 @@ en: favorite: favorite list: list text: text + deselect: deselect toolbar: inspect: Inspect undo_redo: Undo / Redo diff --git a/dist/locales/en.json b/dist/locales/en.json index ae2cf3a29..52c383dfb 100644 --- a/dist/locales/en.json +++ b/dist/locales/en.json @@ -10,7 +10,8 @@ "view_on": "view on {domain}", "favorite": "favorite", "list": "list", - "text": "text" + "text": "text", + "deselect": "deselect" }, "toolbar": { "inspect": "Inspect", diff --git a/modules/ui/selection_list.js b/modules/ui/selection_list.js index fe201f23f..8f2f1ee63 100644 --- a/modules/ui/selection_list.js +++ b/modules/ui/selection_list.js @@ -3,6 +3,7 @@ import { event as d3_event, select as d3_select } from 'd3-selection'; import { modeSelect } from '../modes/select'; import { osmEntity } from '../osm'; import { svgIcon } from '../svg/icon'; +import { t } from '../util/locale'; import { utilDisplayName, utilHighlightEntities } from '../util'; @@ -79,6 +80,7 @@ export function uiSelectionList(context) { enter .append('button') .attr('class', 'close') + .attr('title', t('icons.deselect')) .on('click', deselectEntity) .call(svgIcon('#iD-icon-close'));