Fix invalid translation unit

This commit is contained in:
shamoon 2023-06-21 20:40:29 -07:00
parent 76d2df3bde
commit 4a4e810a14
3 changed files with 12 additions and 5 deletions

View File

@ -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">

View 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>

View 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}`
}
}