mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-12 20:42:37 +02:00
Avoid having hidden issues strings for both singular and multiple variations
This commit is contained in:
+7
-21
@@ -1288,27 +1288,13 @@ en:
|
||||
edits_in_view: Your edits in view look fine
|
||||
hidden_issues:
|
||||
none: Detected issues will appear here
|
||||
elsewhere:
|
||||
single: "1 issue elsewhere"
|
||||
multiple: "{count} issues elsewhere"
|
||||
other_features:
|
||||
single: "1 issue with other features"
|
||||
multiple: "{count} issues with other features"
|
||||
other_features_elsewhere:
|
||||
single: "1 issue with other features elsewhere"
|
||||
multiple: "{count} issues with other features elsewhere"
|
||||
disabled_rules:
|
||||
single: "1 issue with disabled rules"
|
||||
multiple: "{count} issues with disabled rules"
|
||||
disabled_rules_elsewhere:
|
||||
single: "1 issue with disabled rules elsewhere"
|
||||
multiple: "{count} issues with disabled rules elsewhere"
|
||||
ignored_issues:
|
||||
single: "1 ignored issue"
|
||||
multiple: "{count} ignored issues"
|
||||
ignored_issues_elsewhere:
|
||||
single: "1 ignored issue elsewhere"
|
||||
multiple: "{count} ignored issues elsewhere"
|
||||
elsewhere: "Issues elsewhere: {count}"
|
||||
other_features: "Issues with other features: {count}"
|
||||
other_features_elsewhere: "Issues with other features elsewhere: {count}"
|
||||
disabled_rules: "Issues with disabled rules: {count}"
|
||||
disabled_rules_elsewhere: "Issues with disabled rules elsewhere: {count}"
|
||||
ignored_issues: "Ignored issues: {count}"
|
||||
ignored_issues_elsewhere: "Ignored issues elsewhere: {count}"
|
||||
options:
|
||||
what:
|
||||
title: "Check:"
|
||||
|
||||
Vendored
+7
-28
@@ -1579,34 +1579,13 @@
|
||||
},
|
||||
"hidden_issues": {
|
||||
"none": "Detected issues will appear here",
|
||||
"elsewhere": {
|
||||
"single": "1 issue elsewhere",
|
||||
"multiple": "{count} issues elsewhere"
|
||||
},
|
||||
"other_features": {
|
||||
"single": "1 issue with other features",
|
||||
"multiple": "{count} issues with other features"
|
||||
},
|
||||
"other_features_elsewhere": {
|
||||
"single": "1 issue with other features elsewhere",
|
||||
"multiple": "{count} issues with other features elsewhere"
|
||||
},
|
||||
"disabled_rules": {
|
||||
"single": "1 issue with disabled rules",
|
||||
"multiple": "{count} issues with disabled rules"
|
||||
},
|
||||
"disabled_rules_elsewhere": {
|
||||
"single": "1 issue with disabled rules elsewhere",
|
||||
"multiple": "{count} issues with disabled rules elsewhere"
|
||||
},
|
||||
"ignored_issues": {
|
||||
"single": "1 ignored issue",
|
||||
"multiple": "{count} ignored issues"
|
||||
},
|
||||
"ignored_issues_elsewhere": {
|
||||
"single": "1 ignored issue elsewhere",
|
||||
"multiple": "{count} ignored issues elsewhere"
|
||||
}
|
||||
"elsewhere": "Issues elsewhere: {count}",
|
||||
"other_features": "Issues with other features: {count}",
|
||||
"other_features_elsewhere": "Issues with other features elsewhere: {count}",
|
||||
"disabled_rules": "Issues with disabled rules: {count}",
|
||||
"disabled_rules_elsewhere": "Issues with disabled rules elsewhere: {count}",
|
||||
"ignored_issues": "Ignored issues: {count}",
|
||||
"ignored_issues_elsewhere": "Ignored issues elsewhere: {count}"
|
||||
}
|
||||
},
|
||||
"options": {
|
||||
|
||||
@@ -402,10 +402,9 @@ export function uiIssues(context) {
|
||||
var opts = cases[type];
|
||||
var hiddenIssues = context.validator().getIssues(opts);
|
||||
if (hiddenIssues.length) {
|
||||
var quantity = hiddenIssues.length === 1 ? 'single' : 'multiple';
|
||||
_pane.select('.issues-none .details')
|
||||
.text(t(
|
||||
'issues.no_issues.hidden_issues.' + type + '.' + quantity,
|
||||
'issues.no_issues.hidden_issues.' + type,
|
||||
{ count: hiddenIssues.length.toString() }
|
||||
));
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user