mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-18 22:48:10 +02:00
Adjust tooltip
This commit is contained in:
+1
-2
@@ -439,8 +439,7 @@ en:
|
||||
location: Location
|
||||
add_fields: "Add field:"
|
||||
lock:
|
||||
brand: 'This brand name is locked. You can delete it or edit the tags in the "All tags" section.'
|
||||
official: 'This official name is locked. You can delete it or edit the tags in the "All tags" section.'
|
||||
suggestion: 'The "{label}" field is locked because there is a wikidata tag. You can delete it or edit the tags in the "All tags" section.'
|
||||
background:
|
||||
title: Background
|
||||
description: Background settings
|
||||
|
||||
Vendored
+1
-2
@@ -536,8 +536,7 @@
|
||||
"location": "Location",
|
||||
"add_fields": "Add field:",
|
||||
"lock": {
|
||||
"brand": "This brand name is locked. You can delete it or edit the tags in the \"All tags\" section.",
|
||||
"official": "This official name is locked. You can delete it or edit the tags in the \"All tags\" section."
|
||||
"suggestion": "The \"{label}\" field is locked because there is a wikidata tag. You can delete it or edit the tags in the \"All tags\" section."
|
||||
}
|
||||
},
|
||||
"background": {
|
||||
|
||||
@@ -32,7 +32,9 @@ export function uiFieldText(field, context) {
|
||||
var _brandTip;
|
||||
|
||||
if (field.id === 'brand') {
|
||||
_brandTip = tooltip().title(t('inspector.lock.brand')).placement('bottom');
|
||||
_brandTip = tooltip()
|
||||
.title(t('inspector.lock.suggestion', { label: field.label }))
|
||||
.placement('bottom');
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -31,8 +31,12 @@ export function uiFieldLocalized(field, context) {
|
||||
var _selection = d3_select(null);
|
||||
var _multilingual = [];
|
||||
var _isLocked = false;
|
||||
var _brandTip = tooltip().title(t('inspector.lock.brand')).placement('bottom');
|
||||
var _buttonTip = tooltip().title(t('translate.translate')).placement('left');
|
||||
var _brandTip = tooltip()
|
||||
.title(t('inspector.lock.suggestion', { label: field.label }))
|
||||
.placement('bottom');
|
||||
var _buttonTip = tooltip()
|
||||
.title(t('translate.translate'))
|
||||
.placement('left');
|
||||
var _wikiTitles;
|
||||
var _entity;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user