]> git.ipfire.org Git - thirdparty/paperless-ngx.git/commitdiff
Fix date component incorrect translation unit
authorshamoon <4887959+shamoon@users.noreply.github.com>
Thu, 22 Jun 2023 03:59:29 +0000 (20:59 -0700)
committershamoon <4887959+shamoon@users.noreply.github.com>
Thu, 22 Jun 2023 03:59:29 +0000 (20:59 -0700)
src-ui/messages.xlf
src-ui/src/app/components/common/input/date/date.component.html
src-ui/src/app/components/common/input/date/date.component.ts
src-ui/src/app/components/common/input/select/select.component.html
src-ui/src/app/components/common/input/select/select.component.ts

index a1e0984af8901abc7c912355c968702102ba8753..5a45112ec58b24ffeb5ea93519410a8e46ec1346 100644 (file)
         </context-group>
         <note priority="1" from="description">Filter drop down element to filter for documents with no correspondent/type/tag assigned</note>
       </trans-unit>
-      <trans-unit id="2088622872854972056" datatype="html">
-        <source>Filter documents with this <x id="INTERPOLATION" equiv-text="{{title}}"/></source>
-        <context-group purpose="location">
-          <context context-type="sourcefile">src/app/components/common/input/date/date.component.html</context>
-          <context context-type="linenumber">12</context>
-        </context-group>
-      </trans-unit>
       <trans-unit id="445302259125375799" datatype="html">
         <source>Invalid date.</source>
         <context-group purpose="location">
           <context context-type="linenumber">47</context>
         </context-group>
       </trans-unit>
+      <trans-unit id="6344437738844463465" datatype="html">
+        <source>Filter documents with this <x id="PH" equiv-text="this.title"/></source>
+        <context-group purpose="location">
+          <context context-type="sourcefile">src/app/components/common/input/date/date.component.ts</context>
+          <context context-type="linenumber">103</context>
+        </context-group>
+        <context-group purpose="location">
+          <context context-type="sourcefile">src/app/components/common/input/select/select.component.ts</context>
+          <context context-type="linenumber">149</context>
+        </context-group>
+      </trans-unit>
       <trans-unit id="594042705136125260" datatype="html">
         <source>Edit Permissions</source>
         <context-group purpose="location">
           <context context-type="linenumber">80</context>
         </context-group>
       </trans-unit>
-      <trans-unit id="6344437738844463465" datatype="html">
-        <source>Filter documents with this <x id="PH" equiv-text="this.title"/></source>
-        <context-group purpose="location">
-          <context context-type="sourcefile">src/app/components/common/input/select/select.component.ts</context>
-          <context context-type="linenumber">149</context>
-        </context-group>
-      </trans-unit>
       <trans-unit id="6560126119609945418" datatype="html">
         <source>Add tag</source>
         <context-group purpose="location">
index 66cdb50920a3d4d1c169b35cd0f5dd154a453055..947e832ae5756cabceb2eb24263f19cf0f8ea2bf 100644 (file)
@@ -9,7 +9,7 @@
         <path d="M3.5 0a.5.5 0 0 1 .5.5V1h8V.5a.5.5 0 0 1 1 0V1h1a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h1V.5a.5.5 0 0 1 .5-.5zM1 4v10a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1V4H1z"/>
       </svg>
     </button>
-    <button *ngIf="showFilter" class="btn btn-outline-secondary" type="button" (click)="onFilterDocuments()" [disabled]="this.value === null" i18n-title title="Filter documents with this {{title}}">
+    <button *ngIf="showFilter" class="btn btn-outline-secondary" type="button" (click)="onFilterDocuments()" [disabled]="this.value === null" title="{{ fitlerButtonTitle }}">
       <svg class="buttonicon" fill="currentColor">
         <use xlink:href="assets/bootstrap-icons.svg#filter" />
       </svg>
index 48557281d6f3af2d4d1e0d0afe3a671b91d5499b..c4177b04c1199cf4b360b0a0945cb160c828a1bd 100644 (file)
@@ -98,4 +98,8 @@ export class DateComponent
   onFilterDocuments() {
     this.filterDocuments.emit([this.ngbDateParserFormatter.parse(this.value)])
   }
+
+  get filterButtonTitle() {
+    return $localize`Filter documents with this ${this.title}`
+  }
 }
index feec08f445dca4c3e229a46a0a71a8bef3339887..1f6f2b3386425472e5601e4afb8ebe553ece90d9 100644 (file)
@@ -26,7 +26,7 @@
           <use xlink:href="assets/bootstrap-icons.svg#plus" />
         </svg>
       </button>
-      <button *ngIf="showFilter" class="btn btn-outline-secondary" type="button" (click)="onFilterDocuments()" [disabled]="isPrivate || this.value === null" title="{{ filterTitle }}">
+      <button *ngIf="showFilter" class="btn btn-outline-secondary" type="button" (click)="onFilterDocuments()" [disabled]="isPrivate || this.value === null" title="{{ filterButtonTitle }}">
         <svg class="buttonicon" fill="currentColor">
           <use xlink:href="assets/bootstrap-icons.svg#filter" />
         </svg>
index eb9850fecff7f5bd9b9175bfe5456ac955a27aa2..1a3341842df659ee5b37313a249d303774fe7f5d 100644 (file)
@@ -145,7 +145,7 @@ export class SelectComponent extends AbstractInputComponent<number> {
     this.filterDocuments.emit([this.items.find((i) => i.id === this.value)])
   }
 
-  get filterTitle() {
+  get filterButtonTitle() {
     return $localize`Filter documents with this ${this.title}`
   }
 }