From f33a11ba8111348af6886468e70de91584a03103 Mon Sep 17 00:00:00 2001 From: lolodomo Date: Mon, 1 Nov 2021 09:57:38 +0100 Subject: [PATCH] [openuv] Internationalization of discovery result (#11485) Fix #11480 Signed-off-by: Laurent Garnier --- .../openuv/internal/discovery/OpenUVDiscoveryService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bundles/org.openhab.binding.openuv/src/main/java/org/openhab/binding/openuv/internal/discovery/OpenUVDiscoveryService.java b/bundles/org.openhab.binding.openuv/src/main/java/org/openhab/binding/openuv/internal/discovery/OpenUVDiscoveryService.java index fc677f1dd45..b192db43272 100644 --- a/bundles/org.openhab.binding.openuv/src/main/java/org/openhab/binding/openuv/internal/discovery/OpenUVDiscoveryService.java +++ b/bundles/org.openhab.binding.openuv/src/main/java/org/openhab/binding/openuv/internal/discovery/OpenUVDiscoveryService.java @@ -73,7 +73,8 @@ public class OpenUVDiscoveryService extends AbstractDiscoveryService implements if (location != null) { ThingUID bridgeUID = bridge.getThing().getUID(); thingDiscovered(DiscoveryResultBuilder - .create(new ThingUID(LOCATION_REPORT_THING_TYPE, bridgeUID, LOCAL)).withLabel("Local UV Report") + .create(new ThingUID(LOCATION_REPORT_THING_TYPE, bridgeUID, LOCAL)) + .withLabel("@text/discovery.openuv.uvreport.local.label") .withProperty(ReportConfiguration.LOCATION, location.toString()) .withRepresentationProperty(ReportConfiguration.LOCATION).withBridge(bridgeUID).build()); } else {