Skip to content

Commit

Permalink
Sync strings
Browse files Browse the repository at this point in the history
  • Loading branch information
nilscognite committed Aug 20, 2024
1 parent 97fcba3 commit 904fc31
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<BaseCommand | undefined> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'
};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export class FlipSliceCommand extends DomainObjectCommand<SliceDomainObject> {
// ==================================================

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 {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'
};
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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'
};
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 904fc31

Please sign in to comment.