DM-336, rename stuff.

This commit is contained in:
George 2023-07-18 15:14:56 +03:00
parent 9dfddc4a05
commit 6d0d270feb
4 changed files with 21 additions and 15 deletions

View File

@ -4,10 +4,7 @@
<hr />
<div class="dialog-content">
<div *ngIf="rssData() | log as rssEntry" class="table output-data">
<div class="table-header">Component</div>
<div class="table-header">Value</div>
<div class="table-header">Transformation</div>
<div class="table-header">Annotations</div>
<div class="table-header" *ngFor="let cell of tableHeaderCells">{{ getHeaderCellTranslation(cell) | translate }}</div>
<ng-container *ngFor="let entry of rssEntry.result | keyvalue : originalOrder">
<div class="bold">{{ entry.key }}</div>

View File

@ -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<RssDialogComponent>,
@ -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() {

View File

@ -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": {

View File

@ -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": "<strong>{type}</strong> 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": {