Show count and use plural forms for more operation strings (re: #8014)

This commit is contained in:
Quincy Morgan
2020-09-22 09:10:49 -04:00
parent e04dff10ec
commit 79688ce2d9
15 changed files with 101 additions and 62 deletions
+1 -1
View File
@@ -180,7 +180,7 @@ export function validationImpossibleOneway() {
entityIds: [way.id],
onClick: function(context) {
var id = this.issue.entityIds[0];
context.perform(actionReverse(id), t('operations.reverse.annotation'));
context.perform(actionReverse(id), t('operations.reverse.annotation.line', { n: 1 }));
}
}));
}
+2 -2
View File
@@ -67,7 +67,7 @@ export function validationUnsquareWay(context) {
// use same degree threshold as for detection
var autoAction = actionOrthogonalize(entity.id, context.projection, undefined, degreeThreshold);
autoAction.transitionable = false; // when autofixing, do it instantly
autoArgs = [autoAction, t('operations.orthogonalize.annotation.feature.single')];
autoArgs = [autoAction, t('operations.orthogonalize.annotation.feature', { n: 1 })];
}
return [new validationIssue({
@@ -92,7 +92,7 @@ export function validationUnsquareWay(context) {
// use same degree threshold as for detection
context.perform(
actionOrthogonalize(entityId, context.projection, undefined, degreeThreshold),
t('operations.orthogonalize.annotation.feature.single')
t('operations.orthogonalize.annotation.feature', { n: 1 })
);
// run after the squaring transition (currently 150ms)
window.setTimeout(function() { completionHandler(); }, 175);