[netatmo] Add translations for config parameters (#12768)
* [netatmo] Add translations for config parameters Signed-off-by: Laurent Garnier <lg.hc@free.fr>
This commit is contained in:
parent
b30a82c1a3
commit
b475f0abd1
|
@ -7,46 +7,46 @@
|
||||||
|
|
||||||
<config-description uri="netatmo:api_bridge">
|
<config-description uri="netatmo:api_bridge">
|
||||||
<parameter name="clientId" type="text" required="true">
|
<parameter name="clientId" type="text" required="true">
|
||||||
<label>Client ID</label>
|
<label>@text/config.clientId.label</label>
|
||||||
<description>Client ID provided for the application you created on http://dev.netatmo.com/createapp</description>
|
<description>@text/config.clientId.description</description>
|
||||||
</parameter>
|
</parameter>
|
||||||
|
|
||||||
<parameter name="clientSecret" type="text" required="true">
|
<parameter name="clientSecret" type="text" required="true">
|
||||||
<label>Client Secret</label>
|
<label>@text/config.clientSecret.label</label>
|
||||||
<description>Client Secret provided for the application you created.</description>
|
<description>@text/config.clientSecret.description</description>
|
||||||
<context>password</context>
|
<context>password</context>
|
||||||
</parameter>
|
</parameter>
|
||||||
|
|
||||||
<parameter name="refreshToken" type="text">
|
<parameter name="refreshToken" type="text">
|
||||||
<label>Refresh Token</label>
|
<label>@text/config.refreshToken.label</label>
|
||||||
<description>Refresh token provided by the oAuth2 authentication process.</description>
|
<description>@text/config.refreshToken.description</description>
|
||||||
<context>password</context>
|
<context>password</context>
|
||||||
<advanced>true</advanced>
|
<advanced>true</advanced>
|
||||||
</parameter>
|
</parameter>
|
||||||
|
|
||||||
<parameter name="webHookUrl" type="text" required="false">
|
<parameter name="webHookUrl" type="text" required="false">
|
||||||
<label>Webhook Address</label>
|
<label>@text/config.webHookUrl.label</label>
|
||||||
<description>Protocol, public IP or hostname and port to access openHAB server from Internet.</description>
|
<description>@text/config.webHookUrl.description</description>
|
||||||
</parameter>
|
</parameter>
|
||||||
|
|
||||||
<parameter name="reconnectInterval" type="integer" unit="s">
|
<parameter name="reconnectInterval" type="integer" unit="s">
|
||||||
<label>Reconnect Interval</label>
|
<label>@text/config.reconnectInterval.label</label>
|
||||||
<description>The reconnection interval to Netatmo API (in s).</description>
|
<description>@text/config.reconnectInterval.description</description>
|
||||||
<default>300</default>
|
<default>300</default>
|
||||||
</parameter>
|
</parameter>
|
||||||
</config-description>
|
</config-description>
|
||||||
|
|
||||||
<config-description uri="netatmo:sum_rain:config">
|
<config-description uri="netatmo:sum_rain:config">
|
||||||
<parameter name="period" type="text">
|
<parameter name="period" type="text">
|
||||||
<label>Period</label>
|
<label>@text/config.period.label</label>
|
||||||
<description>Observation period for summing rain quantities.</description>
|
<description>@text/config.period.sum_rain.description</description>
|
||||||
<options>
|
<options>
|
||||||
<option value="30min">30 minutes</option>
|
<option value="30min">@text/config.period.option.30min</option>
|
||||||
<option value="1hour">1 hour</option>
|
<option value="1hour">@text/config.period.option.1hour</option>
|
||||||
<option value="3hours">3 hours</option>
|
<option value="3hours">@text/config.period.option.3hours</option>
|
||||||
<option value="1day">This day</option>
|
<option value="1day">@text/config.period.option.1day</option>
|
||||||
<option value="1week">This week</option>
|
<option value="1week">@text/config.period.option.1week</option>
|
||||||
<option value="1month">This month</option>
|
<option value="1month">@text/config.period.option.1month</option>
|
||||||
</options>
|
</options>
|
||||||
<default>1week</default>
|
<default>1week</default>
|
||||||
</parameter>
|
</parameter>
|
||||||
|
@ -54,24 +54,24 @@
|
||||||
|
|
||||||
<config-description uri="netatmo:measure:config">
|
<config-description uri="netatmo:measure:config">
|
||||||
<parameter name="limit" type="text">
|
<parameter name="limit" type="text">
|
||||||
<label>Boundary</label>
|
<label>@text/config.limit.label</label>
|
||||||
<description>Defines the requested boundary.</description>
|
<description>@text/config.limit.description</description>
|
||||||
<options>
|
<options>
|
||||||
<option value="MIN">Minimum</option>
|
<option value="MIN">@text/config.limit.option.MIN</option>
|
||||||
<option value="MAX">Maximum</option>
|
<option value="MAX">@text/config.limit.option.MAX</option>
|
||||||
</options>
|
</options>
|
||||||
<default>MIN</default>
|
<default>MIN</default>
|
||||||
</parameter>
|
</parameter>
|
||||||
<parameter name="period" type="text">
|
<parameter name="period" type="text">
|
||||||
<label>Period</label>
|
<label>@text/config.period.label</label>
|
||||||
<description>Observation period for searched boundary.</description>
|
<description>@text/config.period.measure.description</description>
|
||||||
<options>
|
<options>
|
||||||
<option value="30min">30 minutes</option>
|
<option value="30min">@text/config.period.option.30min</option>
|
||||||
<option value="1hour">1 hour</option>
|
<option value="1hour">@text/config.period.option.1hour</option>
|
||||||
<option value="3hours">3 hours</option>
|
<option value="3hours">@text/config.period.option.3hours</option>
|
||||||
<option value="1day">This day</option>
|
<option value="1day">@text/config.period.option.1day</option>
|
||||||
<option value="1week">This week</option>
|
<option value="1week">@text/config.period.option.1week</option>
|
||||||
<option value="1month">This month</option>
|
<option value="1month">@text/config.period.option.1month</option>
|
||||||
</options>
|
</options>
|
||||||
<default>1week</default>
|
<default>1week</default>
|
||||||
</parameter>
|
</parameter>
|
||||||
|
@ -79,20 +79,20 @@
|
||||||
|
|
||||||
<config-description uri="netatmo:timestamp:config">
|
<config-description uri="netatmo:timestamp:config">
|
||||||
<parameter name="limit" type="text">
|
<parameter name="limit" type="text">
|
||||||
<label>Boundary</label>
|
<label>@text/config.limit.label</label>
|
||||||
<description>Defines the requested boundary.</description>
|
<description>@text/config.limit.description</description>
|
||||||
<options>
|
<options>
|
||||||
<option value="DATE_MIN">Timestamp of minimum</option>
|
<option value="DATE_MIN">@text/config.limit.option.DATE_MIN</option>
|
||||||
<option value="DATE_MAX">Timestamp of maximum</option>
|
<option value="DATE_MAX">@text/config.limit.option.DATE_MAX</option>
|
||||||
</options>
|
</options>
|
||||||
<default>DATE_MIN</default>
|
<default>DATE_MIN</default>
|
||||||
</parameter>
|
</parameter>
|
||||||
<parameter name="period" type="text">
|
<parameter name="period" type="text">
|
||||||
<label>Period</label>
|
<label>@text/config.period.label</label>
|
||||||
<description>Observation period for the queried value.</description>
|
<description>@text/config.period.timestamp.description</description>
|
||||||
<options>
|
<options>
|
||||||
<option value="1week">This week</option>
|
<option value="1week">@text/config.period.option.1week</option>
|
||||||
<option value="1month">This month</option>
|
<option value="1month">@text/config.period.option.1month</option>
|
||||||
</options>
|
</options>
|
||||||
<default>1week</default>
|
<default>1week</default>
|
||||||
</parameter>
|
</parameter>
|
||||||
|
@ -100,40 +100,40 @@
|
||||||
|
|
||||||
<config-description uri="netatmo:device">
|
<config-description uri="netatmo:device">
|
||||||
<parameter name="id" type="text" pattern="([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})" required="true">
|
<parameter name="id" type="text" pattern="([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})" required="true">
|
||||||
<label>Equipment ID</label>
|
<label>@text/config.equipmentId.label</label>
|
||||||
<description>ID of the device (MAC address).</description>
|
<description>@text/config.equipmentId.description</description>
|
||||||
</parameter>
|
</parameter>
|
||||||
</config-description>
|
</config-description>
|
||||||
|
|
||||||
<config-description uri="netatmo:virtual">
|
<config-description uri="netatmo:virtual">
|
||||||
<parameter name="id" type="text" required="true">
|
<parameter name="id" type="text" required="true">
|
||||||
<label>Thing ID</label>
|
<label>@text/config.thingId.label</label>
|
||||||
<description>Unique identifier of the thing defined by Netatmo.</description>
|
<description>@text/config.thingId.description</description>
|
||||||
</parameter>
|
</parameter>
|
||||||
</config-description>
|
</config-description>
|
||||||
|
|
||||||
<config-description uri="netatmo:home">
|
<config-description uri="netatmo:home">
|
||||||
<parameter name="id" type="text" required="true">
|
<parameter name="id" type="text" required="true">
|
||||||
<label>Thing ID</label>
|
<label>@text/config.thingId.label</label>
|
||||||
<description>Unique identifier of the thing defined by Netatmo.</description>
|
<description>@text/config.thingId.description</description>
|
||||||
</parameter>
|
</parameter>
|
||||||
|
|
||||||
<parameter name="refreshInterval" type="integer" min="20" unit="s">
|
<parameter name="refreshInterval" type="integer" min="20" unit="s">
|
||||||
<label>Refresh Interval</label>
|
<label>@text/config.refreshInterval.label</label>
|
||||||
<description>The refresh interval to poll Netatmo API (in seconds).</description>
|
<description>@text/config.refreshInterval.description</description>
|
||||||
<default>180</default>
|
<default>180</default>
|
||||||
</parameter>
|
</parameter>
|
||||||
</config-description>
|
</config-description>
|
||||||
|
|
||||||
<config-description uri="netatmo:configurable">
|
<config-description uri="netatmo:configurable">
|
||||||
<parameter name="id" type="text" pattern="([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})" required="true">
|
<parameter name="id" type="text" pattern="([0-9A-Fa-f]{2}[:-]){5}([0-9A-Fa-f]{2})" required="true">
|
||||||
<label>Equipment ID</label>
|
<label>@text/config.equipmentId.label</label>
|
||||||
<description>ID of the device (MAC address).</description>
|
<description>@text/config.equipmentId.description</description>
|
||||||
</parameter>
|
</parameter>
|
||||||
|
|
||||||
<parameter name="refreshInterval" type="integer" min="20" unit="s">
|
<parameter name="refreshInterval" type="integer" min="20" unit="s">
|
||||||
<label>Refresh Interval</label>
|
<label>@text/config.refreshInterval.label</label>
|
||||||
<description>The refresh interval to poll Netatmo API (in seconds).</description>
|
<description>@text/config.refreshInterval.description</description>
|
||||||
<default>180</default>
|
<default>180</default>
|
||||||
</parameter>
|
</parameter>
|
||||||
</config-description>
|
</config-description>
|
||||||
|
|
|
@ -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.poor = Poor Quality
|
||||||
channel-type.config.netatmo.live-stream-url.quality.option.high = High 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 types
|
||||||
|
|
||||||
thing-type.netatmo.account.label = Netatmo Account
|
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.label = Wind Gauge Module
|
||||||
thing-type.netatmo.wind.description = Wind sensor reporting wind angle and strength.
|
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
|
# error messages
|
||||||
|
|
||||||
conf-error-no-client-id = Cannot connect to Netatmo bridge as no client id is available in the configuration
|
conf-error-no-client-id = Cannot connect to Netatmo bridge as no client id is available in the configuration
|
||||||
|
|
Loading…
Reference in New Issue