Several fixes in user-facing strings of the SQL integration (#137438)

- use proper sentence-casing for all strings
- replace "unit of measure" with correct "unit of measurement"
- replace "HA recorder" with "Home Assistant Recorder" as this is a name that is not translated
- add some details from the online docs to descriptions
This commit is contained in:
Norbert Rittel 2025-02-06 17:05:04 +01:00 committed by GitHub
parent 57133c199f
commit b4559e0342
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -5,7 +5,7 @@
},
"error": {
"db_url_invalid": "Database URL invalid",
"query_invalid": "SQL Query invalid",
"query_invalid": "SQL query invalid",
"query_no_read_only": "SQL query must be read-only",
"multiple_queries": "Multiple SQL queries are not supported",
"column_invalid": "The column `{column}` is not returned by the query"
@ -15,22 +15,22 @@
"data": {
"db_url": "Database URL",
"name": "[%key:common::config_flow::data::name%]",
"query": "Select Query",
"query": "Select query",
"column": "Column",
"unit_of_measurement": "Unit of Measure",
"value_template": "Value Template",
"device_class": "Device Class",
"state_class": "State Class"
"unit_of_measurement": "Unit of measurement",
"value_template": "Value template",
"device_class": "Device class",
"state_class": "State class"
},
"data_description": {
"db_url": "Database URL, leave empty to use HA recorder database",
"name": "Name that will be used for Config Entry and also the Sensor",
"db_url": "Leave empty to use Home Assistant Recorder database",
"name": "Name that will be used for config entry and also the sensor",
"query": "Query to run, needs to start with 'SELECT'",
"column": "Column for returned query to present as state",
"unit_of_measurement": "Unit of Measure (optional)",
"value_template": "Value Template (optional)",
"unit_of_measurement": "The unit of measurement for the sensor (optional)",
"value_template": "Template to extract a value from the payload (optional)",
"device_class": "The type/class of the sensor to set the icon in the frontend",
"state_class": "The state_class of the sensor"
"state_class": "The state class of the sensor"
}
}
}