Skip to content

Commit

Permalink
Fix: Make Advanced Settings Text Translatable #17220
Browse files Browse the repository at this point in the history
  • Loading branch information
zigad committed Nov 12, 2024
1 parent 651b155 commit 8ac470f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/js/components/Config/PropertyCollapsible.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
type="button"
@click="toggle"
>
<span v-if="open">Hide advanced settings</span>
<span v-else>Show advanced settings</span>
<span v-if="open">{{ $t("config.mqtt.hideAdvancedSettings") }}</span>
<span v-else>{{ $t("config.mqtt.showAdvancedSettings") }}</span>
<DropdownIcon class="icon" :class="{ iconUp: open }" />
</button>

Expand Down
2 changes: 2 additions & 0 deletions i18n/de.toml
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ brokerLabel = "Server"
description = "Verbinde evcc mit einem MQTT-Broker, um Daten mit anderen Systemen in deinem Netzwerk auszutauschen."
descriptionClientId = "Autor der Nachrichten. Wenn leer, wird `evcc-[rand]` verwendet."
descriptionTopic = "Leer lassen, um das Publizieren zu deaktivieren."
hideAdvancedSettings = "Erweiterte einstellungen ausblenden"
labelBroker = "Broker"
labelCaCert = "Serverzertifikat (CA)"
labelCheckInsecure = "Erlaube unsichere Verbindungen"
Expand All @@ -167,6 +168,7 @@ labelPassword = "Passwort"
labelTopic = "Thema"
labelUser = "Benutzer"
publishing = "Veröffentlichen"
showAdvancedSettings = "Erweiterte einstellungen anzeigen"
title = "MQTT"

[config.network]
Expand Down
2 changes: 2 additions & 0 deletions i18n/en.toml
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ authentication = "Authentication"
description = "Connect to an MQTT broker to exchange data with other systems on your network."
descriptionClientId = "Author of the messages. If empty `evcc-[rand]` is used."
descriptionTopic = "Leave empty to disable publishing."
hideAdvancedSettings = "Hide advanced settings"
labelBroker = "Broker"
labelCaCert = "Server certificate (CA)"
labelCheckInsecure = "Allow self-signed certificates"
Expand All @@ -166,6 +167,7 @@ labelPassword = "Password"
labelTopic = "Topic"
labelUser = "Username"
publishing = "Publishing"
showAdvancedSettings = "Show advanced settings"
title = "MQTT"

[config.network]
Expand Down

0 comments on commit 8ac470f

Please sign in to comment.