Skip to content

Commit

Permalink
[sonyprojector] Fix typo in translation keys (openhab#11374)
Browse files Browse the repository at this point in the history
Signed-off-by: Laurent Garnier <[email protected]>
  • Loading branch information
lolodomo authored and frederictobiasc committed Oct 26, 2021
1 parent 4a830d0 commit bb23fde
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -325,10 +325,10 @@ public void initialize() {
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");
Expand All @@ -353,10 +353,10 @@ public void initialize() {
"@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");
Expand Down
Original file line number Diff line number Diff line change
@@ -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.

Expand All @@ -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.

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Original file line number Diff line number Diff line change
@@ -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.

Expand All @@ -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.

Expand Down Expand Up @@ -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.

Expand Down Expand Up @@ -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

0 comments on commit bb23fde

Please sign in to comment.