From 74a57e86768b79ce95ebf9c581666f3be5799e33 Mon Sep 17 00:00:00 2001 From: Jan Rieger Date: Tue, 12 Sep 2023 19:44:31 +0200 Subject: [PATCH] Use more common translations (#100135) --- homeassistant/components/bosch_shc/strings.json | 3 +++ homeassistant/components/climate/strings.json | 4 ++-- homeassistant/components/co2signal/strings.json | 2 +- homeassistant/components/dlink/strings.json | 12 +++++++++--- homeassistant/components/forecast_solar/strings.json | 2 +- .../homeassistant_sky_connect/strings.json | 2 +- .../components/homeassistant_yellow/strings.json | 2 +- homeassistant/components/hue/strings.json | 2 +- homeassistant/components/humidifier/strings.json | 4 ++-- homeassistant/components/jvc_projector/strings.json | 2 +- homeassistant/components/kodi/strings.json | 4 ++-- homeassistant/components/lawn_mower/strings.json | 2 +- homeassistant/components/mikrotik/strings.json | 2 +- homeassistant/components/netgear/strings.json | 4 ++-- homeassistant/components/octoprint/strings.json | 4 ++-- homeassistant/components/plugwise/strings.json | 3 +++ homeassistant/components/ps4/strings.json | 2 +- homeassistant/components/qnap/strings.json | 12 ++++++------ homeassistant/components/shelly/strings.json | 2 +- homeassistant/components/subaru/strings.json | 2 +- homeassistant/components/text/strings.json | 4 ++-- homeassistant/components/tibber/strings.json | 2 +- homeassistant/components/vulcan/strings.json | 8 ++++---- 23 files changed, 49 insertions(+), 37 deletions(-) diff --git a/homeassistant/components/bosch_shc/strings.json b/homeassistant/components/bosch_shc/strings.json index 67462b78bec32a..90688e1373ff5d 100644 --- a/homeassistant/components/bosch_shc/strings.json +++ b/homeassistant/components/bosch_shc/strings.json @@ -10,6 +10,9 @@ }, "credentials": { "data": { + "password": "[%key:common::config_flow::data::password%]" + }, + "data_description": { "password": "Password of the Smart Home Controller" } }, diff --git a/homeassistant/components/climate/strings.json b/homeassistant/components/climate/strings.json index c517bfd7a20b06..55ccef2bc76254 100644 --- a/homeassistant/components/climate/strings.json +++ b/homeassistant/components/climate/strings.json @@ -66,7 +66,7 @@ "heating": "Heating", "cooling": "Cooling", "drying": "Drying", - "idle": "Idle", + "idle": "[%key:common::state::idle%]", "fan": "Fan" } }, @@ -93,7 +93,7 @@ "away": "Away", "boost": "Boost", "comfort": "Comfort", - "home": "Home", + "home": "[%key:common::state::home%]", "sleep": "Sleep", "activity": "Activity" } diff --git a/homeassistant/components/co2signal/strings.json b/homeassistant/components/co2signal/strings.json index 01c5673d4b1b11..7dbcd2e7966e89 100644 --- a/homeassistant/components/co2signal/strings.json +++ b/homeassistant/components/co2signal/strings.json @@ -3,7 +3,7 @@ "step": { "user": { "data": { - "location": "Get data for", + "location": "[%key:common::config_flow::data::location%]", "api_key": "[%key:common::config_flow::data::access_token%]" }, "description": "Visit https://electricitymaps.com/free-tier to request a token." diff --git a/homeassistant/components/dlink/strings.json b/homeassistant/components/dlink/strings.json index ee7abb3e97907d..8c60d59fa6b2f5 100644 --- a/homeassistant/components/dlink/strings.json +++ b/homeassistant/components/dlink/strings.json @@ -4,21 +4,27 @@ "user": { "data": { "host": "[%key:common::config_flow::data::host%]", - "password": "Password (default: PIN code on the back)", + "password": "[%key:common::config_flow::data::password%]", "username": "[%key:common::config_flow::data::username%]", "use_legacy_protocol": "Use legacy protocol" + }, + "data_description": { + "password": "Default: PIN code on the back." } }, "confirm_discovery": { "data": { - "password": "[%key:component::dlink::config::step::user::data::password%]", + "password": "[%key:common::config_flow::data::password%]", "username": "[%key:common::config_flow::data::username%]", "use_legacy_protocol": "[%key:component::dlink::config::step::user::data::use_legacy_protocol%]" + }, + "data_description": { + "password": "[%key:component::dlink::config::step::user::data_description::password%]" } } }, "error": { - "cannot_connect": "Failed to connect/authenticate", + "cannot_connect": "[%key:common::config_flow::error::cannot_connect%]", "unknown": "[%key:common::config_flow::error::unknown%]" }, "abort": { diff --git a/homeassistant/components/forecast_solar/strings.json b/homeassistant/components/forecast_solar/strings.json index 1413dba23d4357..201a3cd415ceef 100644 --- a/homeassistant/components/forecast_solar/strings.json +++ b/homeassistant/components/forecast_solar/strings.json @@ -22,7 +22,7 @@ "init": { "description": "These values allow tweaking the Forecast.Solar result. Please refer to the documentation if a field is unclear.", "data": { - "api_key": "Forecast.Solar API Key (optional)", + "api_key": "[%key:common::config_flow::data::api_key%]", "azimuth": "[%key:component::forecast_solar::config::step::user::data::azimuth%]", "damping_morning": "Damping factor: adjusts the results in the morning", "damping_evening": "Damping factor: adjusts the results in the evening", diff --git a/homeassistant/components/homeassistant_sky_connect/strings.json b/homeassistant/components/homeassistant_sky_connect/strings.json index 58fc0180743306..2ed0026a48ce43 100644 --- a/homeassistant/components/homeassistant_sky_connect/strings.json +++ b/homeassistant/components/homeassistant_sky_connect/strings.json @@ -60,7 +60,7 @@ } }, "error": { - "unknown": "[%key:component::homeassistant_hardware::silabs_multiprotocol_hardware::options::error::unknown%]" + "unknown": "[%key:common::config_flow::error::unknown%]" }, "abort": { "addon_info_failed": "[%key:component::homeassistant_hardware::silabs_multiprotocol_hardware::options::abort::addon_info_failed%]", diff --git a/homeassistant/components/homeassistant_yellow/strings.json b/homeassistant/components/homeassistant_yellow/strings.json index 68e87c06024458..894d799d0735e0 100644 --- a/homeassistant/components/homeassistant_yellow/strings.json +++ b/homeassistant/components/homeassistant_yellow/strings.json @@ -82,7 +82,7 @@ } }, "error": { - "unknown": "[%key:component::homeassistant_hardware::silabs_multiprotocol_hardware::options::error::unknown%]" + "unknown": "[%key:common::config_flow::error::unknown%]" }, "abort": { "addon_info_failed": "[%key:component::homeassistant_hardware::silabs_multiprotocol_hardware::options::abort::addon_info_failed%]", diff --git a/homeassistant/components/hue/strings.json b/homeassistant/components/hue/strings.json index 6d65abc8d5f3b3..326d08d1f7a3c2 100644 --- a/homeassistant/components/hue/strings.json +++ b/homeassistant/components/hue/strings.json @@ -31,7 +31,7 @@ "already_configured": "[%key:common::config_flow::abort::already_configured_device%]", "already_in_progress": "[%key:common::config_flow::abort::already_in_progress%]", "not_hue_bridge": "Not a Hue bridge", - "invalid_host": "Invalid host" + "invalid_host": "[%key:common::config_flow::error::invalid_host%]" } }, "device_automation": { diff --git a/homeassistant/components/humidifier/strings.json b/homeassistant/components/humidifier/strings.json index 19a9a8eab77233..1cdad10f2fb14b 100644 --- a/homeassistant/components/humidifier/strings.json +++ b/homeassistant/components/humidifier/strings.json @@ -33,7 +33,7 @@ "state": { "humidifying": "Humidifying", "drying": "Drying", - "idle": "Idle", + "idle": "[%key:common::state::idle%]", "off": "[%key:common::state::off%]" } }, @@ -60,7 +60,7 @@ "away": "Away", "boost": "Boost", "comfort": "Comfort", - "home": "Home", + "home": "[%key:common::state::home%]", "sleep": "Sleep", "auto": "Auto", "baby": "Baby" diff --git a/homeassistant/components/jvc_projector/strings.json b/homeassistant/components/jvc_projector/strings.json index 1f85c20fc72222..6fdc5b4d12f560 100644 --- a/homeassistant/components/jvc_projector/strings.json +++ b/homeassistant/components/jvc_projector/strings.json @@ -29,7 +29,7 @@ "error": { "invalid_host": "[%key:common::config_flow::error::invalid_host%]", "cannot_connect": "[%key:common::config_flow::error::cannot_connect%]", - "invalid_auth": "[%key:component::jvc_projector::config::step::reauth_confirm::description%]" + "invalid_auth": "[%key:common::config_flow::error::invalid_auth%]" } } } diff --git a/homeassistant/components/kodi/strings.json b/homeassistant/components/kodi/strings.json index f7ee375f9902f0..51431b317d6488 100644 --- a/homeassistant/components/kodi/strings.json +++ b/homeassistant/components/kodi/strings.json @@ -43,8 +43,8 @@ }, "device_automation": { "trigger_type": { - "turn_on": "[%key:common::device_automation::action_type::turn_on%]", - "turn_off": "[%key:common::device_automation::action_type::turn_off%]" + "turn_on": "[%key:common::device_automation::trigger_type::turned_on%]", + "turn_off": "[%key:common::device_automation::trigger_type::turned_off%]" } }, "services": { diff --git a/homeassistant/components/lawn_mower/strings.json b/homeassistant/components/lawn_mower/strings.json index caf2e15df779c2..15ed50ca6c5cd3 100644 --- a/homeassistant/components/lawn_mower/strings.json +++ b/homeassistant/components/lawn_mower/strings.json @@ -5,7 +5,7 @@ "name": "[%key:component::lawn_mower::title%]", "state": { "error": "Error", - "paused": "Paused", + "paused": "[%key:common::state::paused%]", "mowing": "Mowing", "docked": "Docked" } diff --git a/homeassistant/components/mikrotik/strings.json b/homeassistant/components/mikrotik/strings.json index ec47d98b7a9f5e..582450eca62b21 100644 --- a/homeassistant/components/mikrotik/strings.json +++ b/homeassistant/components/mikrotik/strings.json @@ -9,7 +9,7 @@ "username": "[%key:common::config_flow::data::username%]", "password": "[%key:common::config_flow::data::password%]", "port": "[%key:common::config_flow::data::port%]", - "verify_ssl": "Use ssl" + "verify_ssl": "[%key:common::config_flow::data::ssl%]" } }, "reauth_confirm": { diff --git a/homeassistant/components/netgear/strings.json b/homeassistant/components/netgear/strings.json index 7941d1fe0a7c6b..f2af3dd7804a99 100644 --- a/homeassistant/components/netgear/strings.json +++ b/homeassistant/components/netgear/strings.json @@ -4,8 +4,8 @@ "user": { "description": "Default host: {host}\nDefault username: {username}", "data": { - "host": "Host (Optional)", - "username": "Username (Optional)", + "host": "[%key:common::config_flow::data::host%]", + "username": "[%key:common::config_flow::data::username%]", "password": "[%key:common::config_flow::data::password%]" } } diff --git a/homeassistant/components/octoprint/strings.json b/homeassistant/components/octoprint/strings.json index 23cdf6ce56ef53..c6dbfe6f9c42f9 100644 --- a/homeassistant/components/octoprint/strings.json +++ b/homeassistant/components/octoprint/strings.json @@ -6,8 +6,8 @@ "data": { "host": "[%key:common::config_flow::data::host%]", "path": "Application Path", - "port": "Port Number", - "ssl": "Use SSL", + "port": "[%key:common::config_flow::data::port%]", + "ssl": "[%key:common::config_flow::data::ssl%]", "verify_ssl": "[%key:common::config_flow::data::verify_ssl%]", "username": "[%key:common::config_flow::data::username%]" } diff --git a/homeassistant/components/plugwise/strings.json b/homeassistant/components/plugwise/strings.json index 2714d657267b29..f85c83819fac04 100644 --- a/homeassistant/components/plugwise/strings.json +++ b/homeassistant/components/plugwise/strings.json @@ -9,6 +9,9 @@ "host": "[%key:common::config_flow::data::ip%]", "port": "[%key:common::config_flow::data::port%]", "username": "Smile Username" + }, + "data_description": { + "host": "Leave empty if using Auto Discovery" } } }, diff --git a/homeassistant/components/ps4/strings.json b/homeassistant/components/ps4/strings.json index 644b2d61216100..163f2cc9b94c0f 100644 --- a/homeassistant/components/ps4/strings.json +++ b/homeassistant/components/ps4/strings.json @@ -7,7 +7,7 @@ "mode": { "data": { "mode": "Config Mode", - "ip_address": "IP address (Leave empty if using Auto Discovery)." + "ip_address": "[%key:common::config_flow::data::ip%]" }, "data_description": { "ip_address": "Leave blank if selecting auto-discovery." diff --git a/homeassistant/components/qnap/strings.json b/homeassistant/components/qnap/strings.json index 64b3f22293aee4..a5fa3c8a8971ff 100644 --- a/homeassistant/components/qnap/strings.json +++ b/homeassistant/components/qnap/strings.json @@ -5,19 +5,19 @@ "title": "Connect to the QNAP device", "description": "This qnap sensor allows getting various statistics from your QNAP NAS.", "data": { - "host": "Hostname", + "host": "[%key:common::config_flow::data::host%]", "username": "[%key:common::config_flow::data::username%]", "password": "[%key:common::config_flow::data::password%]", "port": "[%key:common::config_flow::data::port%]", - "ssl": "Enable SSL", - "verify_ssl": "Verify SSL" + "ssl": "[%key:common::config_flow::data::ssl%]", + "verify_ssl": "[%key:common::config_flow::data::verify_ssl%]" } } }, "error": { - "cannot_connect": "Cannot connect to host", - "invalid_auth": "Bad authentication", - "unknown": "Unknown error" + "cannot_connect": "[%key:common::config_flow::error::cannot_connect%]", + "invalid_auth": "[%key:common::config_flow::error::invalid_auth%]", + "unknown": "[%key:common::config_flow::error::unknown%]" } } } diff --git a/homeassistant/components/shelly/strings.json b/homeassistant/components/shelly/strings.json index 043ff419742d2b..dcdfa6d7987bb0 100644 --- a/homeassistant/components/shelly/strings.json +++ b/homeassistant/components/shelly/strings.json @@ -120,7 +120,7 @@ "valve_status": { "state": { "checking": "Checking", - "closed": "Closed", + "closed": "[%key:common::state::closed%]", "closing": "Closing", "failure": "Failure", "opened": "Opened", diff --git a/homeassistant/components/subaru/strings.json b/homeassistant/components/subaru/strings.json index 5e6db32d4add11..78625192e4a58f 100644 --- a/homeassistant/components/subaru/strings.json +++ b/homeassistant/components/subaru/strings.json @@ -28,7 +28,7 @@ "title": "[%key:component::subaru::config::step::user::title%]", "description": "Please enter your MySubaru PIN\nNOTE: All vehicles in account must have the same PIN", "data": { - "pin": "PIN" + "pin": "[%key:common::config_flow::data::pin%]" } } }, diff --git a/homeassistant/components/text/strings.json b/homeassistant/components/text/strings.json index e6b3d99ced4a5d..82cab559d0e568 100644 --- a/homeassistant/components/text/strings.json +++ b/homeassistant/components/text/strings.json @@ -16,10 +16,10 @@ "name": "Min length" }, "mode": { - "name": "Mode", + "name": "[%key:common::config_flow::data::mode%]", "state": { "text": "Text", - "password": "Password" + "password": "[%key:common::config_flow::data::password%]" } }, "pattern": { diff --git a/homeassistant/components/tibber/strings.json b/homeassistant/components/tibber/strings.json index 2876bf5bd022c3..8306f25f587afd 100644 --- a/homeassistant/components/tibber/strings.json +++ b/homeassistant/components/tibber/strings.json @@ -4,7 +4,7 @@ "already_configured": "[%key:common::config_flow::abort::already_configured_service%]" }, "error": { - "timeout": "Timeout connecting to Tibber", + "timeout": "[%key:common::config_flow::error::timeout_connect%]", "cannot_connect": "[%key:common::config_flow::error::cannot_connect%]", "invalid_access_token": "[%key:common::config_flow::error::invalid_access_token%]" }, diff --git a/homeassistant/components/vulcan/strings.json b/homeassistant/components/vulcan/strings.json index b2b270e3422fc7..07a0510f48231b 100644 --- a/homeassistant/components/vulcan/strings.json +++ b/homeassistant/components/vulcan/strings.json @@ -7,13 +7,13 @@ "no_matching_entries": "No matching entries found, please use different account or remove integration with outdated student.." }, "error": { - "unknown": "Unknown error occurred", - "invalid_token": "Invalid token", + "unknown": "[%key:common::config_flow::error::unknown%]", + "invalid_token": "[%key:common::config_flow::error::invalid_access_token%]", "expired_token": "Expired token - please generate a new token", "invalid_pin": "Invalid pin", "invalid_symbol": "Invalid symbol", "expired_credentials": "Expired credentials - please create new on Vulcan mobile app registration page", - "cannot_connect": "Connection error - please check your internet connection" + "cannot_connect": "[%key:common::config_flow::error::cannot_connect%]" }, "step": { "auth": { @@ -21,7 +21,7 @@ "data": { "token": "Token", "region": "Symbol", - "pin": "Pin" + "pin": "[%key:common::config_flow::data::pin%]" } }, "reauth_confirm": {