Update custom data text strings

This commit is contained in:
Bryan Housel
2018-08-18 08:33:43 -04:00
parent 0ae4099ff6
commit 4cfd5b0078
3 changed files with 12 additions and 42 deletions
+4 -10
View File
@@ -460,6 +460,10 @@ en:
notes:
tooltip: Note data from OpenStreetMap
title: OpenStreetMap notes
custom:
tooltip: "Drag and drop a data file onto the page, or click the button to setup"
title: Custom Map Data
zoom: Zoom to data
fill_area: Fill Areas
map_features: Map Features
autohidden: "These features have been automatically hidden because too many would be shown on the screen. You can zoom in to edit them."
@@ -620,16 +624,6 @@ en:
out: Zoom out
cannot_zoom: "Cannot zoom out further in current mode."
full_screen: Toggle Full Screen
gpx:
local_layer: "Add a GPX"
drag_drop: "Drag and drop a .gpx, .geojson or .kml file on the page, or click the button to the right to browse"
zoom: "Zoom to layer"
browse: "Browse for a file"
mvt:
local_layer: "Add a MVT"
drag_drop: "Drag and drop a .mvt or .pbf file on the page, or click the button to the right to browse"
zoom: "Zoom to layer"
browse: "Browse for a file"
streetside:
tooltip: "Streetside photos from Microsoft"
title: "Photo Overlay (Bing Streetside)"
+5 -12
View File
@@ -558,6 +558,11 @@
"notes": {
"tooltip": "Note data from OpenStreetMap",
"title": "OpenStreetMap notes"
},
"custom": {
"tooltip": "Drag and drop a data file onto the page, or click the button to setup",
"title": "Custom Map Data",
"zoom": "Zoom to data"
}
},
"fill_area": "Fill Areas",
@@ -754,18 +759,6 @@
},
"cannot_zoom": "Cannot zoom out further in current mode.",
"full_screen": "Toggle Full Screen",
"gpx": {
"local_layer": "Add a GPX",
"drag_drop": "Drag and drop a .gpx, .geojson or .kml file on the page, or click the button to the right to browse",
"zoom": "Zoom to layer",
"browse": "Browse for a file"
},
"mvt": {
"local_layer": "Add a MVT",
"drag_drop": "Drag and drop a .mvt or .pbf file on the page, or click the button to the right to browse",
"zoom": "Zoom to layer",
"browse": "Browse for a file"
},
"streetside": {
"tooltip": "Streetside photos from Microsoft",
"title": "Photo Overlay (Bing Streetside)",
+3 -20
View File
@@ -245,7 +245,7 @@ export function uiMapData(context) {
liEnter
.append('button')
.call(tooltip()
.title(t('gpx.zoom'))
.title(t('map_data.layers.custom.zoom'))
.placement((textDirection === 'rtl') ? 'right' : 'left')
)
.on('click', function() {
@@ -255,27 +255,10 @@ export function uiMapData(context) {
})
.call(svgIcon('#iD-icon-search'));
// liEnter
// .append('button')
// .attr('class', 'list-item-data-browse')
// .call(tooltip()
// .title(t('gpx.browse'))
// .placement((textDirection === 'rtl') ? 'right' : 'left')
// )
// .on('click', function() {
// d3_select(document.createElement('input'))
// .attr('type', 'file')
// .on('change', function() {
// dataLayer.files(d3_event.target.files);
// })
// .node().click();
// })
// .call(svgIcon('#iD-icon-geolocate'));
var labelEnter = liEnter
.append('label')
.call(tooltip()
.title(t('gpx.drag_drop'))
.title(t('map_data.layers.custom.tooltip'))
.placement('top')
);
@@ -286,7 +269,7 @@ export function uiMapData(context) {
labelEnter
.append('span')
.text(t('gpx.local_layer'));
.text(t('map_data.layers.custom.title'));
// Update
ul = ul