[i18n] Translation of configurable services (#2306)

Signed-off-by: Christoph Weitkamp <github@christophweitkamp.de>
pull/2330/head
Christoph Weitkamp 2021-04-29 15:20:55 +02:00 committed by GitHub
parent b778732e74
commit 93d7973b56
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
22 changed files with 129 additions and 91 deletions

View File

@ -6,11 +6,11 @@
https://openhab.org/schemas/config-description-1.0.0.xsd">
<config-description uri="system:audio">
<parameter name="defaultSource" type="text" required="false">
<parameter name="defaultSource" type="text">
<label>Default Source</label>
<description>The default audio source to use if no other is specified.</description>
</parameter>
<parameter name="defaultSink" type="text" required="false">
<parameter name="defaultSink" type="text">
<label>Default Sink</label>
<description>The default audio sink to use if no other is specified.</description>
</parameter>

View File

@ -0,0 +1,4 @@
system.config.audio.defaultSource.label = Default Source
system.config.audio.defaultSource.description = The default audio source to use if no other is specified.
system.config.audio.defaultSink.label = Default Sink
system.config.audio.defaultSink.description = The default audio sink to use if no other is specified.

View File

@ -8,16 +8,12 @@
<config-description uri="system:inbox">
<parameter name="autoIgnore" type="boolean">
<label>Auto Ignore</label>
<description><![CDATA[
<p>If enabled, an inbox result matching an existing thing is automatically ignored.</p>
<p>If set to false, the inbox may contain results although identical things already exist.</p>
]]>
</description>
<description><![CDATA[If enabled, an Inbox result matching an existing thing is automatically ignored.<br>If set to false, the Inbox may contain results although identical things already exist.]]></description>
<default>true</default>
</parameter>
<parameter name="autoApprove" type="boolean">
<label>Auto Approve</label>
<description>If enabled, inbox results are automatically approved, unless they were marked as ignored.</description>
<description>If enabled, Inbox results are automatically approved, unless they were marked as ignored.</description>
<default>false</default>
</parameter>
</config-description>

View File

@ -0,0 +1,4 @@
system.config.inbox.autoIgnore.label = Auto Ignore
system.config.inbox.autoIgnore.description = If enabled, an Inbox result matching an existing thing is automatically ignored.<br>If set to false, the Inbox may contain results although identical things already exist.
system.config.inbox.autoApprove.label = Auto Approve
system.config.inbox.autoApprove.description = If enabled, Inbox results are automatically approved, unless they were marked as ignored.

View File

@ -21,6 +21,8 @@
<parameter name="city" type="text">
<label>City</label>
<description>Get the holidays for a specific city (e.g. New York City = "nyc").</description>
<advanced>true</advanced>
</parameter>
</config-description>
</config-description:config-descriptions>

View File

@ -0,0 +1,8 @@
system.config.ephemeris.dayset-weekend.label = Weekend Days
system.config.ephemeris.dayset-weekend.description = List of usual non workable days.
system.config.ephemeris.country.label = Country
system.config.ephemeris.country.description = Get the holidays for a specific country (e.g. United States of America = "us").
system.config.ephemeris.region.label = Region
system.config.ephemeris.region.description = Get the holidays for a specific state (e.g. New York = "ny").
system.config.ephemeris.city.label = City
system.config.ephemeris.city.description = Get the holidays for a specific city (e.g. New York City = "nyc").

View File

@ -5,32 +5,27 @@
xsi:schemaLocation="https://openhab.org/schemas/config-description/v1.0.0 https://openhab.org/schemas/config-description-1.0.0.xsd">
<config-description uri="system:restauth">
<parameter name="allowBasicAuth" type="boolean" required="false">
<parameter name="allowBasicAuth" type="boolean">
<label>Allow Basic Authentication</label>
<default>false</default>
<description>Allow the use of Basic authentication to access protected API resources, in addition to access tokens
and API tokens.</description>
<default>false</default>
</parameter>
<parameter name="cacheExpiration" type="integer" min="0">
<parameter name="cacheExpiration" type="integer" min="0" step="1" unit="h">
<advanced>true</advanced>
<label>Cache Expiration Time</label>
<default>6</default>
<unitLabel>h</unitLabel>
<description>When basic authentication is activated, credentials are put in a cache in order to speed up request
authorization.
The entries in the cache expire after a while in order to not keep credentials in memory indefinitely.
This value defines the expiration time in hours.
Set it to 0 for disabling the cache.
</description>
authorization. The entries in the cache expire after a while in order to not keep credentials in memory
indefinitely. This value defines the expiration time in hours. Set it to 0 for disabling the cache.</description>
<default>6</default>
</parameter>
<parameter name="implicitUserRole" type="boolean" required="false">
<parameter name="implicitUserRole" type="boolean">
<advanced>true</advanced>
<label>Implicit user role for unauthenticated requests</label>
<default>true</default>
<label>Implicit User Role</label>
<description>By default, operations requiring the "user" role are available when unauthenticated. Disabling this
option will enforce authorization for these operations. Warning: This causes clients that do not
support
option will enforce authorization for these operations. Warning: This causes clients that do not support
authentication to break.</description>
<default>true</default>
</parameter>
</config-description>

View File

@ -0,0 +1,6 @@
system.config.restauth.allowBasicAuth.label = Allow Basic Authentication
system.config.restauth.allowBasicAuth.description = Allow the use of Basic authentication to access protected API resources, in addition to access tokens and API tokens.
system.config.restauth.cacheExpiration.label = Cache Expiration Time
system.config.restauth.cacheExpiration.description = When basic authentication is activated, credentials are put in a cache in order to speed up request authorization. The entries in the cache expire after a while in order to not keep credentials in memory indefinitely. This value defines the expiration time in hours. Set it to 0 for disabling the cache.
system.config.restauth.implicitUserRole.label = Implicit User Role
system.config.restauth.implicitUserRole.description = By default, operations requiring the "user" role are available when unauthenticated. Disabling this option will enforce authorization for these operations. Warning: This causes clients that do not support authentication to break.

View File

@ -0,0 +1,2 @@
system.config.addons.remote.label = Access Remote Repository
system.config.addons.remote.description = Defines whether openHAB should access the remote repository for add-on installation.

View File

@ -6,7 +6,7 @@
https://openhab.org/schemas/config-description-1.0.0.xsd">
<config-description uri="system:persistence">
<parameter name="default" type="text" required="false">
<parameter name="default" type="text">
<label>Default Service</label>
<description>The persistence service to use if no other is specified.</description>
</parameter>

View File

@ -0,0 +1,2 @@
system.config.persistence.default.label = Default Service
system.config.persistence.default.description = The persistence service to use if no other is specified.

View File

@ -6,19 +6,19 @@
https://openhab.org/schemas/config-description-1.0.0.xsd">
<config-description uri="system:json_storage">
<parameter name="backup_files" type="integer" min="0" max="100">
<label>Backup files</label>
<parameter name="backup_files" type="integer" min="0" max="100" step="1">
<label>Backup Files</label>
<description>Sets the number of backup files to keep.</description>
<default>5</default>
</parameter>
<parameter name="write_delay" type="integer" min="0" max="60000">
<label>Write delay</label>
<parameter name="write_delay" type="integer" min="0" max="60000" step="500" unit="ms">
<label>Write Delay</label>
<description>Sets the time to wait before writing changes to disk. This can reduce the number of writes when many
changes are being introduced within a short period. Time is defined in milliseconds.</description>
<default>500</default>
</parameter>
<parameter name="max_defer_delay" type="integer" min="1000" max="60000">
<label>Maximum write delay</label>
<parameter name="max_defer_delay" type="integer" min="1000" max="60000" step="500" unit="ms">
<label>Maximum Write Delay</label>
<description>Sets the maximum period the service will wait to write data to disk in the event that many changes are
happening continually.</description>
<default>30000</default>

View File

@ -0,0 +1,6 @@
system.config.json_storage.backup_files.label = Backup Files
system.config.json_storage.backup_files.description = Sets the number of backup files to keep.
system.config.json_storage.write_delay.label = Write Delay
system.config.json_storage.write_delay.description = Sets the time to wait before writing changes to disk. This can reduce the number of writes when many changes are being introduced within a short period. Time is defined in milliseconds.
system.config.json_storage.max_defer_delay.label = Maximum Write Delay
system.config.json_storage.max_defer_delay.description = Sets the maximum period the service will wait to write data to disk in the event that many changes are happening continually.

View File

@ -6,23 +6,23 @@
https://openhab.org/schemas/config-description-1.0.0.xsd">
<config-description uri="system:chart">
<parameter name="defaultHeight" type="integer" required="false">
<parameter name="defaultHeight" type="integer">
<label>Default Height</label>
<description>Defines the default height in pixels for the chart to build.</description>
<default>240</default>
</parameter>
<parameter name="defaultWidth" type="integer" required="false">
<parameter name="defaultWidth" type="integer">
<label>Default Width</label>
<description>Defines the default width in pixels for the chart to build.</description>
<default>480</default>
</parameter>
<parameter name="scale" type="decimal" required="false" min="0" step="0.1">
<parameter name="scale" type="decimal" min="0" step="0.1">
<label>Scale</label>
<description>Defines the scale to apply to the requested chart height (0.5 to divide by 2 for example).</description>
<default>1</default>
<advanced>true</advanced>
</parameter>
<parameter name="maxWidth" type="integer" required="false">
<parameter name="maxWidth" type="integer">
<label>Maximum Width</label>
<description>Defines the maximum width in pixels for the chart to build.</description>
<advanced>true</advanced>

View File

@ -0,0 +1,8 @@
system.config.chart.defaultHeight.label = Default Height
system.config.chart.defaultHeight.description = Defines the default height in pixels for the chart to build.
system.config.chart.defaultWidth.label = Default Width
system.config.chart.defaultWidth.description = Defines the default width in pixels for the chart to build.
system.config.chart.scale.label = Scale
system.config.chart.scale.description = Defines the scale to apply to the requested chart height (0.5 to divide by 2 for example).
system.config.chart.maxWidth.label = Maximum Width
system.config.chart.maxWidth.description = Defines the maximum width in pixels for the chart to build.

View File

@ -5,36 +5,36 @@
xsi:schemaLocation="https://openhab.org/schemas/config-description/v1.0.0 https://openhab.org/schemas/config-description-1.0.0.xsd">
<config-description uri="system:voice">
<parameter name="defaultTTS" type="text" required="false">
<parameter name="defaultTTS" type="text">
<label>Default Text-to-Speech</label>
<description>The default text-to-speech service to use if no other is specified.</description>
</parameter>
<parameter name="defaultSTT" type="text" required="false">
<parameter name="defaultSTT" type="text">
<label>Default Speech-to-Text</label>
<description>The default speech-to-text service to use if no other is specified.</description>
</parameter>
<parameter name="defaultVoice" type="text" required="false">
<parameter name="defaultVoice" type="text">
<label>Default Voice</label>
<description>The default voice to use if no specific TTS service or voice is specified.</description>
</parameter>
<parameter name="defaultHLI" type="text" required="false">
<parameter name="defaultHLI" type="text">
<label>Default Human Language Interpreter</label>
<description>The default human language interpreter to use if no other is specified.</description>
</parameter>
<parameter name="defaultKS" type="text" required="false">
<parameter name="defaultKS" type="text">
<label>Default Keyword Spotter</label>
<description>The default keyword spotting service to use if no other is specified.</description>
</parameter>
<parameter name="keyword" type="text" required="false">
<parameter name="keyword" type="text">
<label>Magic Word</label>
<description>The magic word to spot before initiating a dialog.</description>
</parameter>
<parameter name="listeningItem" type="text" required="false">
<parameter name="listeningItem" type="text">
<context>item</context>
<filter>
<criteria name="type">Switch</criteria>
</filter>
<label>Listening switch</label>
<label>Listening Switch</label>
<description>If provided, the item will be switched on during the period when the dialog processor has spotted the
keyword and is listening for commands.</description>
</parameter>

View File

@ -0,0 +1,14 @@
system.config.voice.defaultTTS.label = Default Text-to-Speech
system.config.voice.defaultTTS.description = The default text-to-speech service to use if no other is specified.
system.config.voice.defaultSTT.label = Default Speech-to-Text
system.config.voice.defaultSTT.description = The default speech-to-text service to use if no other is specified.
system.config.voice.defaultVoice.label = Default Voice
system.config.voice.defaultVoice.description = The default voice to use if no specific TTS service or voice is specified.
system.config.voice.defaultHLI.label = Default Human Language Interpreter
system.config.voice.defaultHLI.description = The default human language interpreter to use if no other is specified.
system.config.voice.defaultKS.label = Default Keyword Spotter
system.config.voice.defaultKS.description = The default keyword spotting service to use if no other is specified.
system.config.voice.keyword.label = Magic Word
system.config.voice.keyword.description = The magic word to spot before initiating a dialog.
system.config.voice.listeningItem.label = Listening Switch
system.config.voice.listeningItem.description = If provided, the item will be switched on during the period when the dialog processor has spotted the keyword and is listening for commands.

View File

@ -8,63 +8,32 @@
<config-description uri="system:i18n">
<parameter name="language" type="text">
<label>Language</label>
<description><![CDATA[
<p>The default language that should be used. If not specified, the system default locale is used.</p>
<p>The ISO 639 alpha-2 or alpha-3 language code (if there is no alpha-2 one).</p>
<p>Example: "en" (English), "de" (German), "ja" (Japanese), "kok" (Konkani)</p>
]]>
</description>
<description>The default language that should be used. If not specified, the system default locale is used.</description>
</parameter>
<parameter name="script" type="text" required="false">
<parameter name="script" type="text">
<label>Script</label>
<description><![CDATA[
<p>The script that should be used.</p>
<p>ISO 15924 alpha-4 script code.</p>
<p>Example: "Latn" (Latin), "Cyrl" (Cyrillic)</p>
]]>
</description>
<description>The script that should be used.</description>
<advanced>true</advanced>
</parameter>
<parameter name="region" type="text" required="false">
<parameter name="region" type="text">
<label>Country / Region</label>
<description><![CDATA[
<p>The region that should be used.</p>
<p>ISO 3166 alpha-2 country code or UN M.49 numeric-3 area code.</p>
<p>Example: "US" (United States), "DE" (Germany), "FR" (France), "029" (Caribbean)</p>
]]>
</description>
<description>The region that should be used.</description>
</parameter>
<parameter name="variant" type="text" required="false">
<parameter name="variant" type="text">
<label>Variant</label>
<description><![CDATA[
<p>A variation of the locale.</p>
<p>Any arbitrary value used to indicate a variation of a Locale.</p>
<p>Example: "polyton" (Polytonic Greek), "POSIX"</p>
]]>
</description>
<description>A variation of the Locale. Any arbitrary value used to indicate a variation of a Locale.</description>
<advanced>true</advanced>
</parameter>
<parameter name="timezone" type="text" required="false">
<parameter name="timezone" type="text">
<label>Time Zone</label>
<description><![CDATA[
<p>A time zone can be set from the user interface.</p>
<p>The underlying system's time zone is the default.</p>
<p>Example: Asia/Tokyo, Europe/Berlin</p>
]]>
</description>
<description>A time zone can be set from the user interface. The underlying system's time zone is the default.</description>
</parameter>
<parameter name="location" type="text" required="false">
<parameter name="location" type="text">
<context>location</context>
<label>Location</label>
<description><![CDATA[
<p>The location of this installation.</p>
<p>Coordinates as &lt;latitude&gt;,&lt;longitude&gt;[&lt;altitude&gt;]</p>
<p>Example: "52.5200066,13.4049540" (Berlin)</p>
]]>
</description>
<description><![CDATA[The location of this installation.<br>Coordinates as &lt;latitude&gt;,&lt;longitude&gt;[&lt;altitude&gt;]<br>Example: "52.5200066,13.4049540" (Berlin)]]></description>
</parameter>
<parameter name="measurementSystem" type="text" required="false">
<parameter name="measurementSystem" type="text">
<label>Measurement System</label>
<description>The measurement system is used for unit conversion.</description>
<advanced>true</advanced>

View File

@ -9,25 +9,23 @@
<parameter name="primaryAddress" type="text">
<label>Primary Address</label>
<description>
A subnet (e.g. 192.168.1.0/24) <!-- or an IP address (e.g. 192.168.1.5) -->
A subnet (e.g. 192.168.1.0/24). <!-- or an IP address (e.g. 192.168.1.5) -->
</description>
<limitToOptions>true</limitToOptions>
</parameter>
<parameter name="broadcastAddress" type="text">
<label>Broadcast Address</label>
<description>A broadcast address (e.g. 192.168.1.255)</description>
<limitToOptions>true</limitToOptions>
<description>A broadcast address (e.g. 192.168.1.255).</description>
<advanced>true</advanced>
</parameter>
<parameter name="useOnlyOneAddress" type="boolean">
<label>Single IP Address per Interface</label>
<description>Use only one IP address per interface and family</description>
<description>Use only one IP address per interface and family.</description>
<default>false</default>
<advanced>true</advanced>
</parameter>
<parameter name="useIPv6" type="boolean">
<label>Use IPv6</label>
<description>Use IPv6 Addresses if available</description>
<description>Use IPv6 Addresses if available.</description>
<default>true</default>
<advanced>true</advanced>
</parameter>

View File

@ -0,0 +1,16 @@
system.config.i18n.language.label = Language
system.config.i18n.language.description = The default language that should be used. If not specified, the system default locale is used.
system.config.i18n.script.label = Script
system.config.i18n.script.description = The script that should be used.
system.config.i18n.region.label = Country / Region
system.config.i18n.region.description = The region that should be used.
system.config.i18n.variant.label = Variant
system.config.i18n.variant.description = A variation of the Locale. Any arbitrary value used to indicate a variation of a Locale.
system.config.i18n.timezone.label = Time Zone
system.config.i18n.timezone.description = A time zone can be set from the user interface. The underlying system's time zone is the default.
system.config.i18n.location.label = Location
system.config.i18n.location.description = The location of this installation.<br>Coordinates as &lt;latitude&gt;,&lt;longitude&gt;[&lt;altitude&gt;]<br>Example: "52.5200066,13.4049540" (Berlin)
system.config.i18n.measurementSystem.label = Measurement System
system.config.i18n.measurementSystem.description = The measurement system is used for unit conversion.
system.config.i18n.measurementSystem.option.SI = Metric
system.config.i18n.measurementSystem.option.US = Imperial (US)

View File

@ -0,0 +1,8 @@
system.config.network.primaryAddress.label = Primary Address
system.config.network.primaryAddress.description = A subnet (e.g. 192.168.1.0/24).
system.config.network.broadcastAddress.label = Broadcast Address
system.config.network.broadcastAddress.description = A broadcast address (e.g. 192.168.1.255).
system.config.network.useOnlyOneAddress.label = Single IP Address per Interface
system.config.network.useOnlyOneAddress.description = Use only one IP address per interface and family.
system.config.network.useIPv6.label = Use IPv6
system.config.network.useIPv6.description = Use IPv6 Addresses if available.