Skip to content

Commit

Permalink
Fix: Make Advanced Settings Text Translatable #17220
Browse files Browse the repository at this point in the history
Updated so translations are now stored in config.general
  • Loading branch information
zigad committed Nov 12, 2024
1 parent 8ac470f commit c9c6077
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 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">{{ $t("config.mqtt.hideAdvancedSettings") }}</span>
<span v-else>{{ $t("config.mqtt.showAdvancedSettings") }}</span>
<span v-if="open">{{ $t("config.general.hideAdvancedSettings") }}</span>
<span v-else>{{ $t("config.general.showAdvancedSettings") }}</span>
<DropdownIcon class="icon" :class="{ iconUp: open }" />
</button>

Expand Down
4 changes: 2 additions & 2 deletions i18n/de.toml
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,14 @@ optional = "optional"
cancel = "Abbrechen"
docsLink = "Siehe Dokumentation."
experimental = "Experimentell"
hideAdvancedSettings = "Erweiterte einstellungen ausblenden"
off = "aus"
on = "an"
password = "Passwort"
readFromFile = "Aus Datei lesen"
remove = "Entfernen"
save = "Speichern"
showAdvancedSettings = "Erweiterte einstellungen anzeigen"
telemetry = "Telemetrie"
title = "Titel"

Expand Down Expand Up @@ -156,7 +158,6 @@ 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 @@ -168,7 +169,6 @@ labelPassword = "Passwort"
labelTopic = "Thema"
labelUser = "Benutzer"
publishing = "Veröffentlichen"
showAdvancedSettings = "Erweiterte einstellungen anzeigen"
title = "MQTT"

[config.network]
Expand Down
4 changes: 2 additions & 2 deletions i18n/en.toml
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,14 @@ optional = "optional"
cancel = "Cancel"
docsLink = "See documentation."
experimental = "Experimental"
hideAdvancedSettings = "Hide advanced settings"
off = "off"
on = "on"
password = "Password"
readFromFile = "Read from file"
remove = "Remove"
save = "Save"
showAdvancedSettings = "Show advanced settings"
telemetry = "Telemetry"
title = "Title"

Expand Down Expand Up @@ -155,7 +157,6 @@ 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 @@ -167,7 +168,6 @@ labelPassword = "Password"
labelTopic = "Topic"
labelUser = "Username"
publishing = "Publishing"
showAdvancedSettings = "Show advanced settings"
title = "MQTT"

[config.network]
Expand Down

0 comments on commit c9c6077

Please sign in to comment.