mirror of
https://github.com/FoggedLens/iD.git
synced 2026-04-01 09:40:38 +02:00
Add ability to show the square threshold in the rule name
This commit is contained in:
@@ -1444,7 +1444,7 @@ en:
|
||||
message: "{feature} has no outlet"
|
||||
reference: "One-way roads must lead to other roads."
|
||||
unsquare_way:
|
||||
title: Unsquare Corners
|
||||
title: "Unsquare Corners (up to {val}°)"
|
||||
message: "{feature} has unsquare corners"
|
||||
tip: "Find features with unsquare corners that can be drawn better"
|
||||
buildings:
|
||||
|
||||
2
dist/locales/en.json
vendored
2
dist/locales/en.json
vendored
@@ -1790,7 +1790,7 @@
|
||||
}
|
||||
},
|
||||
"unsquare_way": {
|
||||
"title": "Unsquare Corners",
|
||||
"title": "Unsquare Corners (up to {val}°)",
|
||||
"message": "{feature} has unsquare corners",
|
||||
"tip": "Find features with unsquare corners that can be drawn better",
|
||||
"buildings": {
|
||||
|
||||
@@ -564,7 +564,13 @@ export function uiIssues(context) {
|
||||
|
||||
label
|
||||
.append('span')
|
||||
.text(function(d) { return t('issues.' + d + '.title'); });
|
||||
.text(function(d) {
|
||||
var params = {};
|
||||
if (d === 'unsquare_way') {
|
||||
params.val = 6.5;
|
||||
}
|
||||
return t('issues.' + d + '.title', params);
|
||||
});
|
||||
|
||||
// Update
|
||||
items = items
|
||||
|
||||
Reference in New Issue
Block a user