From 52480e0bc41720d17ad930585ba76cf201a946bd Mon Sep 17 00:00:00 2001 From: Michael Shamoon <4887959+shamoon@users.noreply.github.com> Date: Thu, 12 May 2022 20:34:32 -0700 Subject: [PATCH] Use explicit plural strings on management pages --- .../manage/correspondent-list/correspondent-list.component.ts | 1 + .../manage/document-type-list/document-type-list.component.ts | 1 + .../manage/management-list/management-list.component.html | 4 ++-- .../manage/management-list/management-list.component.ts | 1 + .../src/app/components/manage/tag-list/tag-list.component.ts | 1 + 5 files changed, 6 insertions(+), 2 deletions(-) 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 + @@ -71,6 +71,6 @@
-
{collectionSize, plural, =1 {One {{typeName}}} other {{{collectionSize || 0}} total {{typeName}}s}}
+
{collectionSize, plural, =1 {One {{typeName}}} other {{{collectionSize || 0}} total {{typeNamePlural}}}}
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 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 { queryParamsService, FILTER_HAS_TAGS_ALL, $localize`tag`, + $localize`tags`, [ { key: 'color',