mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 01:02:58 +00:00
plus, add
This commit is contained in:
@@ -17,6 +17,7 @@ en:
|
||||
backward: backward
|
||||
expand: expand
|
||||
collapse: collapse
|
||||
plus: add
|
||||
toolbar:
|
||||
inspect: Inspect
|
||||
undo_redo: Undo / Redo
|
||||
@@ -707,6 +708,7 @@ en:
|
||||
features: Features
|
||||
title_count: "{title} ({count})"
|
||||
add_to_relation: Add to a relation
|
||||
add_to_tag: Add a tag
|
||||
new_relation: New relation...
|
||||
choose_relation: Choose a parent relation
|
||||
role: Role
|
||||
|
||||
@@ -185,6 +185,7 @@ export function uiFieldLocalized(field, context) {
|
||||
translateButton = translateButton.enter()
|
||||
.append('button')
|
||||
.attr('class', 'localized-add form-field-button')
|
||||
.attr('aria-label', t('icons.plus'))
|
||||
.call(svgIcon('#iD-icon-plus'))
|
||||
.merge(translateButton);
|
||||
|
||||
|
||||
@@ -461,7 +461,8 @@ export function uiSectionRawMembershipEditor(context) {
|
||||
|
||||
var addRelationButton = addRowEnter
|
||||
.append('button')
|
||||
.attr('class', 'add-relation');
|
||||
.attr('class', 'add-relation')
|
||||
.attr('aria-label', t('inspector.add_to_relation'));
|
||||
|
||||
addRelationButton
|
||||
.call(svgIcon('#iD-icon-plus', 'light'));
|
||||
|
||||
@@ -7,9 +7,10 @@ import { uiCombobox } from '../combobox';
|
||||
import { uiSection } from '../section';
|
||||
import { uiTagReference } from '../tag_reference';
|
||||
import { prefs } from '../../core/preferences';
|
||||
import { t } from '../../core/localizer';
|
||||
import { localizer, t } from '../../core/localizer';
|
||||
import { utilArrayDifference, utilArrayIdentical } from '../../util/array';
|
||||
import { utilGetSetValue, utilNoAuto, utilRebind, utilTagDiff } from '../../util';
|
||||
import { uiTooltip } from '..';
|
||||
|
||||
export function uiSectionRawTagEditor(id, context) {
|
||||
|
||||
@@ -157,7 +158,9 @@ export function uiSectionRawTagEditor(id, context) {
|
||||
addRowEnter
|
||||
.append('button')
|
||||
.attr('class', 'add-tag')
|
||||
.attr('aria-label', t('inspector.add_to_tag'))
|
||||
.call(svgIcon('#iD-icon-plus', 'light'))
|
||||
.call(uiTooltip().title(t.html('inspector.add_to_tag')).placement(localizer.textDirection() === 'ltr' ? 'right' : 'left'))
|
||||
.on('click', addTag);
|
||||
|
||||
addRowEnter
|
||||
|
||||
Reference in New Issue
Block a user