From 85f564a06a0cd406ff6c6c52baf7644cd8a02192 Mon Sep 17 00:00:00 2001 From: Dan Percic Date: Mon, 18 Sep 2023 14:36:36 +0300 Subject: [PATCH] RED-7554 update translations --- .../edit-redaction-dialog.component.html | 6 +++++- .../src/app/modules/file-preview/utils/dialog-options.ts | 3 ++- apps/red-ui/src/assets/i18n/redact/de.json | 8 ++++---- apps/red-ui/src/assets/i18n/redact/en.json | 8 ++++---- 4 files changed, 15 insertions(+), 10 deletions(-) diff --git a/apps/red-ui/src/app/modules/file-preview/dialogs/edit-redaction-dialog/edit-redaction-dialog.component.html b/apps/red-ui/src/app/modules/file-preview/dialogs/edit-redaction-dialog/edit-redaction-dialog.component.html index 0f7faf0f4..68e887241 100644 --- a/apps/red-ui/src/app/modules/file-preview/dialogs/edit-redaction-dialog/edit-redaction-dialog.component.html +++ b/apps/red-ui/src/app/modules/file-preview/dialogs/edit-redaction-dialog/edit-redaction-dialog.component.html @@ -8,7 +8,11 @@
- + {{ redactedText }}
diff --git a/apps/red-ui/src/app/modules/file-preview/utils/dialog-options.ts b/apps/red-ui/src/app/modules/file-preview/utils/dialog-options.ts index 9befd59e2..dde15aeac 100644 --- a/apps/red-ui/src/app/modules/file-preview/utils/dialog-options.ts +++ b/apps/red-ui/src/app/modules/file-preview/utils/dialog-options.ts @@ -159,6 +159,7 @@ export const getRemoveRedactionOptions = ( description: isBulk ? translations.ONLY_HERE.descriptionBulk : translations.ONLY_HERE.description, descriptionParams: { value: redactions[0].value, + type: redactions[0].hint ? 'hint' : redactions[0].type, }, icon: PIN_ICON, value: RemoveRedactionOptions.ONLY_HERE, @@ -168,7 +169,7 @@ export const getRemoveRedactionOptions = ( options.push({ label: isBulk ? translations.IN_DOSSIER.labelBulk : translations.IN_DOSSIER.label, description: isBulk ? translations.IN_DOSSIER.descriptionBulk : translations.IN_DOSSIER.description, - descriptionParams: { value: redactions[0].value, type: redactions[0].type }, + descriptionParams: { value: redactions[0].value, type: redactions[0].hint ? 'hint' : redactions[0].type }, icon: FOLDER_ICON, value: RemoveRedactionOptions.IN_DOSSIER, extraOption: !isDocumine diff --git a/apps/red-ui/src/assets/i18n/redact/de.json b/apps/red-ui/src/assets/i18n/redact/de.json index 1e62363f2..8287d047a 100644 --- a/apps/red-ui/src/assets/i18n/redact/de.json +++ b/apps/red-ui/src/assets/i18n/redact/de.json @@ -1249,7 +1249,7 @@ } }, "reason": "Reason", - "redacted-text": "Redacted text", + "redacted-text": "{type, select, hint{Hint} other{Redacted}} text", "section": "Paragraph / Location", "type": "Type", "unchanged": "Unchanged" @@ -2099,14 +2099,14 @@ "label": "False positive" }, "in-dossier": { - "description": "Do not {type} \"{value}\" in any document of the current dossier.", + "description": "Do not {type, select, hint{annotate} other{redact}} \"{value}\" in any document of the current dossier.", "description-bulk": "Do not redact the selected terms as their respective types in any dossier.", "extraOptionLabel": "Apply to all dossiers", "label": "Remove from dossier", "label-bulk": "No longer redact in any dossier" }, "only-here": { - "description": "Do not {type, select, undefined{redact} other{type}} \"{value}\" at this position in the current document.", + "description": "Do not {type, select, hint{annotate} other{redact}} \"{value}\" at this position in the current document.", "description-bulk": "Do not redact the selected terms at this position in the current document.", "label": "Remove here" } @@ -2541,4 +2541,4 @@ } }, "yesterday": "Gestern" -} \ No newline at end of file +} diff --git a/apps/red-ui/src/assets/i18n/redact/en.json b/apps/red-ui/src/assets/i18n/redact/en.json index 3caa260f4..a7df22787 100644 --- a/apps/red-ui/src/assets/i18n/redact/en.json +++ b/apps/red-ui/src/assets/i18n/redact/en.json @@ -1249,7 +1249,7 @@ } }, "reason": "Reason", - "redacted-text": "Redacted text", + "redacted-text": "{type, select, hint{Hint} other{Redacted}} text", "section": "Paragraph / Location", "type": "Type", "unchanged": "Unchanged" @@ -2099,14 +2099,14 @@ "label": "False positive" }, "in-dossier": { - "description": "Do not {type} \"{value}\" in any document of the current dossier.", + "description": "Do not {type, select, hint{annotate} other{redact}} \"{value}\" in any document of the current dossier.", "description-bulk": "Do not redact the selected terms as their respective types in any dossier.", "extraOptionLabel": "Apply to all dossiers", "label": "Remove from dossier", "label-bulk": "No longer redact in any dossier" }, "only-here": { - "description": "Do not {type, select, undefined{redact} other{type}} \"{value}\" at this position in the current document.", + "description": "Do not {type, select, hint{annotate} other{redact}} \"{value}\" at this position in the current document.", "description-bulk": "Do not redact the selected terms at this position in the current document.", "label": "Remove here" } @@ -2541,4 +2541,4 @@ } }, "yesterday": "Yesterday" -} \ No newline at end of file +}