Add default translations for transform add-ons (#11755)

This makes the texts used by these add-ons translatable with Crowdin.

Signed-off-by: Wouter Born <github@maindrain.net>
This commit is contained in:
Wouter Born 2021-12-11 18:01:29 +01:00 committed by GitHub
parent 13ca0d5500
commit 1b3818c329
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
16 changed files with 72 additions and 8 deletions

View File

@ -12,7 +12,7 @@
</parameter> </parameter>
<parameter name="sourceFormat" type="text" required="false"> <parameter name="sourceFormat" type="text" required="false">
<label>State Formatter</label> <label>State Formatter</label>
<description>How to format the state on the channel before transforming it, i.e. %s or %.1f °C (default is %s)</description> <description>How to format the state on the channel before transforming it, i.e. %s or %.1f °C (default is %s).</description>
<advanced>true</advanced> <advanced>true</advanced>
</parameter> </parameter>
</config-description> </config-description>

View File

@ -0,0 +1,8 @@
profile.config.transform.EXEC.function.label = Command
profile.config.transform.EXEC.function.description = Command to be executed on the command line. It should contain %s which will be substituted with the state.
profile.config.transform.EXEC.sourceFormat.label = State Formatter
profile.config.transform.EXEC.sourceFormat.description = How to format the state on the channel before transforming it, i.e. %s or %.1f °C (default is %s).
# profile type
profile-type.transform.EXEC.label = EXEC

View File

@ -13,7 +13,7 @@
</parameter> </parameter>
<parameter name="sourceFormat" type="text"> <parameter name="sourceFormat" type="text">
<label>State Formatter</label> <label>State Formatter</label>
<description>How to format the state on the channel before transforming it, i.e. %s or %.1f °C (default is %s)</description> <description>How to format the state on the channel before transforming it, i.e. %s or %.1f °C (default is %s).</description>
<advanced>true</advanced> <advanced>true</advanced>
</parameter> </parameter>
</config-description> </config-description>

View File

@ -0,0 +1,8 @@
profile.config.transform.JS.function.label = JavaScript Filename
profile.config.transform.JS.function.description = Filename of the JavaScript in the transform folder. The state will be available in the variable \"input\".
profile.config.transform.JS.sourceFormat.label = State Formatter
profile.config.transform.JS.sourceFormat.description = How to format the state on the channel before transforming it, i.e. %s or %.1f °C (default is %s).
# profile type
profile-type.transform.JS.label = JS

View File

@ -12,7 +12,7 @@
</parameter> </parameter>
<parameter name="sourceFormat" type="text" required="false"> <parameter name="sourceFormat" type="text" required="false">
<label>State Formatter</label> <label>State Formatter</label>
<description>How to format the state on the channel before transforming it, i.e. %s or %.1f °C (default is %s)</description> <description>How to format the state on the channel before transforming it, i.e. %s or %.1f °C (default is %s).</description>
<advanced>true</advanced> <advanced>true</advanced>
</parameter> </parameter>
</config-description> </config-description>

View File

@ -0,0 +1,8 @@
profile.config.transform.JINJA.function.label = Jinja Template
profile.config.transform.JINJA.function.description = Template to be evaluated. For example: {{ value_json.device.status.temperature }}
profile.config.transform.JINJA.sourceFormat.label = State Formatter
profile.config.transform.JINJA.sourceFormat.description = How to format the state on the channel before transforming it, i.e. %s or %.1f °C (default is %s).
# profile type
profile-type.transform.JINJA.label = JINJA

View File

@ -11,7 +11,7 @@
</parameter> </parameter>
<parameter name="sourceFormat" type="text" required="false"> <parameter name="sourceFormat" type="text" required="false">
<label>State Formatter</label> <label>State Formatter</label>
<description>How to format the state on the channel before transforming it, i.e. %s or %.1f °C (default is %s)</description> <description>How to format the state on the channel before transforming it, i.e. %s or %.1f °C (default is %s).</description>
<advanced>true</advanced> <advanced>true</advanced>
</parameter> </parameter>
</config-description> </config-description>

View File

@ -0,0 +1,8 @@
profile.config.transform.JSONPATH.function.label = JSONPath Expression
profile.config.transform.JSONPATH.function.description = Expression to be applied on the state. For example: $.device.status.temperature
profile.config.transform.JSONPATH.sourceFormat.label = State Formatter
profile.config.transform.JSONPATH.sourceFormat.description = How to format the state on the channel before transforming it, i.e. %s or %.1f °C (default is %s).
# profile type
profile-type.transform.JSONPATH.label = JSONPATH

View File

@ -12,7 +12,7 @@
</parameter> </parameter>
<parameter name="sourceFormat" type="text" required="false"> <parameter name="sourceFormat" type="text" required="false">
<label>State Formatter</label> <label>State Formatter</label>
<description>How to format the state on the channel before transforming it, i.e. %s or %.1f °C (default is %s)</description> <description>How to format the state on the channel before transforming it, i.e. %s or %.1f °C (default is %s).</description>
<advanced>true</advanced> <advanced>true</advanced>
</parameter> </parameter>
</config-description> </config-description>

View File

@ -0,0 +1,8 @@
profile.config.transform.REGEX.function.label = Regular Expression
profile.config.transform.REGEX.function.description = Regular expression to be applied on the state. Should contain a capture group whose outcome will be the result. For example: .*=(\\d*.\\d*).* extracts the 23.5 from temp=23.5°C
profile.config.transform.REGEX.sourceFormat.label = State Formatter
profile.config.transform.REGEX.sourceFormat.description = How to format the state on the channel before transforming it, i.e. %s or %.1f °C (default is %s).
# profile type
profile-type.transform.REGEX.label = REGEX

View File

@ -12,7 +12,7 @@
</parameter> </parameter>
<parameter name="sourceFormat" type="text"> <parameter name="sourceFormat" type="text">
<label>State Formatter</label> <label>State Formatter</label>
<description>How to format the state on the channel before transforming it, i.e. %s or %.1f °C (default is %s)</description> <description>How to format the state on the channel before transforming it, i.e. %s or %.1f °C (default is %s).</description>
<advanced>true</advanced> <advanced>true</advanced>
</parameter> </parameter>
</config-description> </config-description>

View File

@ -0,0 +1,8 @@
profile.config.transform.SCALE.function.label = Filename
profile.config.transform.SCALE.function.description = Filename containing the scale mappings.
profile.config.transform.SCALE.sourceFormat.label = State Formatter
profile.config.transform.SCALE.sourceFormat.description = How to format the state on the channel before transforming it, i.e. %s or %.1f °C (default is %s).
# profile type
profile-type.transform.SCALE.label = SCALE

View File

@ -12,7 +12,7 @@
</parameter> </parameter>
<parameter name="sourceFormat" type="text" required="false"> <parameter name="sourceFormat" type="text" required="false">
<label>State Formatter</label> <label>State Formatter</label>
<description>How to format the state on the channel before transforming it, i.e. %s or %.1f °C (default is %s)</description> <description>How to format the state on the channel before transforming it, i.e. %s or %.1f °C (default is %s).</description>
<advanced>true</advanced> <advanced>true</advanced>
</parameter> </parameter>
</config-description> </config-description>

View File

@ -0,0 +1,8 @@
profile.config.transform.XPATH.function.label = XPath Expression
profile.config.transform.XPATH.function.description = XPath expression to be applied on the state: For example: /*[name()='PTZStatus']/*[name()='AbsoluteHigh']/*[name()='azimuth']/
profile.config.transform.XPATH.sourceFormat.label = State Formatter
profile.config.transform.XPATH.sourceFormat.description = How to format the state on the channel before transforming it, i.e. %s or %.1f °C (default is %s).
# profile type
profile-type.transform.XPATH.label = XPATH

View File

@ -11,7 +11,7 @@
</parameter> </parameter>
<parameter name="sourceFormat" type="text" required="false"> <parameter name="sourceFormat" type="text" required="false">
<label>State Formatter</label> <label>State Formatter</label>
<description>How to format the state on the channel before transforming it, i.e. %s or %.1f °C (default is %s)</description> <description>How to format the state on the channel before transforming it, i.e. %s or %.1f °C (default is %s).</description>
<advanced>true</advanced> <advanced>true</advanced>
</parameter> </parameter>
</config-description> </config-description>

View File

@ -0,0 +1,8 @@
profile.config.transform.XSLT.function.label = XSL Filename
profile.config.transform.XSLT.function.description = XSL file name in transform folder, containing the transformation expression.
profile.config.transform.XSLT.sourceFormat.label = State Formatter
profile.config.transform.XSLT.sourceFormat.description = How to format the state on the channel before transforming it, i.e. %s or %.1f °C (default is %s).
# profile type
profile-type.transform.XSLT.label = XSLT