Skip to content

Commit

Permalink
refactor: Update Netatmo device and discover page texts + deleted tex…
Browse files Browse the repository at this point in the history
…ts i18n not use
  • Loading branch information
Terdious committed Jan 18, 2024
1 parent defd0e4 commit 3085995
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 54 deletions.
30 changes: 13 additions & 17 deletions front/src/config/i18n/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,6 @@
"setupTab": "Konfiguration",
"documentation": "Netatmo-Dokumentation",
"discoverDeviceDescr": "Netatmo-Geräte automatisch scannen",
"unmanagedModelButton": "Nicht unterstütztes oder nicht verfügbares Modell",
"status": {
"notConfigured": "Der Netatmo-Dienst ist nicht konfiguriert",
"disconnect": "Gladys ist nicht mit Netatmo verbunden",
Expand All @@ -528,7 +527,6 @@
"processingToken": "Verbindung zu Ihrem Netatmo-Konto... Zugriffstoken wird abgerufen.",
"getDevicesValues": "Datenwiederherstellung läuft...",
"dicoveringDevices": "Gerätewiederherstellung läuft...",
"connectionError": "Fehler bei der Verbindung, bitte überprüfen Sie Ihre Konfiguration.",
"errorConnecting": {
"other_error": "Fehler bei der Autorisierung. Sie können den Fehler in der Konsole Ihres Browsers mit einem Rechtsklick untersuchen. Wenn der Fehler weiterhin besteht, posten Sie bitte die Protokolle im Forum.",
"access_denied": "Autorisierung abgelehnt, bitte versuchen Sie es erneut und akzeptieren Sie den Zugriff auf Ihre Daten.",
Expand All @@ -545,16 +543,12 @@
"namePlaceholder": "Geben Sie den Namen Ihres Geräts ein",
"modelLabel": "Modell",
"roomLabel": "Raum",
"connectedPlugLabel": "Mit der Brücke verbunden",
"roomNetatmoApiLabel": "Raum in der Netatmo-API",
"featuresLabel": "Funktionen",
"saveButton": "Speichern",
"updateButton": "Aktualisieren",
"editButton": "Bearbeiten",
"deleteButton": "Löschen",
"unmanagedModelButton": "Nicht unterstütztes Modell",
"noValueReceived": "Kein Wert empfangen.",
"firmwareRevisionLabel": "Firmware: ",
"connectedPlugLabel": "Mit der Brücke verbunden",
"roomNetatmoApiLabel": "Raum in der Netatmo-API"
"noValueReceived": "Kein Wert empfangen."
},
"discover": {
"title": "Ihre mit Gladys kompatiblen Netatmo-Geräte",
Expand All @@ -563,25 +557,27 @@
"descriptionInformation": "Der Statusabruf erfolgt derzeit alle 2 Minuten (Einschränkung der Netatmo-API).",
"noDeviceFound": "Keine Netatmo-Geräte gefunden. Haben Sie alle Schritte der Dokumentation befolgt, um Ihre Geräte in der Netatmo-API zu registrieren?",
"alreadyCreatedButton": "Bereits erstellt",
"updateButton": "Aktualisieren",
"unmanagedModelButton": "Nicht unterstütztes Modell",
"scan": "Scannen",
"refresh": "Aktualisieren"
},
"setup": {
"title": "Netatmo-Konfiguration",
"clientIdLabel": "Kunden-ID",
"clientIdPlaceholder": "Kunden-ID von My Apps in Netatmo Connect",
"clientSecretLabel": "Kundengeheimnis",
"clientSecretPlaceholder": "Kundengeheimnis von My Apps in Netatmo Connect",
"saveLabel": "Speichern und verbinden",
"connectionInfoLabel": "Wenn Sie diese Informationen ändern, ist ein neues Token erforderlich. Durch das Trennen der Verbindung wird auch Ihr Zugriffstoken gelöscht. Wenn Sie auf diese Schaltflächen klicken, wird daher eine neue Verbindungsanfrage an die Netatmo-API gestellt.",
"disconnectLabel": "Trennen",
"description": "Sie können Gladys mit Ihrem Netatmo-Konto verbinden, um die zugehörigen Geräte zu steuern.",
"descriptionCreateAccount": "Sie müssen ein Konto auf <a href=\"https://auth.netatmo.com/de-de/access/login\" target=\"_blank\" rel=\"noopener noreferrer\">Netatmo Connect</a> erstellen.",
"descriptionCreateProject": "Danach müssen Sie eine \"Anwendung\" in Ihrem Netatmo-Entwicklerkonto über das Menü <a href=\"https://dev.netatmo.com/apps/\" target=\"_blank\" rel=\"noopener noreferrer\">Meine App</a> erstellen.",
"descriptionGetKeys": "Dann haben Sie Zugriff auf zwei Schlüssel: \"Kunden-ID\" und \"Kundengeheimnis\", die Sie unten kopieren können.",
"descriptionScopeInformation": "Wenn Sie Gladys mit Ihrer dedizierten Netatmo-App verbinden, erteilen Sie ihr die Berechtigung, auf Ihre Daten zum Lesen und Schreiben zuzugreifen (genannt Scopes \"read\" und \"write\"). Sie müssen nichts konfigurieren, diese Scopes sind automatisch integriert und werden Ihnen bei der Verbindungsanfrage angezeigt (siehe Dokumentation bei Bedarf). Da Gladys lokal installiert ist, werden keine dieser Daten preisgegeben.",
"titleAdditionalInformation": "Weitere Informationen über die Funktionsweise der \"Energy\"-API:",
"descriptionAdditionalInformation": "Temperaturbefehle werden auf Raumniveau ausgeführt. Daher sind beide Informationen als Funktionen für mehr Kontrolle verfügbar. Wenn Sie andere Temperatursensoren im gleichen Raum wie Ihr Thermostat haben, wird die Durchschnittstemperatur dieses Raums berücksichtigt, um den Heizungssteuerschalter auszulösen."
"descriptionAdditionalInformation": "Temperaturbefehle werden auf Raumniveau ausgeführt. Daher sind beide Informationen als Funktionen für mehr Kontrolle verfügbar. Wenn Sie andere Temperatursensoren im gleichen Raum wie Ihr Thermostat haben, wird die Durchschnittstemperatur dieses Raums berücksichtigt, um den Heizungssteuerschalter auszulösen.",
"clientIdLabel": "Kunden-ID",
"clientIdPlaceholder": "Kunden-ID von My Apps in Netatmo Connect",
"clientSecretLabel": "Kundengeheimnis",
"clientSecretPlaceholder": "Kundengeheimnis von My Apps in Netatmo Connect",
"connectionInfoLabel": "Wenn Sie diese Informationen ändern, ist ein neues Token erforderlich. Durch das Trennen der Verbindung wird auch Ihr Zugriffstoken gelöscht. Wenn Sie auf diese Schaltflächen klicken, wird daher eine neue Verbindungsanfrage an die Netatmo-API gestellt.",
"saveLabel": "Speichern und verbinden",
"disconnectLabel": "Trennen"
},
"error": {
"defaultError": "Ein Fehler ist bei der Registrierung des Geräts aufgetreten.",
Expand Down
30 changes: 13 additions & 17 deletions front/src/config/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,6 @@
"setupTab": "Setup",
"documentation": "Netatmo Documentation",
"discoverDeviceDescr": "Automatically scan Netatmo devices",
"unmanagedModelButton": "Model not supported or unavailable",
"status": {
"notConfigured": "The Netatmo service is not configured",
"disconnect": "Gladys is not connected to Netatmo",
Expand All @@ -528,7 +527,6 @@
"processingToken": "Connecting to your Netatmo account... Retrieving access token.",
"getDevicesValues": "Data recovery in progress...",
"dicoveringDevices": "Device recovery in progress...",
"connectionError": "Error during connection, please check your configuration.",
"errorConnecting": {
"other_error": "Error during authorization. You can inspect the error in your browser's console with a right click. If the error persists, please post the logs on the forum.",
"access_denied": "Authorization declined, please try again and accept the request for access to your data.",
Expand All @@ -545,16 +543,12 @@
"namePlaceholder": "Enter your device name",
"modelLabel": "Model",
"roomLabel": "Room",
"connectedPlugLabel": "Connected to bridge",
"roomNetatmoApiLabel": "Room in Netatmo API",
"featuresLabel": "Features",
"saveButton": "Save",
"updateButton": "Update",
"editButton": "Edit",
"deleteButton": "Delete",
"unmanagedModelButton": "Unsupported model",
"noValueReceived": "No value received.",
"firmwareRevisionLabel": "Firmware: ",
"connectedPlugLabel": "Connected to bridge",
"roomNetatmoApiLabel": "Room in Netatmo API"
"noValueReceived": "No value received."
},
"discover": {
"title": "Your Netatmo Devices Compatible with Gladys",
Expand All @@ -563,25 +557,27 @@
"descriptionInformation": "State retrieval is currently done every 2 minutes (Netatmo API limitation).",
"noDeviceFound": "No Netatmo devices were found. If you own a Netatmo Thermostat, have you completed all the steps in the documentation to register your devices on the Netatmo API?",
"alreadyCreatedButton": "Already Created",
"unmanagedModelButton": "Unsupported model",
"updateButton": "Update",
"scan": "Scan",
"refresh": "Refresh"
},
"setup": {
"title": "Netatmo Setup",
"clientIdLabel": "Client ID",
"clientIdPlaceholder": "Client ID from My Apps in Netatmo Connect",
"clientSecretLabel": "Client Secret",
"clientSecretPlaceholder": "Client secret from My Apps in Netatmo Connect",
"saveLabel": "Save and connect",
"connectionInfoLabel": "When you change this information, a new token is required. Disconnecting will also erase your access token. A new connection request will therefore be made to the Netatmo API when you click on these buttons.",
"disconnectLabel": "Disconnect",
"description": "You can connect Gladys to your Netatmo account to control the associated devices.",
"descriptionCreateAccount": "You need to create an account on <a href=\"https://auth.netatmo.com/en-us/access/login\" target=\"_blank\" rel=\"noopener noreferrer\">Netatmo Connect</a>.",
"descriptionCreateProject": "You will then need to create an \"application\" in your Netatmo developer account via the <a href=\"https://dev.netatmo.com/apps/\" target=\"_blank\" rel=\"noopener noreferrer\">My App</a>.",
"descriptionGetKeys": "You will then have access to two keys: \"client ID\" and \"client secret\" to copy below.",
"descriptionScopeInformation": "When you connect Gladys to your dedicated Netatmo App, you grant it permission to access your data in read and write modes (referred to as \"read\" and \"write\" scopes). You don't have to configure anything, these scopes are automatically integrated and will be presented to you during the connection request (see documentation if needed). Of course, since Gladys is installed locally, none of these data is exposed.",
"titleAdditionalInformation": "Additional Information on the Operation of the \"Energy\" API:",
"descriptionAdditionalInformation": "Temperature commands are performed at the room level. Therefore, both pieces of information are available as features for more control. If you have other temperature sensors in the same room as your Thermostat, it's the average temperature of that room that will be considered to trigger the heating control switch."
"descriptionAdditionalInformation": "Temperature commands are performed at the room level. Therefore, both pieces of information are available as features for more control. If you have other temperature sensors in the same room as your Thermostat, it's the average temperature of that room that will be considered to trigger the heating control switch.",
"clientIdLabel": "Client ID",
"clientIdPlaceholder": "Client ID from My Apps in Netatmo Connect",
"clientSecretLabel": "Client Secret",
"clientSecretPlaceholder": "Client secret from My Apps in Netatmo Connect",
"connectionInfoLabel": "When you change this information, a new token is required. Disconnecting will also erase your access token. A new connection request will therefore be made to the Netatmo API when you click on these buttons.",
"saveLabel": "Save and connect",
"disconnectLabel": "Disconnect"
},
"error": {
"defaultError": "An error occurred while registering the device.",
Expand Down
30 changes: 13 additions & 17 deletions front/src/config/i18n/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,6 @@
"setupTab": "Configuration",
"documentation": "Documentation Netatmo",
"discoverDeviceDescr": "Scanner automatiquement les appareils Netatmo",
"unmanagedModelButton": "Modèle non pris en charge ou non disponible",
"status": {
"notConfigured": "Le service Netatmo n'est pas configuré",
"disconnect": "Gladys n'est pas connectée à Netatmo",
Expand All @@ -656,7 +655,6 @@
"processingToken": "Connexion à votre compte Netatmo... Récupération du token d'accès.",
"getDevicesValues": "Récupération des données en cours...",
"dicoveringDevices": "Récupération des appareils en cours...",
"connectionError": "Erreur lors de la connexion, veuillez vérifier votre configuration.",
"errorConnecting": {
"other_error": "Erreur lors de l'authorisation. Vous pouvez inspecter par un clique droit l'erreur dans la console de votre navigateur. Si l'erreur persiste, veuillez poster les logs sur le forum.",
"access_denied": "Autorisation déclinée, Veuillez tenter de nouveau et accepter la demande d'accès à vos données.",
Expand All @@ -673,16 +671,12 @@
"namePlaceholder": "Entrez le nom de votre appareil",
"modelLabel": "Modèle",
"roomLabel": "Pièce",
"connectedPlugLabel": "Connecté au pont",
"roomNetatmoApiLabel": "Pièce dans l'API Netatmo",
"featuresLabel": "Fonctionnalités",
"saveButton": "Sauvegarder",
"updateButton": "Mettre à jour",
"editButton": "Editer",
"deleteButton": "Supprimer",
"unmanagedModelButton": "Modèle non pris en charge",
"noValueReceived": "Aucune valeur reçue.",
"firmwareRevisionLabel": "Firmware: ",
"connectedPlugLabel": "Connecté au pont",
"roomNetatmoApiLabel": "Pièce dans l'API Netatmo"
"noValueReceived": "Aucune valeur reçue."
},
"discover": {
"title": "Vos appareils Netatmo compatibles avec Gladys",
Expand All @@ -691,25 +685,27 @@
"descriptionInformation": "La récupération des états se fait actuellement toutes les 2 minutes (limitation de l'API Netatmo).",
"noDeviceFound": "Aucun appareil Netatmo n'a été trouvé. Si vous possédez un Thermostat Netatmo, avez-vous bien réalisé toutes les étapes de la documentation pour enregistrer vos appareils sur l'API Netatmo ?",
"alreadyCreatedButton": "Déjà créé",
"updateButton": "Mettre à jour",
"unmanagedModelButton": "Modèle non pris en charge",
"scan": "Scanner",
"refresh": "Rafraîchir"
},
"setup": {
"title": "Configuration Netatmo",
"clientIdLabel": "Identifiant client",
"clientIdPlaceholder": "client ID de My Apps dans Netatmo Connect",
"clientSecretLabel": "Secret client",
"clientSecretPlaceholder": "client secret de My Apps dans Netatmo Connect",
"saveLabel": "Sauvegarder et connecter",
"connectionInfoLabel": "Lorsque vous modifiez ces informations, un nouveau jeton est requis. La déconnexion effacera également votre jeton d’accès. Une nouvelle demande de connexion sera donc faite à l'API Netatmo lorsque vous cliquerez sur ces boutons.",
"disconnectLabel": "Déconnecter",
"description": "Vous pouvez connecter Gladys à votre compte Netatmo pour commander les appareils associés.",
"descriptionCreateAccount": "Vous avez besoin de créer un compte sur <a href=\"https://auth.netatmo.com/fr-fr/access/login\" target=\"_blank\" rel=\"noopener noreferrer\">Netatmo Connect</a>.",
"descriptionCreateProject": "Vous devrez ensuite créer une \"application\" dans votre compte développeur Netatmo via le menu <a href=\"https://dev.netatmo.com/apps/\" target=\"_blank\" rel=\"noopener noreferrer\">My App</a>.",
"descriptionGetKeys": "Vous aurez alors accès aux deux clés : \"client ID\" et \"client secret\" à copier ci-dessous.",
"descriptionScopeInformation": "Lorsque vous connectez Gladys à votre App Netatmo dédiée, vous lui donnez l'autorisation d'accéder à vos données en lecture et en écriture (appelé scopes \"read\" et \"write\"). Vous n'avez rien à configuré, ces scopes sont automatiquement intégrés et vous serons exposés lors de la demande de connexion (voir documentation au besoin). Bien entendu, Gladys étant installée en local, aucune de ces données ne se retrouve exposées.",
"titleAdditionalInformation": "Informations complémentaires sur le fonctionnement de l'API \"Energy\" :",
"descriptionAdditionalInformation": "Les commandes de températures sont effectuées au niveau de la pièce. Les 2 informations sont donc disponibles en fonctionnalités pour plus de contrôle. Si vous possédez d'autres capteurs de température dans la même pièce que votre Thermostat, c'est la température moyenne de cette pièce qui sera prise en compte pour déclencher le commutateur de contrôle de chauffe."
"descriptionAdditionalInformation": "Les commandes de températures sont effectuées au niveau de la pièce. Les 2 informations sont donc disponibles en fonctionnalités pour plus de contrôle. Si vous possédez d'autres capteurs de température dans la même pièce que votre Thermostat, c'est la température moyenne de cette pièce qui sera prise en compte pour déclencher le commutateur de contrôle de chauffe.",
"clientIdLabel": "Identifiant client",
"clientIdPlaceholder": "client ID de My Apps dans Netatmo Connect",
"clientSecretLabel": "Secret client",
"clientSecretPlaceholder": "client secret de My Apps dans Netatmo Connect",
"connectionInfoLabel": "Lorsque vous modifiez ces informations, un nouveau jeton est requis. La déconnexion effacera également votre jeton d’accès. Une nouvelle demande de connexion sera donc faite à l'API Netatmo lorsque vous cliquerez sur ces boutons.",
"saveLabel": "Sauvegarder et connecter",
"disconnectLabel": "Déconnecter"
},
"error": {
"defaultError": "Une erreur s'est produite lors de l'enregistrement de l'appareil.",
Expand Down
4 changes: 2 additions & 2 deletions front/src/routes/integration/all/netatmo/NetatmoDeviceBox.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ class NetatmoDeviceBox extends Component {

{validModel && updateButton && (
<button onClick={this.saveDevice} class="btn btn-success mr-2">
<Text id="integration.netatmo.device.updateButton" />
<Text id="integration.netatmo.discover.updateButton" />
</button>
)}

Expand All @@ -353,7 +353,7 @@ class NetatmoDeviceBox extends Component {
{!validModel && (
<div>
<div class="alert alert-warning">
<Text id="integration.netatmo.device.unmanagedModelButton" />
<Text id="integration.netatmo.discover.unmanagedModelButton" />
</div>
<a class="btn btn-gray" href={createGithubUrl(device)} target="_blank" rel="noopener noreferrer">
<Text id="integration.philipsHue.device.createGithubIssue" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class DeviceTab extends Component {
<StateConnection {...props} />
<div class="alert alert-secondary">
<p>
<MarkupText id="integration.netatmo.discover.descriptionInformation" />
<MarkupText id="integration.netatmo.device.descriptionInformation" />
</p>
</div>
<div class="row">
Expand Down

0 comments on commit 3085995

Please sign in to comment.