Don’t interpolate geometry type

This commit is contained in:
John Firebaugh
2014-06-15 09:56:00 -07:00
parent 8f3f9c39d3
commit 11acf216c3
3 changed files with 7 additions and 3 deletions

View File

@@ -278,7 +278,9 @@ en:
untagged_area: Untagged area
many_deletions: "You're deleting {n} objects. Are you sure you want to do this? This will delete them from the map that everyone else sees on openstreetmap.org."
tag_suggests_area: "The tag {tag} suggests line should be area, but it is not an area"
untagged_tooltip: "Select a feature type that describes what this {geometry} is."
untagged_point_tooltip: "Select a feature type that describes what this point is."
untagged_line_tooltip: "Select a feature type that describes what this line is."
untagged_area_tooltip: "Select a feature type that describes what this area is."
deprecated_tags: "Deprecated tags: {tags}"
zoom:
in: Zoom In

View File

@@ -336,7 +336,9 @@
"untagged_area": "Untagged area",
"many_deletions": "You're deleting {n} objects. Are you sure you want to do this? This will delete them from the map that everyone else sees on openstreetmap.org.",
"tag_suggests_area": "The tag {tag} suggests line should be area, but it is not an area",
"untagged_tooltip": "Select a feature type that describes what this {geometry} is.",
"untagged_point_tooltip": "Select a feature type that describes what this point is.",
"untagged_line_tooltip": "Select a feature type that describes what this line is.",
"untagged_area_tooltip": "Select a feature type that describes what this area is.",
"deprecated_tags": "Deprecated tags: {tags}"
},
"zoom": {

View File

@@ -28,7 +28,7 @@ iD.validate = function(changes, graph) {
if ((geometry === 'point' || geometry === 'line' || geometry === 'area') && !change.isUsed(graph)) {
warnings.push({
message: t('validations.untagged_' + geometry),
tooltip: t('validations.untagged_tooltip', {geometry: geometry}),
tooltip: t('validations.untagged_' + geometry + '_tooltip'),
entity: change
});
}