From c050b37f5dbaef57aba74ae393816bc30be719bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adina=20=C8=9Aeudan?= Date: Fri, 23 Jul 2021 00:29:08 +0300 Subject: [PATCH] Translation rework: pluralize strings --- .../services/dossiers-dialog.service.ts | 2 +- apps/red-ui/src/assets/i18n/en.json | 41 +++++++++---------- 2 files changed, 21 insertions(+), 22 deletions(-) diff --git a/apps/red-ui/src/app/modules/dossier/services/dossiers-dialog.service.ts b/apps/red-ui/src/app/modules/dossier/services/dossiers-dialog.service.ts index c4fff7ae9..becdd9247 100644 --- a/apps/red-ui/src/app/modules/dossier/services/dossiers-dialog.service.ts +++ b/apps/red-ui/src/app/modules/dossier/services/dossiers-dialog.service.ts @@ -205,7 +205,7 @@ export class DossiersDialogService extends DialogService { title: _('confirmation-dialog.delete-dossier.title'), titleColor: TitleColors.PRIMARY, question: _('confirmation-dialog.delete-dossier.question'), - details: _('confirmation-dialog.delete-dossier.details'), + // details: _('confirmation-dialog.delete-dossier.details'), confirmationText: _('confirmation-dialog.delete-dossier.confirmation-text'), requireInput: true, denyText: _('confirmation-dialog.delete-dossier.deny-text'), diff --git a/apps/red-ui/src/assets/i18n/en.json b/apps/red-ui/src/assets/i18n/en.json index 069d2a8ce..e45ef1e82 100644 --- a/apps/red-ui/src/assets/i18n/en.json +++ b/apps/red-ui/src/assets/i18n/en.json @@ -285,7 +285,7 @@ "user": "User" }, "table-header": { - "title": "{length} Logs" + "title": "{length} {length, plural, one{Log} other{Logs}}" }, "to": "to" }, @@ -355,7 +355,6 @@ "delete-dossier": { "confirmation-text": "Delete Dossier", "deny-text": "Keep Dossier", - "details": "Deleted dossiers are sent to trash. They can be restored up to {period} days from their deletion.", "input-label": "To proceed please type below", "question": "Are you sure you want to delete this dossier?", "title": "Delete {dossierName}" @@ -376,7 +375,7 @@ "key": "Type" }, "table-header": { - "title": "{length} Default Colors" + "title": "{length} Default {length, plural, one{Color} other{Colors}}" }, "types": { "analysisColor": "Analysis", @@ -423,7 +422,7 @@ "type": "Type" }, "table-header": { - "title": "{length} dictionaries" + "title": "{length} {length, plural, one{dictionary} other{dictionaries}}" } }, "dictionary-overview": { @@ -523,7 +522,7 @@ "type": "Type" }, "table-header": { - "title": "{length} dossier attributes" + "title": "{length} dossier {length, plural, one{attribute} other{attributes}}" } }, "dossier-details": { @@ -600,7 +599,7 @@ }, "dossier-details": { "attributes": { - "expand": "{count} custom attributes", + "expand": "{count} custom {count, plural, one{attribute} other{attributes}}", "image-uploaded": "Image uploaded", "show-less": "show less" }, @@ -610,11 +609,11 @@ "description": "Description", "dictionary": "Dossier Dictionary", "stats": { - "analysed-pages": "{count} pages", + "analysed-pages": "{count} {count, plural, one{page} other{pages}}", "created-on": "Created on {date}", - "documents": "{count} documents", + "documents": "{count} {count, plural, one{document} other{documents}}", "due-date": "Due {date}", - "people": "{count} user(s)" + "people": "{count} {count, plural, one{user} other{users}}" } }, "download-file": "Download", @@ -669,7 +668,7 @@ "status": "Status" }, "table-header": { - "title": "{length} documents" + "title": "{length} {length, plural, one{document} other{documents}}" }, "under-approval": "For Approval", "under-review": "Under Review", @@ -685,7 +684,7 @@ "bulk": { "delete": "Delete Selected Dossier Templates" }, - "dictionaries": "{length} dictionaries", + "dictionaries": "{length} {length, plural, one{dictionary} other{dictionaries}}", "no-data": { "title": "There are no dossier templates yet." }, @@ -700,7 +699,7 @@ "name": "Name" }, "table-header": { - "title": "{length} dossier templates" + "title": "{length} dossier {length, plural, one{template} other{templates}}" } }, "download-includes": "Choose what is included at download:", @@ -710,7 +709,7 @@ "download-type": { "annotated": "Annotated PDF", "flatten": "Flatten PDF", - "label": "{length} document versions", + "label": "{length} document {length, plural, one{version} other{versions}}", "original": "Optimized PDF", "preview": "Preview PDF", "redacted": "Redacted PDF" @@ -730,7 +729,7 @@ "status": "Status" }, "table-header": { - "title": "{length} downloads" + "title": "{length} {length, plural, one{download} other{downloads}}" } }, "edit-color-dialog": { @@ -758,7 +757,7 @@ "change-successful": "Dossier was updated.", "delete-successful": "Dossier was deleted.", "dictionary": { - "entries": "{length} entries" + "entries": "{length} {length, plural, one{entry} other{entries}}" }, "general-info": { "form": { @@ -826,7 +825,7 @@ "save": { "error": "Failed to create File Attributes!", "label": "Save Attributes", - "success": "{count} File Attributes created successfully!" + "success": "{count} file {count, plural, one{attribute} other{attributes}} created successfully!" }, "search": { "placeholder": "Search by column name..." @@ -847,7 +846,7 @@ "remove-selected": "Remove Selected", "type": "Type" }, - "title": "{length} file attributes" + "title": "{length} file {length, plural, one{attribute} other{attributes}}" }, "title": "Select CSV columns to use as File Attributes", "total-rows": "{rows} rows in total" @@ -878,7 +877,7 @@ "type": "Input Type" }, "table-header": { - "title": "{length} file attributes" + "title": "{length} file {length, plural, one{attribute} other{attributes}}" }, "upload-csv": "Upload File Attributes Configuration" }, @@ -1114,7 +1113,7 @@ "report-type": { "excel-multi-file": "Excel (for all)", "excel-single-file": "Excel (per file)", - "label": "{length} report types", + "label": "{length} report {length, plural, one{type} other{types}}", "word-single-file-appendix-a1": "Justification Appendix A1", "word-single-file-appendix-a2": "Justification Appendix A2" }, @@ -1260,7 +1259,7 @@ "time-to-restore": "Time to restore" }, "table-header": { - "title": "{length} deleted dossiers" + "title": "{length} deleted {length, plural, one{dossier} other{dossiers}}" } }, "type": "Type", @@ -1298,7 +1297,7 @@ "roles": "Roles" }, "table-header": { - "title": "{length} users" + "title": "{length} {length, plural, one{user} other{users}}" } }, "user-management": "User Management",