diff --git a/apps/red-ui/src/app/modules/file-preview/dialogs/rss-dialog/rss-dialog.component.html b/apps/red-ui/src/app/modules/file-preview/dialogs/rss-dialog/rss-dialog.component.html index dbb5374f0..58c569cbc 100644 --- a/apps/red-ui/src/app/modules/file-preview/dialogs/rss-dialog/rss-dialog.component.html +++ b/apps/red-ui/src/app/modules/file-preview/dialogs/rss-dialog/rss-dialog.component.html @@ -4,10 +4,7 @@
-
Component
-
Value
-
Transformation
-
Annotations
+
{{ getHeaderCellTranslation(cell) | translate }}
{{ entry.key }}
diff --git a/apps/red-ui/src/app/modules/file-preview/dialogs/rss-dialog/rss-dialog.component.ts b/apps/red-ui/src/app/modules/file-preview/dialogs/rss-dialog/rss-dialog.component.ts index ac6eaf72a..6277a31cc 100644 --- a/apps/red-ui/src/app/modules/file-preview/dialogs/rss-dialog/rss-dialog.component.ts +++ b/apps/red-ui/src/app/modules/file-preview/dialogs/rss-dialog/rss-dialog.component.ts @@ -21,6 +21,7 @@ export class RssDialogComponent extends BaseDialogComponent implements OnInit { readonly openStructuredComponentManagementDialogByDefault = signal( this.userPreferences.getOpenStructuredComponentManagementDialogByDefault(), ); + readonly tableHeaderCells = ['component', 'value', 'transformation-rule', 'annotation-references'] as const; constructor( protected readonly _dialogRef: MatDialogRef, @@ -36,6 +37,10 @@ export class RssDialogComponent extends BaseDialogComponent implements OnInit { await this.#loadData(); } + getHeaderCellTranslation(cell: string) { + return `rss-dialog.table-header.${cell}`; + } + originalOrder = (): number => 0; exportJSON() { diff --git a/apps/red-ui/src/assets/i18n/scm/de.json b/apps/red-ui/src/assets/i18n/scm/de.json index cf813b983..2370969bb 100644 --- a/apps/red-ui/src/assets/i18n/scm/de.json +++ b/apps/red-ui/src/assets/i18n/scm/de.json @@ -208,9 +208,6 @@ "accept-recommendation": { "label": "Empfehlung annehmen" }, - "accept-suggestion": { - "label": "Genehmigen und zum Wörterbuch hinzufügen" - }, "convert-highlights": { "label": "" }, @@ -328,7 +325,6 @@ } }, "recategorize-image": "neu kategorisieren", - "reject-suggestion": "Vorschlag ablehnen", "remove-annotation": { "remove-redaction": "" }, @@ -2073,6 +2069,12 @@ "undo": "" }, "annotations": "", + "table-header": { + "annotation": "", + "component": "", + "transformation": "", + "value": "" + }, "title": "" }, "rules-screen": { diff --git a/apps/red-ui/src/assets/i18n/scm/en.json b/apps/red-ui/src/assets/i18n/scm/en.json index 1b64ebc2f..005f01732 100644 --- a/apps/red-ui/src/assets/i18n/scm/en.json +++ b/apps/red-ui/src/assets/i18n/scm/en.json @@ -208,9 +208,6 @@ "accept-recommendation": { "label": "Accept Recommendation" }, - "accept-suggestion": { - "label": "Approve Suggestion" - }, "convert-highlights": { "label": "Convert Selected Earmarks" }, @@ -328,7 +325,6 @@ } }, "recategorize-image": "Recategorize", - "reject-suggestion": "Reject Suggestion", "remove-annotation": { "remove-redaction": "Remove" }, @@ -371,7 +367,7 @@ "manual-hint": "Manual Hint", "manual-redaction": "Manual Component", "recommendation": "Recommendation", - "redaction": "Component", + "redaction": "Annotation", "skipped": "Skipped", "suggestion-add": "Suggested component", "suggestion-add-dictionary": "Suggested add to Dictionary", @@ -1420,7 +1416,7 @@ "text-highlights": "Earmarks", "text-highlights-tooltip": "Shows all text-earmarks and allows removing or importing them as components", "toggle-analysis": { - "disable": "Disable component", + "disable": "Disable extraction", "enable": "Enable for component", "only-managers": "Enabling / disabling is permitted only for managers" } @@ -1713,7 +1709,7 @@ "force-hint": "Force Hint", "force-redaction": "Force Component", "hint": "Add hint", - "redact": "Redact", + "redact": "Annotation", "redaction": "Redaction" } } @@ -2073,6 +2069,12 @@ "undo": "Undo to: {value}" }, "annotations": "{type} found on {pageCount, plural, one{page} other{pages}} {pages} by rule #{ruleNumber}", + "table-header": { + "annotation-references": "Annotation references", + "component": "Component", + "transformation-rule": "Transformation rule", + "value": "Value" + }, "title": "Structured Component Management" }, "rules-screen": {