mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-25 17:37:49 +02:00
Add lang attribute to more labels (re: #7963)
This commit is contained in:
@@ -23,23 +23,23 @@ export function uiToolOldDrawModes(context) {
|
||||
|
||||
var modes = [
|
||||
modeAddPoint(context, {
|
||||
title: t('modes.add_point.title'),
|
||||
title: t.html('modes.add_point.title'),
|
||||
button: 'point',
|
||||
description: t('modes.add_point.description'),
|
||||
description: t.html('modes.add_point.description'),
|
||||
preset: presetManager.item('point'),
|
||||
key: '1'
|
||||
}),
|
||||
modeAddLine(context, {
|
||||
title: t('modes.add_line.title'),
|
||||
title: t.html('modes.add_line.title'),
|
||||
button: 'line',
|
||||
description: t('modes.add_line.description'),
|
||||
description: t.html('modes.add_line.description'),
|
||||
preset: presetManager.item('line'),
|
||||
key: '2'
|
||||
}),
|
||||
modeAddArea(context, {
|
||||
title: t('modes.add_area.title'),
|
||||
title: t.html('modes.add_area.title'),
|
||||
button: 'area',
|
||||
description: t('modes.add_area.description'),
|
||||
description: t.html('modes.add_area.description'),
|
||||
preset: presetManager.item('area'),
|
||||
key: '3'
|
||||
})
|
||||
|
||||
@@ -58,7 +58,7 @@ export function uiToolSave(context) {
|
||||
|
||||
if (tooltipBehavior) {
|
||||
tooltipBehavior
|
||||
.title(t(_numChanges > 0 ? 'save.help' : 'save.no_changes'))
|
||||
.title(t.html(_numChanges > 0 ? 'save.help' : 'save.no_changes'))
|
||||
.keys([key]);
|
||||
}
|
||||
|
||||
@@ -76,7 +76,7 @@ export function uiToolSave(context) {
|
||||
tool.render = function(selection) {
|
||||
tooltipBehavior = uiTooltip()
|
||||
.placement('bottom')
|
||||
.title(t('save.no_changes'))
|
||||
.title(t.html('save.no_changes'))
|
||||
.keys([key])
|
||||
.scrollContainer(context.container().select('.top-toolbar'));
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ export function uiToolSidebarToggle(context) {
|
||||
})
|
||||
.call(uiTooltip()
|
||||
.placement('bottom')
|
||||
.title(t('sidebar.tooltip'))
|
||||
.title(t.html('sidebar.tooltip'))
|
||||
.keys([t('sidebar.key')])
|
||||
.scrollContainer(context.container().select('.top-toolbar'))
|
||||
)
|
||||
|
||||
@@ -51,8 +51,8 @@ export function uiToolUndoRedo(context) {
|
||||
.placement('bottom')
|
||||
.title(function (d) {
|
||||
return d.annotation() ?
|
||||
t(d.id + '.tooltip', { action: d.annotation() }) :
|
||||
t(d.id + '.nothing');
|
||||
t.html(d.id + '.tooltip', { action: d.annotation() }) :
|
||||
t.html(d.id + '.nothing');
|
||||
})
|
||||
.keys(function(d) {
|
||||
return [d.cmd];
|
||||
|
||||
Reference in New Issue
Block a user