From 076d9eae24c43eadcd65753fcb2dec0b3a27d8e1 Mon Sep 17 00:00:00 2001 From: Jean-Marc Collin Date: Sun, 29 Oct 2023 17:18:27 +0000 Subject: [PATCH] Fix translations --- .../versatile_thermostat/const.py | 2 +- .../versatile_thermostat/strings.json | 10 ++++++---- .../versatile_thermostat/translations/en.json | 20 +++++++++++++++---- .../versatile_thermostat/translations/fr.json | 14 +++++++------ .../versatile_thermostat/translations/it.json | 10 ++++++---- 5 files changed, 37 insertions(+), 19 deletions(-) diff --git a/custom_components/versatile_thermostat/const.py b/custom_components/versatile_thermostat/const.py index ee9f3b3..e6a036c 100644 --- a/custom_components/versatile_thermostat/const.py +++ b/custom_components/versatile_thermostat/const.py @@ -201,7 +201,7 @@ CONF_FUNCTIONS = [ PROPORTIONAL_FUNCTION_TPI, ] -CONF_AUTO_REGULATION_MODES = [CONF_AUTO_REGULATION_LIGHT, CONF_AUTO_REGULATION_MEDIUM, CONF_AUTO_REGULATION_STRONG] +CONF_AUTO_REGULATION_MODES = [CONF_AUTO_REGULATION_NONE, CONF_AUTO_REGULATION_LIGHT, CONF_AUTO_REGULATION_MEDIUM, CONF_AUTO_REGULATION_STRONG] CONF_THERMOSTAT_TYPES = [CONF_THERMOSTAT_SWITCH, CONF_THERMOSTAT_CLIMATE, CONF_THERMOSTAT_VALVE] diff --git a/custom_components/versatile_thermostat/strings.json b/custom_components/versatile_thermostat/strings.json index 96788ff..353373c 100644 --- a/custom_components/versatile_thermostat/strings.json +++ b/custom_components/versatile_thermostat/strings.json @@ -335,10 +335,12 @@ } }, "auto_regulation_mode": { - "auto_regulation_strong": "Strong", - "auto_regulation_medium": "Medium", - "auto_regulation_light": "Light", - "auto_regulation_none": "No auto-regulation" + "options": { + "auto_regulation_strong": "Strong", + "auto_regulation_medium": "Medium", + "auto_regulation_light": "Light", + "auto_regulation_none": "No auto-regulation" + } } }, "entity": { diff --git a/custom_components/versatile_thermostat/translations/en.json b/custom_components/versatile_thermostat/translations/en.json index 0db2ed6..353373c 100644 --- a/custom_components/versatile_thermostat/translations/en.json +++ b/custom_components/versatile_thermostat/translations/en.json @@ -38,7 +38,8 @@ "valve_entity_id": "1rst valve number", "valve_entity2_id": "2nd valve number", "valve_entity3_id": "3rd valve number", - "valve_entity4_id": "4th valve number" + "valve_entity4_id": "4th valve number", + "auto_regulation_mode": "Self-regulation" }, "data_description": { "heater_entity_id": "Mandatory heater entity id", @@ -54,7 +55,8 @@ "valve_entity_id": "1rst valve number entity id", "valve_entity2_id": "2nd valve number entity id", "valve_entity3_id": "3rd valve number entity id", - "valve_entity4_id": "4th valve number entity id" + "valve_entity4_id": "4th valve number entity id", + "auto_regulation_mode": "Auto adjustment of the target temperature" } }, "tpi": { @@ -199,7 +201,8 @@ "valve_entity_id": "1rst valve number", "valve_entity2_id": "2nd valve number", "valve_entity3_id": "3rd valve number", - "valve_entity4_id": "4th valve number" + "valve_entity4_id": "4th valve number", + "auto_regulation_mode": "Self-regulation" }, "data_description": { "heater_entity_id": "Mandatory heater entity id", @@ -215,7 +218,8 @@ "valve_entity_id": "1rst valve number entity id", "valve_entity2_id": "2nd valve number entity id", "valve_entity3_id": "3rd valve number entity id", - "valve_entity4_id": "4th valve number entity id" + "valve_entity4_id": "4th valve number entity id", + "auto_regulation_mode": "Auto adjustment of the target temperature" } }, "tpi": { @@ -329,6 +333,14 @@ "thermostat_over_climate": "Thermostat over a climate", "thermostat_over_valve": "Thermostat over a valve" } + }, + "auto_regulation_mode": { + "options": { + "auto_regulation_strong": "Strong", + "auto_regulation_medium": "Medium", + "auto_regulation_light": "Light", + "auto_regulation_none": "No auto-regulation" + } } }, "entity": { diff --git a/custom_components/versatile_thermostat/translations/fr.json b/custom_components/versatile_thermostat/translations/fr.json index c30b9dc..e1eb5cd 100644 --- a/custom_components/versatile_thermostat/translations/fr.json +++ b/custom_components/versatile_thermostat/translations/fr.json @@ -39,7 +39,7 @@ "valve_entity2_id": "2ème valve number", "valve_entity3_id": "3ème valve number", "valve_entity4_id": "4ème valve number", - "auto_regulation_mode": "Auto-regulation" + "auto_regulation_mode": "Auto-régulation" }, "data_description": { "heater_entity_id": "Entity id du 1er radiateur obligatoire", @@ -56,7 +56,7 @@ "valve_entity2_id": "Entity id de la 2ème valve", "valve_entity3_id": "Entity id de la 3ème valve", "valve_entity4_id": "Entity id de la 4ème valve", - "auto_regulation_mode": "Ajustement automatique de la consigne" + "auto_regulation_mode": "Ajustement automatique de la température cible" } }, "tpi": { @@ -336,10 +336,12 @@ } }, "auto_regulation_mode": { - "auto_regulation_strong": "Forte", - "auto_regulation_medium": "Moyenne", - "auto_regulation_light": "Légère", - "auto_regulation_none": "Aucune" + "options": { + "auto_regulation_strong": "Forte", + "auto_regulation_medium": "Moyenne", + "auto_regulation_light": "Légère", + "auto_regulation_none": "Aucune" + } } }, "entity": { diff --git a/custom_components/versatile_thermostat/translations/it.json b/custom_components/versatile_thermostat/translations/it.json index a03a5f2..ce724e6 100644 --- a/custom_components/versatile_thermostat/translations/it.json +++ b/custom_components/versatile_thermostat/translations/it.json @@ -321,10 +321,12 @@ } }, "auto_regulation_mode": { - "auto_regulation_strong": "Forte", - "auto_regulation_medium": "Media", - "auto_regulation_light": "Leggera", - "auto_regulation_none": "Nessuna autoregolamentazione" + "options": { + "auto_regulation_strong": "Forte", + "auto_regulation_medium": "Media", + "auto_regulation_light": "Leggera", + "auto_regulation_none": "Nessuna autoregolamentazione" + } } }, "entity": {