From 65173738ea98d8726972bc54494d0549847bb802 Mon Sep 17 00:00:00 2001 From: figorr <77553975+figorr@users.noreply.github.com> Date: Sun, 22 Sep 2024 02:14:45 +0200 Subject: [PATCH] New translation files New translation files to use with translation_key method at sensor.py --- .../ecowater_softener/translations/de.json | 34 ++++++++++++++++ .../ecowater_softener/translations/en.json | 34 ++++++++++++++++ .../ecowater_softener/translations/es.json | 40 +++++++++++++++++-- .../ecowater_softener/translations/fr.json | 34 ++++++++++++++++ 4 files changed, 139 insertions(+), 3 deletions(-) diff --git a/custom_components/ecowater_softener/translations/de.json b/custom_components/ecowater_softener/translations/de.json index 8943448..867f7b6 100644 --- a/custom_components/ecowater_softener/translations/de.json +++ b/custom_components/ecowater_softener/translations/de.json @@ -12,5 +12,39 @@ "title": "Einrichtung" } } + }, + "entity": { + "sensor": { + "status": { + "name": "Status" + }, + "water_available": { + "name": "Verfügbares Wasser" + }, + "water_usage_today": { + "name": "Wasserverbrauch heute" + }, + "water_usage_daily_average": { + "name": "Durchschnittlicher täglicher Wasserverbrauch" + }, + "salt_level_percentage": { + "name": "Salzgehalt in Prozent" + }, + "out_of_salt_on": { + "name": "Salzmangel am" + }, + "days_until_out_of_salt": { + "name": "Tage bis Salzmangel" + }, + "recharge_enabled": { + "name": "Aufladung aktiviert" + }, + "recharge_scheduled": { + "name": "Aufladung geplant" + }, + "last_update": { + "name": "Letzte Aktualisierung" + } + } } } diff --git a/custom_components/ecowater_softener/translations/en.json b/custom_components/ecowater_softener/translations/en.json index 39850c7..0ccc149 100644 --- a/custom_components/ecowater_softener/translations/en.json +++ b/custom_components/ecowater_softener/translations/en.json @@ -12,5 +12,39 @@ "title": "Setup" } } + }, + "entity": { + "sensor": { + "status": { + "name": "Status" + }, + "water_available": { + "name": "Water Available" + }, + "water_usage_today": { + "name": "Water Used Today" + }, + "water_usage_daily_average": { + "name": "Average Water Used per Day" + }, + "salt_level_percentage": { + "name": "Salt Level Percentage" + }, + "out_of_salt_on": { + "name": "Out of Salt On" + }, + "days_until_out_of_salt": { + "name": "Days Until Out of Salt" + }, + "recharge_enabled": { + "name": "Recharge Enabled" + }, + "recharge_scheduled": { + "name": "Recharge Scheduled" + }, + "last_update": { + "name": "Last Update" + } + } } } diff --git a/custom_components/ecowater_softener/translations/es.json b/custom_components/ecowater_softener/translations/es.json index 4cc155a..13c7305 100644 --- a/custom_components/ecowater_softener/translations/es.json +++ b/custom_components/ecowater_softener/translations/es.json @@ -3,14 +3,48 @@ "step": { "user": { "data": { - "username": "Usuario", + "username": "Nombre de usuario", "password": "Contraseña", - "serialnumber": "Número de serie (DSN)", + "serialnumber": "Número de serie", "dateformat": "Formato de fecha" }, - "description": "Ingresa tus credenciales de Ecowater.\nLuego elige el formato de fecha que utiliza tu dispositivo Ecowater.", + "description": "Introduce tus credenciales de Ecowater.\nLuego selecciona el formato de fecha que utiliza tu dispositivo Ecowater.", "title": "Configuración" } } + }, + "entity": { + "sensor": { + "status": { + "name": "Estado" + }, + "water_available": { + "name": "Agua Disponible" + }, + "water_usage_today": { + "name": "Agua Consumida Hoy" + }, + "water_usage_daily_average": { + "name": "Agua Consumida Media Diaria" + }, + "salt_level_percentage": { + "name": "Porcentaje Nivel de Sal" + }, + "out_of_salt_on": { + "name": "Fecha para Agotar Sal" + }, + "days_until_out_of_salt": { + "name": "Días para Agotar Sal" + }, + "recharge_enabled": { + "name": "Recarga Activada" + }, + "recharge_scheduled": { + "name": "Recarga Programada" + }, + "last_update": { + "name": "Última Actualización" + } + } } } diff --git a/custom_components/ecowater_softener/translations/fr.json b/custom_components/ecowater_softener/translations/fr.json index 19d0e20..a5d80db 100644 --- a/custom_components/ecowater_softener/translations/fr.json +++ b/custom_components/ecowater_softener/translations/fr.json @@ -12,5 +12,39 @@ "title": "Lier votre compte Ecowater" } } + }, + "entity": { + "sensor": { + "status": { + "name": "Statut" + }, + "water_available": { + "name": "Eau disponible" + }, + "water_usage_today": { + "name": "Consommation d'eau aujourd'hui" + }, + "water_usage_daily_average": { + "name": "Consommation d'eau quotidienne moyenne" + }, + "salt_level_percentage": { + "name": "Pourcentage de sel" + }, + "out_of_salt_on": { + "name": "Manque de sel le" + }, + "days_until_out_of_salt": { + "name": "Jours jusqu'à manque de sel" + }, + "recharge_enabled": { + "name": "Recharge activée" + }, + "recharge_scheduled": { + "name": "Recharge programmée" + }, + "last_update": { + "name": "Dernière mise à jour" + } + } } }