mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-13 01:02:58 +00:00
Show more specific message when nonstandard brand has simply incomplete tags (close #6909)
This commit is contained in:
@@ -1464,6 +1464,7 @@ en:
|
||||
reference: "Some features should have additional tags."
|
||||
noncanonical_brand:
|
||||
message: "{feature} looks like a brand with nonstandard tags"
|
||||
message_incomplete: "{feature} looks like a brand with incomplete tags"
|
||||
reference: "All features of the same brand should be tagged the same way."
|
||||
point_as_vertex:
|
||||
message: '{feature} should be a standalone point based on its tags'
|
||||
|
||||
1
dist/locales/en.json
vendored
1
dist/locales/en.json
vendored
@@ -1813,6 +1813,7 @@
|
||||
},
|
||||
"noncanonical_brand": {
|
||||
"message": "{feature} looks like a brand with nonstandard tags",
|
||||
"message_incomplete": "{feature} looks like a brand with incomplete tags",
|
||||
"reference": "All features of the same brand should be tagged the same way."
|
||||
}
|
||||
},
|
||||
|
||||
@@ -173,7 +173,15 @@ export function validationOutdatedTags(context) {
|
||||
var currEntity = context.hasEntity(entity.id);
|
||||
if (!currEntity) return '';
|
||||
|
||||
return t('issues.outdated_tags.' + prefix + 'message',
|
||||
var messageID = 'issues.outdated_tags.' + prefix + 'message';
|
||||
|
||||
if (subtype === 'noncanonical_brand' && tagDiff.every(function(d) {
|
||||
return d.type === '+';
|
||||
})) {
|
||||
messageID += '_incomplete';
|
||||
}
|
||||
|
||||
return t(messageID,
|
||||
{ feature: utilDisplayLabel(currEntity, context) }
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user