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

index f8f7e0bbbe4be3c5b88e169c342a9794d37b0166..a1e0984af8901abc7c912355c968702102ba8753 100644 (file)
           <context context-type="sourcefile">src/app/components/common/input/date/date.component.html</context>
           <context context-type="linenumber">12</context>
         </context-group>
-        <context-group purpose="location">
-          <context context-type="sourcefile">src/app/components/common/input/select/select.component.html</context>
-          <context context-type="linenumber">29</context>
-        </context-group>
       </trans-unit>
       <trans-unit id="445302259125375799" datatype="html">
         <source>Invalid date.</source>
           <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 6ce8706d21b868cd114116871a4ab68f86242afe..feec08f445dca4c3e229a46a0a71a8bef3339887 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" i18n-title title="Filter documents with this {{title}}">
+      <button *ngIf="showFilter" class="btn btn-outline-secondary" type="button" (click)="onFilterDocuments()" [disabled]="isPrivate || this.value === null" title="{{ filterTitle }}">
         <svg class="buttonicon" fill="currentColor">
           <use xlink:href="assets/bootstrap-icons.svg#filter" />
         </svg>
index 939b3a8ddd0e3d550d3e0c427fae3d583fde788c..eb9850fecff7f5bd9b9175bfe5456ac955a27aa2 100644 (file)
@@ -144,4 +144,8 @@ export class SelectComponent extends AbstractInputComponent<number> {
   onFilterDocuments() {
     this.filterDocuments.emit([this.items.find((i) => i.id === this.value)])
   }
+
+  get filterTitle() {
+    return $localize`Filter documents with this ${this.title}`
+  }
 }