From d6e733c56f8724b95189011fd383829d830eb2df Mon Sep 17 00:00:00 2001 From: jonaswinkler Date: Mon, 28 Dec 2020 15:39:53 +0100 Subject: [PATCH] add more localization tags #123 --- .../confirm-dialog/confirm-dialog.component.ts | 4 ++-- .../date-dropdown/date-dropdown.component.html | 8 ++++---- .../filterable-dropdown.component.html | 2 +- .../select-dialog/select-dialog.component.html | 4 ++-- .../select-dialog/select-dialog.component.ts | 4 ++-- .../metadata-collapse.component.ts | 2 +- .../bulk-editor/bulk-editor.component.html | 16 ++++++---------- .../document-list/document-list.component.html | 10 +++++----- .../filter-editor/filter-editor.component.html | 18 +++++++++--------- .../filter-editor/filter-editor.component.ts | 6 +++--- 10 files changed, 35 insertions(+), 39 deletions(-) diff --git a/src-ui/src/app/components/common/confirm-dialog/confirm-dialog.component.ts b/src-ui/src/app/components/common/confirm-dialog/confirm-dialog.component.ts index 4791d0e77..c397811a4 100644 --- a/src-ui/src/app/components/common/confirm-dialog/confirm-dialog.component.ts +++ b/src-ui/src/app/components/common/confirm-dialog/confirm-dialog.component.ts @@ -14,7 +14,7 @@ export class ConfirmDialogComponent implements OnInit { public confirmClicked = new EventEmitter() @Input() - title = "Confirmation" + title = $localize`Confirmation` @Input() messageBold @@ -26,7 +26,7 @@ export class ConfirmDialogComponent implements OnInit { btnClass = "btn-primary" @Input() - btnCaption = "Confirm" + btnCaption = $localize`Confirm` confirmButtonEnabled = true seconds = 0 diff --git a/src-ui/src/app/components/common/date-dropdown/date-dropdown.component.html b/src-ui/src/app/components/common/date-dropdown/date-dropdown.component.html index ba9f1fafb..e4f17c4e6 100644 --- a/src-ui/src/app/components/common/date-dropdown/date-dropdown.component.html +++ b/src-ui/src/app/components/common/date-dropdown/date-dropdown.component.html @@ -10,12 +10,12 @@ \ No newline at end of file diff --git a/src-ui/src/app/components/common/select-dialog/select-dialog.component.ts b/src-ui/src/app/components/common/select-dialog/select-dialog.component.ts index 76b23491c..99bf9b91a 100644 --- a/src-ui/src/app/components/common/select-dialog/select-dialog.component.ts +++ b/src-ui/src/app/components/common/select-dialog/select-dialog.component.ts @@ -15,10 +15,10 @@ export class SelectDialogComponent implements OnInit { public selectClicked = new EventEmitter() @Input() - title = "Select" + title = $localize`Select` @Input() - message = "Please select an object" + message = $localize`Please select an object` @Input() objects: ObjectWithId[] = [] diff --git a/src-ui/src/app/components/document-detail/metadata-collapse/metadata-collapse.component.ts b/src-ui/src/app/components/document-detail/metadata-collapse/metadata-collapse.component.ts index 160274e41..34bbbd655 100644 --- a/src-ui/src/app/components/document-detail/metadata-collapse/metadata-collapse.component.ts +++ b/src-ui/src/app/components/document-detail/metadata-collapse/metadata-collapse.component.ts @@ -15,7 +15,7 @@ export class MetadataCollapseComponent implements OnInit { metadata @Input() - title = "Metadata" + title = $localize`Metadata` ngOnInit(): void { } diff --git a/src-ui/src/app/components/document-list/bulk-editor/bulk-editor.component.html b/src-ui/src/app/components/document-list/bulk-editor/bulk-editor.component.html index c78f3ea3e..e08d50c47 100644 --- a/src-ui/src/app/components/document-list/bulk-editor/bulk-editor.component.html +++ b/src-ui/src/app/components/document-list/bulk-editor/bulk-editor.component.html @@ -3,32 +3,29 @@
- +
- + - - Delete +  Delete
diff --git a/src-ui/src/app/components/document-list/document-list.component.html b/src-ui/src/app/components/document-list/document-list.component.html index b5539a1e5..40a08c105 100644 --- a/src-ui/src/app/components/document-list/document-list.component.html +++ b/src-ui/src/app/components/document-list/document-list.component.html @@ -4,13 +4,13 @@
- - - + + +
diff --git a/src-ui/src/app/components/document-list/filter-editor/filter-editor.component.html b/src-ui/src/app/components/document-list/filter-editor/filter-editor.component.html index f029275eb..27a16edfd 100644 --- a/src-ui/src/app/components/document-list/filter-editor/filter-editor.component.html +++ b/src-ui/src/app/components/document-list/filter-editor/filter-editor.component.html @@ -1,18 +1,18 @@
- - + +
- - - - - + + + + +
@@ -20,8 +20,8 @@
diff --git a/src-ui/src/app/components/document-list/filter-editor/filter-editor.component.ts b/src-ui/src/app/components/document-list/filter-editor/filter-editor.component.ts index f881dc1d9..14a88c10b 100644 --- a/src-ui/src/app/components/document-list/filter-editor/filter-editor.component.ts +++ b/src-ui/src/app/components/document-list/filter-editor/filter-editor.component.ts @@ -25,13 +25,13 @@ export class FilterEditorComponent implements OnInit, OnDestroy { switch(this.filterRules[0].rule_type) { case FILTER_CORRESPONDENT: - return `Correspondent: ${this.correspondents.find(c => c.id == +rule.value)?.name}` + return $localize`Correspondent: ${this.correspondents.find(c => c.id == +rule.value)?.name}` case FILTER_DOCUMENT_TYPE: - return `Type: ${this.documentTypes.find(dt => dt.id == +rule.value)?.name}` + return $localize`Type: ${this.documentTypes.find(dt => dt.id == +rule.value)?.name}` case FILTER_HAS_TAG: - return `Tag: ${this.tags.find(t => t.id == +rule.value)?.name}` + return $localize`Tag: ${this.tags.find(t => t.id == +rule.value)?.name}` } }