From c178a5e0ddfc07923899089d02e452f289dc203a Mon Sep 17 00:00:00 2001 From: lolodomo Date: Sun, 28 Jun 2020 10:21:19 +0200 Subject: [PATCH] [ntp] Updated documentation (#8010) i18n entries that are no more used are removed Signed-off-by: Laurent Garnier --- bundles/org.openhab.binding.ntp/README.md | 10 +++++----- .../src/main/resources/ESH-INF/i18n/ntp.properties | 1 - .../src/main/resources/ESH-INF/i18n/ntp_de.properties | 3 --- .../src/main/resources/ESH-INF/i18n/ntp_fr.properties | 3 --- .../src/main/resources/ESH-INF/i18n/ntp_tr.properties | 3 --- 5 files changed, 5 insertions(+), 15 deletions(-) diff --git a/bundles/org.openhab.binding.ntp/README.md b/bundles/org.openhab.binding.ntp/README.md index 926dce9de8701..1e0dc9c846e28 100644 --- a/bundles/org.openhab.binding.ntp/README.md +++ b/bundles/org.openhab.binding.ntp/README.md @@ -20,11 +20,11 @@ The thing has a few configuration options: | Option | Description | |-----------------|--------------------------------------------------- | -| hostname | NTP host server, e.g. nl.pool.ntp.org | -| refreshInterval | Interval that new time updates are posted to the eventbus in seconds | -| refreshNtp | Number of updates between querying the NTP server (e.g. with refreshinterval = 60 (seconds) and refreshNtp = 30 the NTP server is queried each half hour. | -| timeZone | Timezone, can be left blank for using the default system one | -| locale | Locale, can be left blank for using the default system one | +| hostname | The NTP server hostname, e.g. nl.pool.ntp.org | +| refreshInterval | Interval that new time updates are posted to the eventbus in seconds. Default is 60s. | +| refreshNtp | Number of updates between querying the NTP server (e.g. with refreshinterval = 60 (seconds) and refreshNtp = 30 the NTP server is queried each half hour). Default is 30. | +| serverPort | The port that the NTP server could use. Default is 123. | +| timeZone | The configured timezone. Can be left blank for using the timezone defined as openHAB configuration setting (or default system timezone if not defined). | ## Channels diff --git a/bundles/org.openhab.binding.ntp/src/main/resources/ESH-INF/i18n/ntp.properties b/bundles/org.openhab.binding.ntp/src/main/resources/ESH-INF/i18n/ntp.properties index fb2b27dddca94..8cd4b30e61db1 100644 --- a/bundles/org.openhab.binding.ntp/src/main/resources/ESH-INF/i18n/ntp.properties +++ b/bundles/org.openhab.binding.ntp/src/main/resources/ESH-INF/i18n/ntp.properties @@ -1,5 +1,4 @@ # Thing status descriptions -offline.conf-error-init-handler = An error occurred while initializing the NTP handler. offline.comm-error-unknown-host = The timeserver hostname {0} is unknown -> returning current sytem time instead. offline.comm-error-connection = The network connection to the timeserver {0} cannot be established -> returning current sytem time instead. diff --git a/bundles/org.openhab.binding.ntp/src/main/resources/ESH-INF/i18n/ntp_de.properties b/bundles/org.openhab.binding.ntp/src/main/resources/ESH-INF/i18n/ntp_de.properties index 1e4fd8a67d38c..c59955c87def1 100644 --- a/bundles/org.openhab.binding.ntp/src/main/resources/ESH-INF/i18n/ntp_de.properties +++ b/bundles/org.openhab.binding.ntp/src/main/resources/ESH-INF/i18n/ntp_de.properties @@ -17,8 +17,6 @@ thing-type.config.ntp.ntp.serverPort.label = Port thing-type.config.ntp.ntp.serverPort.description = Port des Zeitservers. thing-type.config.ntp.ntp.timeZone.label = Zeitzone thing-type.config.ntp.ntp.timeZone.description = Zeitzone des Systems. -thing-type.config.ntp.ntp.locale.label = Locale -thing-type.config.ntp.ntp.locale.description = Gebietseinstellung des Systems. # channel types channel-type.ntp.dateTime-channel.label = Datum und Zeit @@ -31,7 +29,6 @@ channel-type.config.ntp.string-channel.DateTimeFormat.label = Datumsformat channel-type.config.ntp.string-channel.DateTimeFormat.description = Format für die Anzeige des Datum und der Zeit. # Thing status descriptions -offline.conf-error-init-handler = Fehler bei der Initialisierung des NTP handler. offline.comm-error-unknown-host = Zeitserver {0} ist unbekannt. Systemzeit wird zurückgegeben. offline.comm-error-connection = Verbindung zum Zeitserver {0} kann nicht aufgebaut werden. Systemzeit wird zurückgegeben. diff --git a/bundles/org.openhab.binding.ntp/src/main/resources/ESH-INF/i18n/ntp_fr.properties b/bundles/org.openhab.binding.ntp/src/main/resources/ESH-INF/i18n/ntp_fr.properties index 02b8af065466f..b6bfb2904b0d4 100644 --- a/bundles/org.openhab.binding.ntp/src/main/resources/ESH-INF/i18n/ntp_fr.properties +++ b/bundles/org.openhab.binding.ntp/src/main/resources/ESH-INF/i18n/ntp_fr.properties @@ -17,8 +17,6 @@ thing-type.config.ntp.ntp.serverPort.label = Port du serveur thing-type.config.ntp.ntp.serverPort.description = Le port que le serveur de temps peut utiliser. thing-type.config.ntp.ntp.timeZone.label = Fuseau horaire thing-type.config.ntp.ntp.timeZone.description = Le fuseau horaire sélectionné. -thing-type.config.ntp.ntp.locale.label = Paramètres régionaux -thing-type.config.ntp.ntp.locale.description = La langue et le pays sélectionnés. # channel types channel-type.ntp.dateTime-channel.label = Date heure @@ -31,7 +29,6 @@ channel-type.config.ntp.string-channel.DateTimeFormat.label = Format date et heu channel-type.config.ntp.string-channel.DateTimeFormat.description = Format utilisé pour la présentation de la date et de l'heure. # Thing status descriptions -offline.conf-error-init-handler = Une erreur est survenue durant l''initialisation. offline.comm-error-unknown-host = Le nom d''hôte {0} du serveur de temps est inconnu -> renvoi de l''heure courante système à la place. offline.comm-error-connection = La connexion réseau avec le serveur de temps {0} ne peut pas être établie -> renvoi de l''heure courante système à la place. diff --git a/bundles/org.openhab.binding.ntp/src/main/resources/ESH-INF/i18n/ntp_tr.properties b/bundles/org.openhab.binding.ntp/src/main/resources/ESH-INF/i18n/ntp_tr.properties index f8ac45e71f497..71db833005b97 100644 --- a/bundles/org.openhab.binding.ntp/src/main/resources/ESH-INF/i18n/ntp_tr.properties +++ b/bundles/org.openhab.binding.ntp/src/main/resources/ESH-INF/i18n/ntp_tr.properties @@ -17,8 +17,6 @@ thing-type.config.ntp.ntp.serverPort.label = Ba\u011flant\u0131 noktas\u0131 thing-type.config.ntp.ntp.serverPort.description = Zaman sunucunun ba\u011flant\u0131 noktas\u0131 thing-type.config.ntp.ntp.timeZone.label = Saat dilimi thing-type.config.ntp.ntp.timeZone.description = Sistemin saat dilimi -thing-type.config.ntp.ntp.locale.label = Yerel ayar -thing-type.config.ntp.ntp.locale.description = Sistemin yerel ayar\u0131 # channel types channel-type.ntp.dateTime-channel.label = Tarih ve saat @@ -31,7 +29,6 @@ channel-type.config.ntp.string-channel.DateTimeFormat.label = Tarih bi channel-type.config.ntp.string-channel.DateTimeFormat.description = Tarih ve saat görünteleme biçimi. # Thing status descriptions -offline.conf-error-init-handler = NTP ba\u011flant\u0131s\u0131n\u0131 ba\u015flat\u0131rken hata olu\u015ftu. offline.comm-error-unknown-host = Zaman sunucusu {0} tan\u0131nm\u0131yor. Sistem tarihi ve saati sunulacakt\u0131r. offline.comm-error-connection = {0} zaman sunucusuna ba\u011flan\u0131lam\u0131yor. Sistem zaman\u0131 sunulacakt\u0131r.