Skip to content

A community-supported supercharged document management system: scan, index and archive all your documents

Fix invalid translation unit

shamoon4a4e810a14f1
diff --git a/src-ui/messages.xlf b/src-ui/messages.xlf
index f8f7e0bbb..a1e0984af 100644
--- a/src-ui/messages.xlf
+++ b/src-ui/messages.xlf
@@ -1922,10 +1922,6 @@
<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>
@@ -2104,6 +2100,13 @@
<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">
diff --git a/src-ui/src/app/components/common/input/select/select.component.html b/src-ui/src/app/components/common/input/select/select.component.html
index 6ce8706d2..feec08f44 100644
--- a/src-ui/src/app/components/common/input/select/select.component.html
+++ b/src-ui/src/app/components/common/input/select/select.component.html
@@ -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>
diff --git a/src-ui/src/app/components/common/input/select/select.component.ts b/src-ui/src/app/components/common/input/select/select.component.ts
index 939b3a8dd..eb9850fec 100644
--- a/src-ui/src/app/components/common/input/select/select.component.ts
+++ b/src-ui/src/app/components/common/input/select/select.component.ts
@@ -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}`
+ }
}