From 348adb81652b45678354ff9b79ce83466dd63a25 Mon Sep 17 00:00:00 2001 From: Ivan Raznatovskyi Date: Thu, 26 Oct 2023 10:43:17 +0300 Subject: [PATCH 1/2] Added translations changes in accordance with Figma --- .../home/components/relation/relation-filters.component.html | 2 +- .../shared/components/entity/entity-subtype-list.component.ts | 2 +- ui-ngx/src/assets/locale/locale.constant-da_DK.json | 2 +- ui-ngx/src/assets/locale/locale.constant-en_US.json | 1 + 4 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ui-ngx/src/app/modules/home/components/relation/relation-filters.component.html b/ui-ngx/src/app/modules/home/components/relation/relation-filters.component.html index 77b87ced08..062bba86d6 100644 --- a/ui-ngx/src/app/modules/home/components/relation/relation-filters.component.html +++ b/ui-ngx/src/app/modules/home/components/relation/relation-filters.component.html @@ -18,7 +18,7 @@
-
{{ 'relation.type' | translate }}
+
{{ 'relation.relation-type' | translate }}
{{ 'entity.entity-types' | translate }}
diff --git a/ui-ngx/src/app/shared/components/entity/entity-subtype-list.component.ts b/ui-ngx/src/app/shared/components/entity/entity-subtype-list.component.ts index cb7cc7b63d..580a8fb891 100644 --- a/ui-ngx/src/app/shared/components/entity/entity-subtype-list.component.ts +++ b/ui-ngx/src/app/shared/components/entity/entity-subtype-list.component.ts @@ -166,7 +166,7 @@ export class EntitySubTypeListComponent implements ControlValueAccessor, OnInit, : this.translate.instant('device.any-device'); this.secondaryPlaceholder = '+' + this.translate.instant('device.device-type'); this.noSubtypesMathingText = 'device.no-device-types-matching'; - this.subtypeListEmptyText = 'device.device-type-list-empty'; + this.subtypeListEmptyText = 'device.device-profile-type-list-empty'; this.broadcastSubscription = this.broadcast.on('deviceSaved', () => { this.entitySubtypes = null; }); diff --git a/ui-ngx/src/assets/locale/locale.constant-da_DK.json b/ui-ngx/src/assets/locale/locale.constant-da_DK.json index e815ac65c6..7a04fd0e2f 100644 --- a/ui-ngx/src/assets/locale/locale.constant-da_DK.json +++ b/ui-ngx/src/assets/locale/locale.constant-da_DK.json @@ -2583,7 +2583,7 @@ "to-entity": "Til entitet", "from-entity": "Fra entitet", "delete": "Slet relation", - "relation-type": "Relationstype", + "relation-type": "Relations type", "relation-type-required": "Relationstype er påkrævet.", "any-relation-type": "Enhver type", "add": "Tilføj relation", diff --git a/ui-ngx/src/assets/locale/locale.constant-en_US.json b/ui-ngx/src/assets/locale/locale.constant-en_US.json index f5c09ce75f..39086f8f36 100644 --- a/ui-ngx/src/assets/locale/locale.constant-en_US.json +++ b/ui-ngx/src/assets/locale/locale.constant-en_US.json @@ -1384,6 +1384,7 @@ "any-device": "Any device", "no-device-types-matching": "No device profiles matching '{{entitySubtype}}' were found.", "device-type-list-empty": "No device profiles selected!", + "device-profile-type-list-empty": "At least one device profile should be selected.", "device-types": "Device types", "name": "Name", "name-required": "Name is required.", From 6be1803ff2cbfe5c65b690f28b058b079cfa2da1 Mon Sep 17 00:00:00 2001 From: Igor Kulikov Date: Tue, 31 Oct 2023 15:46:20 +0200 Subject: [PATCH 2/2] Update locale.constant-da_DK.json --- ui-ngx/src/assets/locale/locale.constant-da_DK.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui-ngx/src/assets/locale/locale.constant-da_DK.json b/ui-ngx/src/assets/locale/locale.constant-da_DK.json index 7a04fd0e2f..e815ac65c6 100644 --- a/ui-ngx/src/assets/locale/locale.constant-da_DK.json +++ b/ui-ngx/src/assets/locale/locale.constant-da_DK.json @@ -2583,7 +2583,7 @@ "to-entity": "Til entitet", "from-entity": "Fra entitet", "delete": "Slet relation", - "relation-type": "Relations type", + "relation-type": "Relationstype", "relation-type-required": "Relationstype er påkrævet.", "any-relation-type": "Enhver type", "add": "Tilføj relation",