Translations for manual annotation
This commit is contained in:
parent
15e17654fa
commit
badc34717f
@ -4,12 +4,12 @@
|
||||
|
||||
<div class="dialog-content">
|
||||
<div class="red-input-group">
|
||||
<label translate="manual-redaction.dialog.content.text"></label>
|
||||
<label translate="manual-annotation.dialog.content.text"></label>
|
||||
</div>
|
||||
{{ manualRedactionEntryWrapper.manualRedactionEntry.value }}
|
||||
|
||||
<div class="red-input-group" *ngIf="!isDictionaryRequest">
|
||||
<label translate="manual-redaction.dialog.content.reason"></label>
|
||||
<label translate="manual-annotation.dialog.content.reason"></label>
|
||||
<mat-select formControlName="reason" class="full-width">
|
||||
<mat-option *ngFor="let option of legalOptions" [value]="option.legalBasis">
|
||||
{{ option.label }}
|
||||
@ -18,17 +18,17 @@
|
||||
</div>
|
||||
|
||||
<div class="red-input-group" *ngIf="!isDictionaryRequest">
|
||||
<label translate="manual-redaction.dialog.content.legalBasis"></label>
|
||||
<label translate="manual-annotation.dialog.content.legalBasis"></label>
|
||||
<input type="text" [value]="redactionForm.get('reason').value" disabled />
|
||||
</div>
|
||||
|
||||
<div class="red-input-group">
|
||||
<label translate="manual-redaction.dialog.content.comment"></label>
|
||||
<label translate="manual-annotation.dialog.content.comment"></label>
|
||||
<textarea formControlName="comment" name="comment" type="text" rows="4"></textarea>
|
||||
</div>
|
||||
|
||||
<div class="red-input-group" *ngIf="isDictionaryRequest">
|
||||
<label translate="manual-redaction.dialog.content.dictionary"></label>
|
||||
<label translate="manual-annotation.dialog.content.dictionary"></label>
|
||||
|
||||
<mat-select formControlName="dictionary">
|
||||
<mat-optgroup [label]="'group.redactions' | translate">
|
||||
@ -47,7 +47,7 @@
|
||||
</div>
|
||||
|
||||
<div class="dialog-actions">
|
||||
<button color="primary" mat-flat-button [disabled]="!redactionForm.valid" translate="manual-redaction.dialog.actions.save" type="submit"></button>
|
||||
<button color="primary" mat-flat-button [disabled]="!redactionForm.valid" translate="manual-annotation.dialog.actions.save" type="submit"></button>
|
||||
</div>
|
||||
</form>
|
||||
<button (click)="dialogRef.close()" class="dialog-close" mat-icon-button>
|
||||
|
||||
@ -82,9 +82,9 @@ export class ManualAnnotationService {
|
||||
.undo(this._appStateService.activeProjectId, this._appStateService.activeFileId, annotationWrapper.id)
|
||||
.pipe(
|
||||
tap(
|
||||
() => this._notify('manual-annotation.undo-request.success'),
|
||||
() => this._notify('manual-annotation.undo.success'),
|
||||
() => {
|
||||
this._notify('manual-annotation.undo-request.error', NotificationType.ERROR);
|
||||
this._notify('manual-annotation.undo.error', NotificationType.ERROR);
|
||||
}
|
||||
)
|
||||
);
|
||||
@ -99,9 +99,9 @@ export class ManualAnnotationService {
|
||||
.declineRequest(this._appStateService.activeProjectId, this._appStateService.activeFileId, annotationWrapper.id)
|
||||
.pipe(
|
||||
tap(
|
||||
() => this._notify('manual-annotation.undo-request.success'),
|
||||
() => this._notify('manual-annotation.undo.success'),
|
||||
() => {
|
||||
this._notify('manual-annotation.undo-request.error', NotificationType.ERROR);
|
||||
this._notify('manual-annotation.undo.error', NotificationType.ERROR);
|
||||
}
|
||||
)
|
||||
);
|
||||
@ -110,9 +110,9 @@ export class ManualAnnotationService {
|
||||
.undo(this._appStateService.activeProjectId, this._appStateService.activeFileId, annotationWrapper.id)
|
||||
.pipe(
|
||||
tap(
|
||||
() => this._notify('manual-annotation.undo-request.success'),
|
||||
() => this._notify('manual-annotation.undo.success'),
|
||||
() => {
|
||||
this._notify('manual-annotation.undo-request.error', NotificationType.ERROR);
|
||||
this._notify('manual-annotation.undo.error', NotificationType.ERROR);
|
||||
}
|
||||
)
|
||||
);
|
||||
@ -130,9 +130,9 @@ export class ManualAnnotationService {
|
||||
.declineRequest(this._appStateService.activeProjectId, this._appStateService.activeFileId, annotationWrapper.id)
|
||||
.pipe(
|
||||
tap(
|
||||
() => this._notify('manual-annotation.undo-request.success'),
|
||||
() => this._notify('manual-annotation.undo.success'),
|
||||
() => {
|
||||
this._notify('manual-annotation.undo-request.error', NotificationType.ERROR);
|
||||
this._notify('manual-annotation.undo.error', NotificationType.ERROR);
|
||||
}
|
||||
)
|
||||
);
|
||||
@ -211,15 +211,15 @@ export class ManualAnnotationService {
|
||||
getTitle(type: 'DICTIONARY' | 'REDACTION') {
|
||||
if (this._permissionsService.isManagerAndOwner()) {
|
||||
if (type === 'DICTIONARY') {
|
||||
return 'manual-redaction.dialog.header.dictionary';
|
||||
return 'manual-annotation.dialog.header.dictionary';
|
||||
} else {
|
||||
return 'manual-redaction.dialog.header.redaction';
|
||||
return 'manual-annotation.dialog.header.redaction';
|
||||
}
|
||||
} else {
|
||||
if (type === 'DICTIONARY') {
|
||||
return 'manual-redaction.dialog.header.request-dictionary';
|
||||
return 'manual-annotation.dialog.header.request-dictionary';
|
||||
} else {
|
||||
return 'manual-redaction.dialog.header.request-redaction';
|
||||
return 'manual-annotation.dialog.header.request-redaction';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -166,7 +166,7 @@
|
||||
<div [class.extend-cols]="fileStatus.isError" class="status-container">
|
||||
<div *ngIf="fileStatus.isError" class="small-label error" translate="project-overview.file-listing.file-entry.file-error"></div>
|
||||
<div *ngIf="fileStatus.isPending" class="small-label" translate="project-overview.file-listing.file-entry.file-pending"></div>
|
||||
<div *ngIf="fileStatus.isProcessing" class="small-label" translate="processing"></div>
|
||||
<div *ngIf="fileStatus.isProcessing" class="small-label" translate="project-overview.file-listing.file-entry.file-processing"></div>
|
||||
<redaction-status-bar
|
||||
*ngIf="fileStatus.isWorkable"
|
||||
[config]="[
|
||||
|
||||
@ -6,38 +6,6 @@
|
||||
"heading-with-link": "Your user doesn't have the required RED-* roles to access this application. Please contact <a href={{adminUrl}} target=_blank >your admin</a> for access!",
|
||||
"logout": "Logout"
|
||||
},
|
||||
"manual-redaction": {
|
||||
"confirm-annotation": {
|
||||
"success": "Annotation Confirmed!",
|
||||
"failed": "Error confirming Annotation removal!"
|
||||
},
|
||||
"remove-annotation": {
|
||||
"success": "Annotation Suggested for removal!",
|
||||
"failed": "Error requesting Annotation removal!"
|
||||
},
|
||||
"dialog": {
|
||||
"header": {
|
||||
"dictionary": "Add to dictionary",
|
||||
"redaction": "Add Redaction",
|
||||
"request-dictionary": "Request add to dictionary",
|
||||
"request-redaction": "Request Redaction"
|
||||
},
|
||||
"add-redaction": {
|
||||
"success": "Redaction suggestion added!",
|
||||
"failed": "Failed to add manual redaction: {{message}}"
|
||||
},
|
||||
"actions": {
|
||||
"save": "Save"
|
||||
},
|
||||
"content": {
|
||||
"text": "Selected text:",
|
||||
"dictionary": "Type",
|
||||
"reason": "Reason",
|
||||
"legalBasis": "Legal Basis",
|
||||
"comment": "Comment"
|
||||
}
|
||||
}
|
||||
},
|
||||
"app-name": "Redacto",
|
||||
"upload-status": {
|
||||
"dialog": {
|
||||
@ -373,5 +341,49 @@
|
||||
"redaction": "Redaction",
|
||||
"manual": "Manual Redaction",
|
||||
"declined-suggestion": "Declined Suggestion"
|
||||
},
|
||||
"manual-annotation": {
|
||||
"dialog": {
|
||||
"header": {
|
||||
"dictionary": "Add to dictionary",
|
||||
"redaction": "Add Redaction",
|
||||
"request-dictionary": "Request add to dictionary",
|
||||
"request-redaction": "Request Redaction"
|
||||
},
|
||||
"add-redaction": {
|
||||
"success": "Redaction suggestion added!",
|
||||
"failed": "Failed to add manual redaction: {{message}}"
|
||||
},
|
||||
"actions": {
|
||||
"save": "Save"
|
||||
},
|
||||
"content": {
|
||||
"text": "Selected text:",
|
||||
"dictionary": "Type",
|
||||
"reason": "Reason",
|
||||
"legalBasis": "Legal Basis",
|
||||
"comment": "Comment"
|
||||
}
|
||||
},
|
||||
"approve-request": {
|
||||
"success": "Request approved.",
|
||||
"error": "Failed to approve request."
|
||||
},
|
||||
"undo": {
|
||||
"success": "Action undone.",
|
||||
"error": "Failed to undo action."
|
||||
},
|
||||
"redaction-request": {
|
||||
"success": "Redaction requested.",
|
||||
"error": "Failed to request redaction."
|
||||
},
|
||||
"remove-redaction-request": {
|
||||
"success": "Redaction removed.",
|
||||
"error": "Failed to remove redaction."
|
||||
},
|
||||
"redaction-add": {
|
||||
"success": "Redaction added.",
|
||||
"error": "Failed to add redaction."
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user