From 904fc3198829e82d7fdb5af5e0a23f062f6a5419 Mon Sep 17 00:00:00 2001 From: Nils Petter Fremming Date: Tue, 20 Aug 2024 14:48:07 +0200 Subject: [PATCH] Sync strings --- .../src/architecture/concrete/clipping/ClipTool.ts | 2 +- .../concrete/clipping/commands/ApplyClipCommand.ts | 2 +- .../concrete/clipping/commands/FlipSliceCommand.ts | 2 +- .../concrete/clipping/commands/NextClippingCommand.ts | 4 ++-- .../concrete/clipping/commands/SetClipTypeCommand.ts | 10 +++++----- .../clipping/commands/ShowAllClippingCommand.ts | 2 +- .../clipping/commands/ShowClippingOnTopCommand.ts | 2 +- 7 files changed, 12 insertions(+), 12 deletions(-) diff --git a/react-components/src/architecture/concrete/clipping/ClipTool.ts b/react-components/src/architecture/concrete/clipping/ClipTool.ts index bb79f586307..8bd0747ec8a 100644 --- a/react-components/src/architecture/concrete/clipping/ClipTool.ts +++ b/react-components/src/architecture/concrete/clipping/ClipTool.ts @@ -37,7 +37,7 @@ export class ClipTool extends PrimitiveEditTool { } public override get tooltip(): TranslateKey { - return { key: 'CLIP_TOOL', fallback: 'Create or edit crop boxes and slice planes' }; + return { key: 'CLIP_TOOL', fallback: 'Create, edit crop boxes, and slice planes' }; } public override getToolbar(): Array { diff --git a/react-components/src/architecture/concrete/clipping/commands/ApplyClipCommand.ts b/react-components/src/architecture/concrete/clipping/commands/ApplyClipCommand.ts index 9f5f4bcf7e4..135b2b06fc2 100644 --- a/react-components/src/architecture/concrete/clipping/commands/ApplyClipCommand.ts +++ b/react-components/src/architecture/concrete/clipping/commands/ApplyClipCommand.ts @@ -18,7 +18,7 @@ export class ApplyClipCommand extends RenderTargetCommand { public override get tooltip(): TranslateKey { return { key: 'CLIP_APPLY', - fallback: 'Apply selected crop box to the model if any, otherwise apply all slice planes' + fallback: 'Apply selected crop box to a model. Otherwise, apply to all slice planes' }; } diff --git a/react-components/src/architecture/concrete/clipping/commands/FlipSliceCommand.ts b/react-components/src/architecture/concrete/clipping/commands/FlipSliceCommand.ts index 1e6c7c2108b..3b0808e23ab 100644 --- a/react-components/src/architecture/concrete/clipping/commands/FlipSliceCommand.ts +++ b/react-components/src/architecture/concrete/clipping/commands/FlipSliceCommand.ts @@ -14,7 +14,7 @@ export class FlipSliceCommand extends DomainObjectCommand { // ================================================== public override get tooltip(): TranslateKey { - return { key: 'SLICE_FLIP', fallback: 'Flip side on this slice' }; + return { key: 'SLICE_FLIP', fallback: 'Flip side' }; } public override get icon(): string { diff --git a/react-components/src/architecture/concrete/clipping/commands/NextClippingCommand.ts b/react-components/src/architecture/concrete/clipping/commands/NextClippingCommand.ts index 13b35b8b0ac..915f373e555 100644 --- a/react-components/src/architecture/concrete/clipping/commands/NextClippingCommand.ts +++ b/react-components/src/architecture/concrete/clipping/commands/NextClippingCommand.ts @@ -29,12 +29,12 @@ export class NextOrPrevClippingCommand extends RenderTargetCommand { if (this._next) { return { key: 'CLIP_NEXT', - fallback: 'Set the next crop box or slicing plane as global clipping' + fallback: 'Set next crop box or slicing plane as global clipping' }; } else { return { key: 'CLIP_PREV', - fallback: 'Set the previous crop box or slicing plane as global clipping' + fallback: 'Set previous crop box or slicing plane as global clipping' }; } } diff --git a/react-components/src/architecture/concrete/clipping/commands/SetClipTypeCommand.ts b/react-components/src/architecture/concrete/clipping/commands/SetClipTypeCommand.ts index faa005b852b..d43d2db33b6 100644 --- a/react-components/src/architecture/concrete/clipping/commands/SetClipTypeCommand.ts +++ b/react-components/src/architecture/concrete/clipping/commands/SetClipTypeCommand.ts @@ -114,28 +114,28 @@ function getTooltipByPrimitiveType(primitiveType: PrimitiveType): TranslateKey { case PrimitiveType.PlaneX: return { key: 'ADD_SLICE_X', - fallback: 'Add vertical slice along Y-axis. Click at one point.' + fallback: 'Add vertical slice along Y-axis. Select a point.' }; case PrimitiveType.PlaneY: return { key: 'ADD_SLICE_Y', - fallback: 'Add vertical slice along X-axis. Click at one point.' + fallback: 'Add vertical slice along X-axis. Select a point.' }; case PrimitiveType.PlaneZ: return { key: 'ADD_SLICE_Z', - fallback: 'Add horizontal slice. Click at one point.' + fallback: 'Add horizontal slice. Select a point.' }; case PrimitiveType.PlaneXY: return { key: 'ADD_SLICE_XY', - fallback: 'Add vertical slice. Click at two points.' + fallback: 'Add vertical slice. Select two points.' }; case PrimitiveType.Box: return { key: 'ADD_CROP_BOX', fallback: - 'Create crop box. Click at three points in a horizontal plan and the fourth to give it height.' + 'Create crop box. Select three points in a horizontal plane, then select a fourth point for height.' }; default: throw new Error('Unknown PrimitiveType'); diff --git a/react-components/src/architecture/concrete/clipping/commands/ShowAllClippingCommand.ts b/react-components/src/architecture/concrete/clipping/commands/ShowAllClippingCommand.ts index 277371532cd..3c70c44fe4e 100644 --- a/react-components/src/architecture/concrete/clipping/commands/ShowAllClippingCommand.ts +++ b/react-components/src/architecture/concrete/clipping/commands/ShowAllClippingCommand.ts @@ -16,7 +16,7 @@ export class ShowAllClippingCommand extends InstanceCommand { public override get tooltip(): TranslateKey { return { key: 'CLIP_SHOW_SELECTED_ONLY', - fallback: 'Show or hide all other slicing planes and crop boxes than selected' + fallback: 'Show/hide slicing planes and crop boxes that are not selected' }; } diff --git a/react-components/src/architecture/concrete/clipping/commands/ShowClippingOnTopCommand.ts b/react-components/src/architecture/concrete/clipping/commands/ShowClippingOnTopCommand.ts index 3faf9672216..125cda932ff 100644 --- a/react-components/src/architecture/concrete/clipping/commands/ShowClippingOnTopCommand.ts +++ b/react-components/src/architecture/concrete/clipping/commands/ShowClippingOnTopCommand.ts @@ -14,7 +14,7 @@ export class ShowClippingOnTopCommand extends ShowDomainObjectsOnTopCommand { // ================================================== public override get tooltip(): TranslateKey { - return { key: 'CLIP_SHOW_ON_TOP', fallback: 'Show all crop boxes and slices on top' }; + return { key: 'CLIP_SHOW_ON_TOP', fallback: 'Show crop boxes and slices on top' }; } protected override isInstance(domainObject: DomainObject): boolean {