Skip to content

Commit

Permalink
Update en.json to make all automation conditions use "if", not "when" (
Browse files Browse the repository at this point in the history
…#22883)

* Update en.json to make all automation conditions use "if", not "when"

Fixes the remaining inconsistencies in all conditions defined in HA Frontend.

Especially important as these are prefixed with "Test" in the condition building block of automations and scripts, so they currently result in "Test when …" instead of the correct "Test if …".

* Updated en.json to fix the two wrong lowercase if
  • Loading branch information
NoRi2909 authored Nov 19, 2024
1 parent 42622fe commit 36f3ef9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -2231,7 +2231,7 @@
"name": "Name",
"description": "Description",
"tag_id": "Tag ID",
"tag_id_placeholder": "Autogenerated when left empty",
"tag_id_placeholder": "Autogenerated if left empty",
"delete": "Delete",
"update": "Update",
"create": "Create",
Expand Down Expand Up @@ -3282,9 +3282,9 @@
"value_template": "[%key:ui::panel::config::automation::editor::triggers::type::numeric_state::value_template%]",
"description": {
"picker": "If the numeric value of an entity''s state (or attribute''s value) is above or below a given threshold.",
"above": "When {attribute, select, \n undefined {} \n other {{attribute} from }\n }{entity} {numberOfEntities, plural,\n one {is}\n other {are}\n} above {above}",
"below": "When {attribute, select, \n undefined {} \n other {{attribute} from }\n }{entity} {numberOfEntities, plural,\n one {is}\n other {are}\n} below {below}",
"above-below": "When {attribute, select, \n undefined {} \n other {{attribute} from }\n }{entity} {numberOfEntities, plural,\n one {is}\n other {are}\n} above {above} and below {below}"
"above": "If {attribute, select, \n undefined {} \n other {{attribute} from }\n }{entity} {numberOfEntities, plural,\n one {is}\n other {are}\n} above {above}",
"below": "If {attribute, select, \n undefined {} \n other {{attribute} from }\n }{entity} {numberOfEntities, plural,\n one {is}\n other {are}\n} below {below}",
"above-below": "If {attribute, select, \n undefined {} \n other {{attribute} from }\n }{entity} {numberOfEntities, plural,\n one {is}\n other {are}\n} above {above} and below {below}"
}
},
"or": {
Expand Down Expand Up @@ -3354,7 +3354,7 @@
"id": "Trigger",
"description": {
"picker": "If the automation has been triggered by a specific trigger.",
"full": "When triggered by {id}"
"full": "If triggered by {id}"
}
},
"zone": {
Expand Down Expand Up @@ -3604,7 +3604,7 @@
"set_conversation_response": {
"label": "Set conversation response",
"description": {
"picker": "Set response of conversation when automation was triggered by conversation trigger.",
"picker": "Set response of conversation if automation was triggered by conversation trigger.",
"full": "Set response of conversation to {response}"
}
},
Expand Down

0 comments on commit 36f3ef9

Please sign in to comment.