mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-30 11:49:39 +02:00
Fix silent failure for some Osmose error types
When I added special handling for mapillary errors the code was trying to access translation strings nested under the error category (which doesn't exist for all error types). This code is now moved into it's own function so that variable hoisting doesn't run it for non-applicable error types and prevent them from working. - Also adds support for error type 3040 (bad tag value) - Updated the Osmose sidebar UI title
This commit is contained in:
+5
-2
@@ -828,7 +828,7 @@ en:
|
||||
full_screen: Toggle Full Screen
|
||||
QA:
|
||||
osmose:
|
||||
title: Osmose
|
||||
title: Osmose Issue
|
||||
error_types:
|
||||
0:
|
||||
title: 'Building Intersection'
|
||||
@@ -863,6 +863,9 @@ en:
|
||||
1280-1:
|
||||
title: 'Incorrect Speed Camera'
|
||||
description: '{0} should be on the highway or part of an "enforcement" relation.'
|
||||
3040-3040:
|
||||
title: 'Unusual Tagging'
|
||||
description: '{0} has a non-conventional tag value: {1}.'
|
||||
3161:
|
||||
title: 'Missing Parking Access'
|
||||
description: 'There is no highway leading to {0}.'
|
||||
@@ -880,7 +883,7 @@ en:
|
||||
description: '{0} is a power tower or pole with no connected power lines.'
|
||||
7040-4:
|
||||
title: 'Extra Power Line Node'
|
||||
description: 'Power lines only have nodes at connections and {0} is not tagged as a power line support.'
|
||||
description: 'Power lines should only have nodes at supports and {0} is not tagged as a pole or tower.'
|
||||
8300:
|
||||
title: 'Traffic Sign Suggestion'
|
||||
description: 'Traffic signs detected by Mapillary suggest there may be an unmapped {0} nearby.'
|
||||
|
||||
+4
-1
@@ -34,7 +34,7 @@
|
||||
}
|
||||
},
|
||||
"osmose": {
|
||||
"items": ["0", "1040", "1050", "1070", "1150", "1280", "3161", "3250", "4080", "7040", "8300", "8360"],
|
||||
"items": ["0", "1040", "1050", "1070", "1150", "1280", "3040", "3161", "3250", "4080", "7040", "8300", "8360"],
|
||||
"errorTypes": {
|
||||
"0-1": {
|
||||
"icon": "maki-home"
|
||||
@@ -78,6 +78,9 @@
|
||||
"1280-1": {
|
||||
"icon": "maki-attraction"
|
||||
},
|
||||
"3040-3040": {
|
||||
"icon": "far-times-circle"
|
||||
},
|
||||
"3161-1": {
|
||||
"icon": "maki-parking"
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user