]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Translate file tasks types in footer 3749/head
authorshamoon <4887959+shamoon@users.noreply.github.com>
Wed, 5 Jul 2023 15:13:16 +0000 (08:13 -0700)
committershamoon <4887959+shamoon@users.noreply.github.com>
Wed, 5 Jul 2023 16:39:44 +0000 (09:39 -0700)
src-ui/messages.xlf
src-ui/src/app/components/manage/tasks/tasks.component.html
src-ui/src/app/components/manage/tasks/tasks.component.ts

index 2d66e5c6d82f6bd86e5037b2ea6605601a30aaca..20044964305f25c9709dc9f8da525366140d9fe5 100644 (file)
           <context context-type="linenumber">63</context>
         </context-group>
       </trans-unit>
+      <trans-unit id="9011556615675272238" datatype="html">
+        <source>queued</source>
+        <context-group purpose="location">
+          <context context-type="sourcefile">src/app/components/manage/tasks/tasks.component.ts</context>
+          <context context-type="linenumber">131</context>
+        </context-group>
+      </trans-unit>
+      <trans-unit id="6415892379431855826" datatype="html">
+        <source>started</source>
+        <context-group purpose="location">
+          <context context-type="sourcefile">src/app/components/manage/tasks/tasks.component.ts</context>
+          <context context-type="linenumber">133</context>
+        </context-group>
+      </trans-unit>
+      <trans-unit id="7510279840486540181" datatype="html">
+        <source>completed</source>
+        <context-group purpose="location">
+          <context context-type="sourcefile">src/app/components/manage/tasks/tasks.component.ts</context>
+          <context context-type="linenumber">135</context>
+        </context-group>
+      </trans-unit>
+      <trans-unit id="4083337005045748464" datatype="html">
+        <source>failed</source>
+        <context-group purpose="location">
+          <context context-type="sourcefile">src/app/components/manage/tasks/tasks.component.ts</context>
+          <context context-type="linenumber">137</context>
+        </context-group>
+      </trans-unit>
       <trans-unit id="181464970911903082" datatype="html">
         <source>404 Not Found</source>
         <context-group purpose="location">
index f1d728e721776e6e0293fe6778da555806210fed..f6a8b75c857f48b4262d96e36a2710fbf35e5a7c 100644 (file)
   </table>
 
   <div class="pb-3 d-sm-flex justify-content-between align-items-center">
-    <div class="pb-2 pb-sm-0" i18n *ngIf="tasks.length > 0">{tasks.length, plural, =1 {One {{this.activeTab}} task} other {{{tasks.length || 0}} total {{this.activeTab}} tasks}}</div>
+    <div class="pb-2 pb-sm-0" i18n *ngIf="tasks.length > 0">{tasks.length, plural, =1 {One {{this.activeTabLocalized}} task} other {{{tasks.length || 0}} total {{this.activeTabLocalized}} tasks}}</div>
     <ngb-pagination *ngIf="tasks.length > pageSize" [(page)]="page" [pageSize]="pageSize" [collectionSize]="tasks.length" maxSize="8" size="sm"></ngb-pagination>
   </div>
 </ng-template>
index 9e993de621b4dabadae9855bf32f83aec05349ad..b4dcbcc21f42c9bc444380b7965e89871274506c 100644 (file)
@@ -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`
+    }
+  }
 }