From: shamoon <4887959+shamoon@users.noreply.github.com> Date: Wed, 5 Jul 2023 15:13:16 +0000 (-0700) Subject: Translate file tasks types in footer X-Git-Tag: v1.17.0~1^2~53^2 X-Git-Url: http://git.ipfire.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F3749%2Fhead;p=thirdparty%2Fpaperless-ngx.git Translate file tasks types in footer --- diff --git a/src-ui/messages.xlf b/src-ui/messages.xlf index 2d66e5c6d8..2004496430 100644 --- a/src-ui/messages.xlf +++ b/src-ui/messages.xlf @@ -4853,6 +4853,34 @@ 63 + + queued + + src/app/components/manage/tasks/tasks.component.ts + 131 + + + + started + + src/app/components/manage/tasks/tasks.component.ts + 133 + + + + completed + + src/app/components/manage/tasks/tasks.component.ts + 135 + + + + failed + + src/app/components/manage/tasks/tasks.component.ts + 137 + + 404 Not Found diff --git a/src-ui/src/app/components/manage/tasks/tasks.component.html b/src-ui/src/app/components/manage/tasks/tasks.component.html index f1d728e721..f6a8b75c85 100644 --- a/src-ui/src/app/components/manage/tasks/tasks.component.html +++ b/src-ui/src/app/components/manage/tasks/tasks.component.html @@ -100,7 +100,7 @@
-
{tasks.length, plural, =1 {One {{this.activeTab}} task} other {{{tasks.length || 0}} total {{this.activeTab}} tasks}}
+
{tasks.length, plural, =1 {One {{this.activeTabLocalized}} task} other {{{tasks.length || 0}} total {{this.activeTabLocalized}} tasks}}
diff --git a/src-ui/src/app/components/manage/tasks/tasks.component.ts b/src-ui/src/app/components/manage/tasks/tasks.component.ts index 9e993de621..b4dcbcc21f 100644 --- a/src-ui/src/app/components/manage/tasks/tasks.component.ts +++ b/src-ui/src/app/components/manage/tasks/tasks.component.ts @@ -124,4 +124,17 @@ export class TasksComponent duringTabChange(navID: number) { this.page = 1 } + + get activeTabLocalized(): string { + switch (this.activeTab) { + case 'queued': + return $localize`queued` + case 'started': + return $localize`started` + case 'completed': + return $localize`completed` + case 'failed': + return $localize`failed` + } + } }