Add default translations for io add-ons (#11753)

* Add default translations for io add-ons

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-12 19:32:51 +01:00
committed by GitHub
parent 69c130e1ba
commit e752b51662
6 changed files with 111 additions and 4 deletions

View File

@@ -64,7 +64,7 @@ import io.swagger.v3.oas.annotations.tags.Tag;
@RolesAllowed({ Role.USER, Role.ADMIN })
@Tag(name = MetricsRestController.PATH_METRICS)
@NonNullByDefault
@ConfigurableService(category = "io", label = "Metrics service", description_uri = "io:metrics")
@ConfigurableService(category = "io", label = "Metrics Service", description_uri = "io:metrics")
public class MetricsRestController {
private final Logger logger = LoggerFactory.getLogger(MetricsRestController.class);
public static final String PATH_METRICS = "metrics";

View File

@@ -0,0 +1,20 @@
io.config.metrics.group.influx.label = Influx Metrics
io.config.metrics.group.jmx.label = JMX Metrics
io.config.metrics.influxDB.label = Database Name
io.config.metrics.influxDB.description = The Name of the Database to Use. Defaults to "openhab".
io.config.metrics.influxMetricsEnabled.label = Enabled
io.config.metrics.influxMetricsEnabled.description = Enable the Influx (www.influxdata.com) Metrics. Further Configuration of the InfluxDB Instance Necessary.
io.config.metrics.influxPassword.label = Password
io.config.metrics.influxPassword.description = The InfluxDB Password (No Default).
io.config.metrics.influxURL.label = URL
io.config.metrics.influxURL.description = The URL of the InfluxDB Instance. Defaults to http://localhost:8086
io.config.metrics.influxUpdateIntervalInSeconds.label = Update Interval in Seconds
io.config.metrics.influxUpdateIntervalInSeconds.description = Controls How Often Metrics Are Exported to InfluxDB (in Seconds). Defaults to 300
io.config.metrics.influxUsername.label = User Name
io.config.metrics.influxUsername.description = The InfluxDB User Name (No Default).
io.config.metrics.jmxMetricsEnabled.label = Enabled
io.config.metrics.jmxMetricsEnabled.description = Enable the Java Management Extensions (JMX) Metrics.
# service
service.io.metrics.label = Metrics Service