From cc92423d9090855640b5f1fba432ce7cc83d3598 Mon Sep 17 00:00:00 2001 From: lolodomo Date: Tue, 12 Oct 2021 18:59:11 +0200 Subject: [PATCH] [sonyprojector] Fix typo in translation keys (#11374) Signed-off-by: Laurent Garnier --- .../internal/handler/SonyProjectorHandler.java | 8 ++++---- .../resources/OH-INF/i18n/sonyprojector.properties | 11 +++++++---- .../resources/OH-INF/i18n/sonyprojector_fr.properties | 11 ++++++++--- 3 files changed, 19 insertions(+), 11 deletions(-) diff --git a/bundles/org.openhab.binding.sonyprojector/src/main/java/org/openhab/binding/sonyprojector/internal/handler/SonyProjectorHandler.java b/bundles/org.openhab.binding.sonyprojector/src/main/java/org/openhab/binding/sonyprojector/internal/handler/SonyProjectorHandler.java index 52fb9c5ffca..d4d5f799600 100644 --- a/bundles/org.openhab.binding.sonyprojector/src/main/java/org/openhab/binding/sonyprojector/internal/handler/SonyProjectorHandler.java +++ b/bundles/org.openhab.binding.sonyprojector/src/main/java/org/openhab/binding/sonyprojector/internal/handler/SonyProjectorHandler.java @@ -325,10 +325,10 @@ public class SonyProjectorHandler extends BaseThingHandler { logger.debug("Serial config model {}", configModel); if (config.port == null || config.port.isEmpty()) { updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.CONFIGURATION_ERROR, - "@text/ofline.config-error-unknown-port"); + "@text/offline.config-error-unknown-port"); } else if (config.port.toLowerCase().startsWith("rfc2217")) { updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.CONFIGURATION_ERROR, - "@text/ofline.config-error-invalid-thing-type"); + "@text/offline.config-error-invalid-thing-type"); } else if (configModel == null || configModel.isEmpty()) { updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.CONFIGURATION_ERROR, "@text/offline.config-error-unknown-model"); @@ -353,10 +353,10 @@ public class SonyProjectorHandler extends BaseThingHandler { "@text/offline.config-error-unknown-host"); } else if (config.port == null) { updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.CONFIGURATION_ERROR, - "@text/ofline.config-error-unknown-port"); + "@text/offline.config-error-unknown-port"); } else if (config.port <= 0) { updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.CONFIGURATION_ERROR, - "@text/ofline.config-error-invalid-port"); + "@text/offline.config-error-invalid-port"); } else if (configModel == null || configModel.isEmpty()) { updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.CONFIGURATION_ERROR, "@text/offline.config-error-unknown-model"); diff --git a/bundles/org.openhab.binding.sonyprojector/src/main/resources/OH-INF/i18n/sonyprojector.properties b/bundles/org.openhab.binding.sonyprojector/src/main/resources/OH-INF/i18n/sonyprojector.properties index adab7ef1971..1f6e51989db 100644 --- a/bundles/org.openhab.binding.sonyprojector/src/main/resources/OH-INF/i18n/sonyprojector.properties +++ b/bundles/org.openhab.binding.sonyprojector/src/main/resources/OH-INF/i18n/sonyprojector.properties @@ -1,4 +1,5 @@ # binding + binding.sonyprojector.name = SonyProjector Binding binding.sonyprojector.description = The SonyProjector binding controls a Sony projector through Ethernet (PJ Talk) or serial. @@ -14,6 +15,7 @@ thing-type.sonyprojector.serialoveripconnection.label = Sony Serial over IP Conn thing-type.sonyprojector.serialoveripconnection.description = Serial over IP connection to the Sony projector # thing type configuration + thing-type.config.sonyprojector.ethernetconnection.host.label = Address thing-type.config.sonyprojector.ethernetconnection.host.description = Host name or IP address of the projector. @@ -42,7 +44,7 @@ thing-type.config.sonyprojector.serialoveripconnection.port.description = Commun thing-type.config.sonyprojector.serialoveripconnection.model.label = Model thing-type.config.sonyprojector.serialoveripconnection.model.description = Projector model to be controlled. -# channel type +# channel types channel-type.sonyprojector.power.label = Power State channel-type.sonyprojector.power.description = Current detailed power state of the projector @@ -288,8 +290,9 @@ channel-type.sonyprojector.lampusetime.label = Lamp Use Time channel-type.sonyprojector.lampusetime.description = Indicate how long the lamp has been turned on in hours # Thing status descriptions + offline.config-error-unknown-host = Undefined host configuration setting -ofline.config-error-unknown-port = Undefined port configuration setting -ofline.config-error-invalid-port = Invalid port configuration setting +offline.config-error-unknown-port = Undefined port configuration setting +offline.config-error-invalid-port = Invalid port configuration setting offline.config-error-unknown-model = Undefined model configuration setting -ofline.config-error-invalid-thing-type = Use serial over IP connection thing type +offline.config-error-invalid-thing-type = Use serial over IP connection thing type diff --git a/bundles/org.openhab.binding.sonyprojector/src/main/resources/OH-INF/i18n/sonyprojector_fr.properties b/bundles/org.openhab.binding.sonyprojector/src/main/resources/OH-INF/i18n/sonyprojector_fr.properties index 5da31c86369..c41a02a8393 100644 --- a/bundles/org.openhab.binding.sonyprojector/src/main/resources/OH-INF/i18n/sonyprojector_fr.properties +++ b/bundles/org.openhab.binding.sonyprojector/src/main/resources/OH-INF/i18n/sonyprojector_fr.properties @@ -1,8 +1,10 @@ # binding + binding.sonyprojector.name = Extension Projecteur Sony binding.sonyprojector.description = L'extension Projecteur Sony permet de contrôler un projecteur Sony par connexion Ethernet (PJ Talk) ou série. # thing types + thing-type.sonyprojector.ethernetconnection.label = Connexion Ethernet Sony thing-type.sonyprojector.ethernetconnection.description = Connexion Ethernet au projecteur Sony en utilisant PJ Talk. @@ -13,6 +15,7 @@ thing-type.sonyprojector.serialoveripconnection.label = Connexion série sur IP thing-type.sonyprojector.serialoveripconnection.description = Connexion série sur IP au projecteur Sony. # thing type configuration + thing-type.config.sonyprojector.ethernetconnection.host.label = Hôte thing-type.config.sonyprojector.ethernetconnection.host.description = Nom d'hôte ou adresse IP du projecteur. @@ -42,6 +45,7 @@ thing-type.config.sonyprojector.serialoveripconnection.model.label = Modèle thing-type.config.sonyprojector.serialoveripconnection.model.description = Modèle du projecteur à contrôler. # channel types + channel-type.sonyprojector.power.label = Mise sous tension channel-type.sonyprojector.power.description = Allume ou éteint le projecteur. @@ -286,8 +290,9 @@ channel-type.sonyprojector.lampusetime.label = Durée de lampe channel-type.sonyprojector.lampusetime.description = Indique la durée en heures pendant laquelle la lampe a été allumée (temps total d'utilisation). # Thing status descriptions + offline.config-error-unknown-host = Paramètre d''hôte indéfini -ofline.config-error-unknown-port = Paramètre de port indéfini -ofline.config-error-invalid-port = Paramètre de port invalide +offline.config-error-unknown-port = Paramètre de port indéfini +offline.config-error-invalid-port = Paramètre de port invalide offline.config-error-unknown-model = Paramètre de modèle indéfini -ofline.config-error-invalid-thing-type = Utiliser le type connexion série sur IP +offline.config-error-invalid-thing-type = Utiliser le type connexion série sur IP