From f85cbb043d4b7a4de5dba9cdba8ed91b8fb5639f Mon Sep 17 00:00:00 2001 From: Oncleben31 Date: Wed, 13 Jan 2021 12:39:06 +0100 Subject: [PATCH] Add french translation and strings improvements (#49) Reusing work done on strings.json done in #37 --- .../translations/en.json | 3 +- .../translations/fr.json | 31 +++++++++++++++++++ .../translations/nb.json | 3 +- .../translations/sensor.nb.json | 5 --- 4 files changed, 33 insertions(+), 9 deletions(-) create mode 100644 custom_components/integration_blueprint/translations/fr.json delete mode 100644 custom_components/integration_blueprint/translations/sensor.nb.json diff --git a/custom_components/integration_blueprint/translations/en.json b/custom_components/integration_blueprint/translations/en.json index 15f8104..ecf368a 100644 --- a/custom_components/integration_blueprint/translations/en.json +++ b/custom_components/integration_blueprint/translations/en.json @@ -1,6 +1,5 @@ { "config": { - "title": "Blueprint", "step": { "user": { "title": "Blueprint", @@ -15,7 +14,7 @@ "auth": "Username/Password is wrong." }, "abort": { - "single_instance_allowed": "Only a single configuration of Blueprint is allowed." + "single_instance_allowed": "Only a single instance is allowed." } }, "options": { diff --git a/custom_components/integration_blueprint/translations/fr.json b/custom_components/integration_blueprint/translations/fr.json new file mode 100644 index 0000000..842caa7 --- /dev/null +++ b/custom_components/integration_blueprint/translations/fr.json @@ -0,0 +1,31 @@ +{ + "config": { + "step": { + "user": { + "title": "Blueprint", + "description": "Si vous avez besoin d'aide pour la configuration, regardez ici: https://github.com/custom-components/integration_blueprint", + "data": { + "username": "Identifiant", + "password": "Mot de Passe" + } + } + }, + "error": { + "auth": "Identifiant ou mot de passe erroné." + }, + "abort": { + "single_instance_allowed": "Une seule instance est autorisée." + } + }, + "options": { + "step": { + "user": { + "data": { + "binary_sensor": "Capteur binaire activé", + "sensor": "Capteur activé", + "switch": "Interrupteur activé" + } + } + } + } +} \ No newline at end of file diff --git a/custom_components/integration_blueprint/translations/nb.json b/custom_components/integration_blueprint/translations/nb.json index 6a61942..e3ef188 100644 --- a/custom_components/integration_blueprint/translations/nb.json +++ b/custom_components/integration_blueprint/translations/nb.json @@ -1,6 +1,5 @@ { "config": { - "title": "Blueprint", "step": { "user": { "title": "Blueprint", @@ -15,7 +14,7 @@ "auth": "Brukernavn/Passord er feil." }, "abort": { - "single_instance_allowed": "Du kan konfigurere Blueprint kun en gang." + "single_instance_allowed": "Denne integrasjonen kan kun konfigureres en gang." } }, "options": { diff --git a/custom_components/integration_blueprint/translations/sensor.nb.json b/custom_components/integration_blueprint/translations/sensor.nb.json deleted file mode 100644 index ed34ceb..0000000 --- a/custom_components/integration_blueprint/translations/sensor.nb.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "state": { - "Some sample static text.": "Eksempel tekst." - } -} \ No newline at end of file