[sonyprojector] Fix typo in translation keys (#11374)

Signed-off-by: Laurent Garnier <lg.hc@free.fr>
This commit is contained in:
lolodomo 2021-10-12 18:59:11 +02:00 committed by GitHub
parent 00e496e6ca
commit cc92423d90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 19 additions and 11 deletions

View File

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

View File

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

View File

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