mirror of
https://github.com/FoggedLens/iD.git
synced 2026-05-22 16:19:48 +02:00
Show count and use plural forms for more operation strings (re: #8014)
This commit is contained in:
@@ -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 }));
|
||||
}
|
||||
}));
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user