Translation rework: pluralize strings

This commit is contained in:
Adina Țeudan 2021-07-23 00:29:08 +03:00
parent d5c55b33e2
commit c050b37f5d
2 changed files with 21 additions and 22 deletions

View File

@ -205,7 +205,7 @@ export class DossiersDialogService extends DialogService<DialogType> {
title: _('confirmation-dialog.delete-dossier.title'), title: _('confirmation-dialog.delete-dossier.title'),
titleColor: TitleColors.PRIMARY, titleColor: TitleColors.PRIMARY,
question: _('confirmation-dialog.delete-dossier.question'), 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'), confirmationText: _('confirmation-dialog.delete-dossier.confirmation-text'),
requireInput: true, requireInput: true,
denyText: _('confirmation-dialog.delete-dossier.deny-text'), denyText: _('confirmation-dialog.delete-dossier.deny-text'),

View File

@ -285,7 +285,7 @@
"user": "User" "user": "User"
}, },
"table-header": { "table-header": {
"title": "{length} Logs" "title": "{length} {length, plural, one{Log} other{Logs}}"
}, },
"to": "to" "to": "to"
}, },
@ -355,7 +355,6 @@
"delete-dossier": { "delete-dossier": {
"confirmation-text": "Delete Dossier", "confirmation-text": "Delete Dossier",
"deny-text": "Keep 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", "input-label": "To proceed please type below",
"question": "Are you sure you want to delete this dossier?", "question": "Are you sure you want to delete this dossier?",
"title": "Delete {dossierName}" "title": "Delete {dossierName}"
@ -376,7 +375,7 @@
"key": "Type" "key": "Type"
}, },
"table-header": { "table-header": {
"title": "{length} Default Colors" "title": "{length} Default {length, plural, one{Color} other{Colors}}"
}, },
"types": { "types": {
"analysisColor": "Analysis", "analysisColor": "Analysis",
@ -423,7 +422,7 @@
"type": "Type" "type": "Type"
}, },
"table-header": { "table-header": {
"title": "{length} dictionaries" "title": "{length} {length, plural, one{dictionary} other{dictionaries}}"
} }
}, },
"dictionary-overview": { "dictionary-overview": {
@ -523,7 +522,7 @@
"type": "Type" "type": "Type"
}, },
"table-header": { "table-header": {
"title": "{length} dossier attributes" "title": "{length} dossier {length, plural, one{attribute} other{attributes}}"
} }
}, },
"dossier-details": { "dossier-details": {
@ -600,7 +599,7 @@
}, },
"dossier-details": { "dossier-details": {
"attributes": { "attributes": {
"expand": "{count} custom attributes", "expand": "{count} custom {count, plural, one{attribute} other{attributes}}",
"image-uploaded": "Image uploaded", "image-uploaded": "Image uploaded",
"show-less": "show less" "show-less": "show less"
}, },
@ -610,11 +609,11 @@
"description": "Description", "description": "Description",
"dictionary": "Dossier Dictionary", "dictionary": "Dossier Dictionary",
"stats": { "stats": {
"analysed-pages": "{count} pages", "analysed-pages": "{count} {count, plural, one{page} other{pages}}",
"created-on": "Created on {date}", "created-on": "Created on {date}",
"documents": "{count} documents", "documents": "{count} {count, plural, one{document} other{documents}}",
"due-date": "Due {date}", "due-date": "Due {date}",
"people": "{count} user(s)" "people": "{count} {count, plural, one{user} other{users}}"
} }
}, },
"download-file": "Download", "download-file": "Download",
@ -669,7 +668,7 @@
"status": "Status" "status": "Status"
}, },
"table-header": { "table-header": {
"title": "{length} documents" "title": "{length} {length, plural, one{document} other{documents}}"
}, },
"under-approval": "For Approval", "under-approval": "For Approval",
"under-review": "Under Review", "under-review": "Under Review",
@ -685,7 +684,7 @@
"bulk": { "bulk": {
"delete": "Delete Selected Dossier Templates" "delete": "Delete Selected Dossier Templates"
}, },
"dictionaries": "{length} dictionaries", "dictionaries": "{length} {length, plural, one{dictionary} other{dictionaries}}",
"no-data": { "no-data": {
"title": "There are no dossier templates yet." "title": "There are no dossier templates yet."
}, },
@ -700,7 +699,7 @@
"name": "Name" "name": "Name"
}, },
"table-header": { "table-header": {
"title": "{length} dossier templates" "title": "{length} dossier {length, plural, one{template} other{templates}}"
} }
}, },
"download-includes": "Choose what is included at download:", "download-includes": "Choose what is included at download:",
@ -710,7 +709,7 @@
"download-type": { "download-type": {
"annotated": "Annotated PDF", "annotated": "Annotated PDF",
"flatten": "Flatten PDF", "flatten": "Flatten PDF",
"label": "{length} document versions", "label": "{length} document {length, plural, one{version} other{versions}}",
"original": "Optimized PDF", "original": "Optimized PDF",
"preview": "Preview PDF", "preview": "Preview PDF",
"redacted": "Redacted PDF" "redacted": "Redacted PDF"
@ -730,7 +729,7 @@
"status": "Status" "status": "Status"
}, },
"table-header": { "table-header": {
"title": "{length} downloads" "title": "{length} {length, plural, one{download} other{downloads}}"
} }
}, },
"edit-color-dialog": { "edit-color-dialog": {
@ -758,7 +757,7 @@
"change-successful": "Dossier was updated.", "change-successful": "Dossier was updated.",
"delete-successful": "Dossier was deleted.", "delete-successful": "Dossier was deleted.",
"dictionary": { "dictionary": {
"entries": "{length} entries" "entries": "{length} {length, plural, one{entry} other{entries}}"
}, },
"general-info": { "general-info": {
"form": { "form": {
@ -826,7 +825,7 @@
"save": { "save": {
"error": "Failed to create File Attributes!", "error": "Failed to create File Attributes!",
"label": "Save Attributes", "label": "Save Attributes",
"success": "{count} File Attributes created successfully!" "success": "{count} file {count, plural, one{attribute} other{attributes}} created successfully!"
}, },
"search": { "search": {
"placeholder": "Search by column name..." "placeholder": "Search by column name..."
@ -847,7 +846,7 @@
"remove-selected": "Remove Selected", "remove-selected": "Remove Selected",
"type": "Type" "type": "Type"
}, },
"title": "{length} file attributes" "title": "{length} file {length, plural, one{attribute} other{attributes}}"
}, },
"title": "Select CSV columns to use as File Attributes", "title": "Select CSV columns to use as File Attributes",
"total-rows": "{rows} rows in total" "total-rows": "{rows} rows in total"
@ -878,7 +877,7 @@
"type": "Input Type" "type": "Input Type"
}, },
"table-header": { "table-header": {
"title": "{length} file attributes" "title": "{length} file {length, plural, one{attribute} other{attributes}}"
}, },
"upload-csv": "Upload File Attributes Configuration" "upload-csv": "Upload File Attributes Configuration"
}, },
@ -1114,7 +1113,7 @@
"report-type": { "report-type": {
"excel-multi-file": "Excel (for all)", "excel-multi-file": "Excel (for all)",
"excel-single-file": "Excel (per file)", "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-a1": "Justification Appendix A1",
"word-single-file-appendix-a2": "Justification Appendix A2" "word-single-file-appendix-a2": "Justification Appendix A2"
}, },
@ -1260,7 +1259,7 @@
"time-to-restore": "Time to restore" "time-to-restore": "Time to restore"
}, },
"table-header": { "table-header": {
"title": "{length} deleted dossiers" "title": "{length} deleted {length, plural, one{dossier} other{dossiers}}"
} }
}, },
"type": "Type", "type": "Type",
@ -1298,7 +1297,7 @@
"roles": "Roles" "roles": "Roles"
}, },
"table-header": { "table-header": {
"title": "{length} users" "title": "{length} {length, plural, one{user} other{users}}"
} }
}, },
"user-management": "User Management", "user-management": "User Management",