Skip to content

Commit

Permalink
Use more common translations (#100135)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrieger authored Sep 12, 2023
1 parent 5021c69 commit 74a57e8
Show file tree
Hide file tree
Showing 23 changed files with 49 additions and 37 deletions.
3 changes: 3 additions & 0 deletions homeassistant/components/bosch_shc/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
},
"credentials": {
"data": {
"password": "[%key:common::config_flow::data::password%]"
},
"data_description": {
"password": "Password of the Smart Home Controller"
}
},
Expand Down
4 changes: 2 additions & 2 deletions homeassistant/components/climate/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"heating": "Heating",
"cooling": "Cooling",
"drying": "Drying",
"idle": "Idle",
"idle": "[%key:common::state::idle%]",
"fan": "Fan"
}
},
Expand All @@ -93,7 +93,7 @@
"away": "Away",
"boost": "Boost",
"comfort": "Comfort",
"home": "Home",
"home": "[%key:common::state::home%]",
"sleep": "Sleep",
"activity": "Activity"
}
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/co2signal/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down
12 changes: 9 additions & 3 deletions homeassistant/components/dlink/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/forecast_solar/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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%]",
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/homeassistant_yellow/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -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%]",
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/hue/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
4 changes: 2 additions & 2 deletions homeassistant/components/humidifier/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"state": {
"humidifying": "Humidifying",
"drying": "Drying",
"idle": "Idle",
"idle": "[%key:common::state::idle%]",
"off": "[%key:common::state::off%]"
}
},
Expand All @@ -60,7 +60,7 @@
"away": "Away",
"boost": "Boost",
"comfort": "Comfort",
"home": "Home",
"home": "[%key:common::state::home%]",
"sleep": "Sleep",
"auto": "Auto",
"baby": "Baby"
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/jvc_projector/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -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%]"
}
}
}
4 changes: 2 additions & 2 deletions homeassistant/components/kodi/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/lawn_mower/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"name": "[%key:component::lawn_mower::title%]",
"state": {
"error": "Error",
"paused": "Paused",
"paused": "[%key:common::state::paused%]",
"mowing": "Mowing",
"docked": "Docked"
}
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/mikrotik/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
4 changes: 2 additions & 2 deletions homeassistant/components/netgear/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -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%]"
}
}
Expand Down
4 changes: 2 additions & 2 deletions homeassistant/components/octoprint/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -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%]"
}
Expand Down
3 changes: 3 additions & 0 deletions homeassistant/components/plugwise/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/ps4/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down
12 changes: 6 additions & 6 deletions homeassistant/components/qnap/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -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%]"
}
}
}
2 changes: 1 addition & 1 deletion homeassistant/components/shelly/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
"valve_status": {
"state": {
"checking": "Checking",
"closed": "Closed",
"closed": "[%key:common::state::closed%]",
"closing": "Closing",
"failure": "Failure",
"opened": "Opened",
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/subaru/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -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%]"
}
}
},
Expand Down
4 changes: 2 additions & 2 deletions homeassistant/components/text/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/tibber/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -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%]"
},
Expand Down
8 changes: 4 additions & 4 deletions homeassistant/components/vulcan/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,21 @@
"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": {
"description": "Login to your Vulcan Account using mobile app registration page.",
"data": {
"token": "Token",
"region": "Symbol",
"pin": "Pin"
"pin": "[%key:common::config_flow::data::pin%]"
}
},
"reauth_confirm": {
Expand Down

0 comments on commit 74a57e8

Please sign in to comment.