From b475f0abd11a7438294d6faf76ed95640c62184d Mon Sep 17 00:00:00 2001 From: lolodomo Date: Sat, 21 May 2022 10:20:34 +0200 Subject: [PATCH] [netatmo] Add translations for config parameters (#12768) * [netatmo] Add translations for config parameters Signed-off-by: Laurent Garnier --- .../main/resources/OH-INF/config/config.xml | 100 +++++++++--------- .../resources/OH-INF/i18n/netatmo.properties | 38 +++++++ 2 files changed, 88 insertions(+), 50 deletions(-) diff --git a/bundles/org.openhab.binding.netatmo/src/main/resources/OH-INF/config/config.xml b/bundles/org.openhab.binding.netatmo/src/main/resources/OH-INF/config/config.xml index 6be633ac23..944d73fd01 100644 --- a/bundles/org.openhab.binding.netatmo/src/main/resources/OH-INF/config/config.xml +++ b/bundles/org.openhab.binding.netatmo/src/main/resources/OH-INF/config/config.xml @@ -7,46 +7,46 @@ - - Client ID provided for the application you created on http://dev.netatmo.com/createapp + + @text/config.clientId.description - - Client Secret provided for the application you created. + + @text/config.clientSecret.description password - - Refresh token provided by the oAuth2 authentication process. + + @text/config.refreshToken.description password true - - Protocol, public IP or hostname and port to access openHAB server from Internet. + + @text/config.webHookUrl.description - - The reconnection interval to Netatmo API (in s). + + @text/config.reconnectInterval.description 300 - - Observation period for summing rain quantities. + + @text/config.period.sum_rain.description - - - - - - + + + + + + 1week @@ -54,24 +54,24 @@ - - Defines the requested boundary. + + @text/config.limit.description - - + + MIN - - Observation period for searched boundary. + + @text/config.period.measure.description - - - - - - + + + + + + 1week @@ -79,20 +79,20 @@ - - Defines the requested boundary. + + @text/config.limit.description - - + + DATE_MIN - - Observation period for the queried value. + + @text/config.period.timestamp.description - - + + 1week @@ -100,40 +100,40 @@ - - ID of the device (MAC address). + + @text/config.equipmentId.description - - Unique identifier of the thing defined by Netatmo. + + @text/config.thingId.description - - Unique identifier of the thing defined by Netatmo. + + @text/config.thingId.description - - The refresh interval to poll Netatmo API (in seconds). + + @text/config.refreshInterval.description 180 - - ID of the device (MAC address). + + @text/config.equipmentId.description - - The refresh interval to poll Netatmo API (in seconds). + + @text/config.refreshInterval.description 180 diff --git a/bundles/org.openhab.binding.netatmo/src/main/resources/OH-INF/i18n/netatmo.properties b/bundles/org.openhab.binding.netatmo/src/main/resources/OH-INF/i18n/netatmo.properties index 2d61654414..cd840b3f80 100644 --- a/bundles/org.openhab.binding.netatmo/src/main/resources/OH-INF/i18n/netatmo.properties +++ b/bundles/org.openhab.binding.netatmo/src/main/resources/OH-INF/i18n/netatmo.properties @@ -289,6 +289,25 @@ channel-type.config.netatmo.live-stream-url.quality.option.low = Low Quality channel-type.config.netatmo.live-stream-url.quality.option.poor = Poor Quality channel-type.config.netatmo.live-stream-url.quality.option.high = High Quality +# channel types config + +config.limit.label = Boundary +config.limit.description = Defines the requested boundary. +config.limit.option.MIN = Minimum +config.limit.option.MAX = Maximum +config.limit.option.DATE_MIN = Timestamp of minimum +config.limit.option.DATE_MAX = Timestamp of maximum +config.period.label = Period +config.period.measure.description = Observation period for searched boundary. +config.period.sum_rain.description = Observation period for summing rain quantities. +config.period.timestamp.description = Observation period for the queried value. +config.period.option.30min = 30 minutes +config.period.option.1hour = 1 hour +config.period.option.3hours = 3 hours +config.period.option.1day = This day +config.period.option.1week = This week +config.period.option.1month = This month + # thing types thing-type.netatmo.account.label = Netatmo Account @@ -326,6 +345,25 @@ thing-type.netatmo.welcome.description = The Netatmo Smart Indoor Camera (Welcom thing-type.netatmo.wind.label = Wind Gauge Module thing-type.netatmo.wind.description = Wind sensor reporting wind angle and strength. +# thing configuration + +config.clientId.label = Client ID +config.clientId.description = Client ID provided for the application you created on http://dev.netatmo.com/createapp +config.clientSecret.label = Client Secret +config.clientSecret.description = Client Secret provided for the application you created. +config.refreshToken.label = Refresh Token +config.refreshToken.description = Refresh token provided by the oAuth2 authentication process. +config.webHookUrl.label = Webhook Address +config.webHookUrl.description = Protocol, public IP or hostname and port to access openHAB server from Internet. +config.reconnectInterval.label = Reconnect Interval +config.reconnectInterval.description = The reconnection interval to Netatmo API (in s). +config.equipmentId.label = Equipment ID +config.equipmentId.description = ID of the device (MAC address). +config.thingId.label = Thing ID +config.thingId.description = Unique identifier of the thing defined by Netatmo. +config.refreshInterval.label = Refresh Interval +config.refreshInterval.description = The refresh interval to poll Netatmo API (in seconds). + # error messages conf-error-no-client-id = Cannot connect to Netatmo bridge as no client id is available in the configuration -- 2.47.3