Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Use explicit plural strings on management pages

Michael Shamoon52480e0bc417
diff --git a/src-ui/src/app/components/manage/correspondent-list/correspondent-list.component.ts b/src-ui/src/app/components/manage/correspondent-list/correspondent-list.component.ts
index 6a963fbab..9eb05758c 100644
--- a/src-ui/src/app/components/manage/correspondent-list/correspondent-list.component.ts
+++ b/src-ui/src/app/components/manage/correspondent-list/correspondent-list.component.ts
@@ -31,6 +31,7 @@ export class CorrespondentListComponent extends ManagementListComponent<Paperles
queryParamsService,
FILTER_CORRESPONDENT,
$localize`correspondent`,
+ $localize`correspondents`,
[
{
key: 'last_correspondence',
diff --git a/src-ui/src/app/components/manage/document-type-list/document-type-list.component.ts b/src-ui/src/app/components/manage/document-type-list/document-type-list.component.ts
index d9f4b274b..8f903e65b 100644
--- a/src-ui/src/app/components/manage/document-type-list/document-type-list.component.ts
+++ b/src-ui/src/app/components/manage/document-type-list/document-type-list.component.ts
@@ -28,6 +28,7 @@ export class DocumentTypeListComponent extends ManagementListComponent<Paperless
queryParamsService,
FILTER_DOCUMENT_TYPE,
$localize`document type`,
+ $localize`document types`,
[]
)
}
diff --git a/src-ui/src/app/components/manage/management-list/management-list.component.html b/src-ui/src/app/components/manage/management-list/management-list.component.html
index 761e340eb..f153ac4c6 100644
--- a/src-ui/src/app/components/manage/management-list/management-list.component.html
+++ b/src-ui/src/app/components/manage/management-list/management-list.component.html
@@ -1,4 +1,4 @@
-<app-page-header title="{{ typeName | titlecase }}s">
+<app-page-header title="{{ typeNamePlural | titlecase }}">
<button type="button" class="btn btn-sm btn-outline-primary" (click)="openCreateDialog()" i18n>Create</button>
</app-page-header>
@@ -71,6 +71,6 @@
</table>
<div class="d-flex">
- <div i18n *ngIf="collectionSize > 0">{collectionSize, plural, =1 {One {{typeName}}} other {{{collectionSize || 0}} total {{typeName}}s}}</div>
+ <div i18n *ngIf="collectionSize > 0">{collectionSize, plural, =1 {One {{typeName}}} other {{{collectionSize || 0}} total {{typeNamePlural}}}}</div>
<ngb-pagination *ngIf="collectionSize > 20" class="ms-auto" [pageSize]="25" [collectionSize]="collectionSize" [(page)]="page" (pageChange)="reloadData()" aria-label="Default pagination"></ngb-pagination>
</div>
diff --git a/src-ui/src/app/components/manage/management-list/management-list.component.ts b/src-ui/src/app/components/manage/management-list/management-list.component.ts
index 0768d7c04..89218f80b 100644
--- a/src-ui/src/app/components/manage/management-list/management-list.component.ts
+++ b/src-ui/src/app/components/manage/management-list/management-list.component.ts
@@ -45,6 +45,7 @@ export abstract class ManagementListComponent<T extends ObjectWithId>
private queryParamsService: QueryParamsService,
protected filterRuleType: number,
public typeName: string,
+ public typeNamePlural: string,
public extraColumns: ManagementListColumn[]
) {}
diff --git a/src-ui/src/app/components/manage/tag-list/tag-list.component.ts b/src-ui/src/app/components/manage/tag-list/tag-list.component.ts
index c1dd98e52..cbb47d48e 100644
--- a/src-ui/src/app/components/manage/tag-list/tag-list.component.ts
+++ b/src-ui/src/app/components/manage/tag-list/tag-list.component.ts
@@ -28,6 +28,7 @@ export class TagListComponent extends ManagementListComponent<PaperlessTag> {
queryParamsService,
FILTER_HAS_TAGS_ALL,
$localize`tag`,
+ $localize`tags`,
[
{
key: 'color',