Skip to content

Commit

Permalink
[DA] added cancel all timer and test, and change of default wording f…
Browse files Browse the repository at this point in the history
…or timer (#2816)

* [DA] added cancel all timer

* [DA] added cancel all timer test

* [DA] change wording for timer in Danish in Update _common.yaml

"Timer" is not pronounce correctly in Danish, it should be "nedtælling" as the default. First pull request was closed by mistake.

* Update for the test file

* Update for the test file

* Update for the test file

* Added missing empty line

* Added missing blank line

* Added missing blank line

* Update _common.yaml

* Removing extra blank line

* Shoulld fix run problems in tests

* Try fixing timers and tests

* Removing extra (

* Remove singular expression from plural file

* Added missing whitespace in sentence

* Removing full stop dots from response file

* Trying to fix build errors by setting response to singular

* Yet another try to fix the build error for the tests

---------

Co-authored-by: Kim von Müllen <[email protected]>
Co-authored-by: Malene Trab <[email protected]>
  • Loading branch information
3 people authored Jan 20, 2025
1 parent e191d50 commit 480095f
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 4 deletions.
20 changes: 20 additions & 0 deletions responses/da/HassCancelAllTimers.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
language: da
responses:
intents:
HassCancelAllTimers:
default: >
{% if slots.canceled < 1: %}
Ingen nedtælling afbrudt
{% elif slots.canceled == 1: %}
En nedtælling afbrudt
{% else: %}
{{ slots.canceled }} nedtællinger afbrudt
{% endif %}
area: >
{% if slots.canceled < 1: %}
Ingen nedtælling afbrudt i {{ slots.area }}
{% elif slots.canceled == 1: %}
1 nedtælling afbrudt i {{ slots.area }}
{% else: %}
{{ slots.canceled }} nedtællinger afbrudt i {{ slots.area }}
{% endif %}
6 changes: 3 additions & 3 deletions sentences/da/_common.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ responses:
duplicate_entities_in_floor: "Undskyld, er er flere enheder med navnet {{ entity }} på {{ floor }} etage"

# Errors for timers / Fejl for nedtælling
timer_not_found: "Undskyld, den timer kunne jeg ikke finde"
multiple_timers_matched: "Undskyld, jeg kan ikke håndtere flere timer"
no_timer_support: "Undskyld, timer er ikk eunderstøttet på denne enhed"
timer_not_found: "Undskyld, den nedtælling kunne jeg ikke finde"
multiple_timers_matched: "Undskyld, jeg kan ikke håndtere flere nedtællinger"
no_timer_support: "Undskyld, nedtælling er ikke understøttet på denne enhed"

lists:
brightness:
Expand Down
9 changes: 9 additions & 0 deletions sentences/da/homeassistant_HassCancelAllTimers.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
language: "da"
intents:
HassCancelAllTimers:
data:
- sentences:
- "<timer_cancel> <al> [mine] <timers>"
- sentences:
- "<timer_cancel> <al> [mine] <timers> <i_på> <område>"
response: area
2 changes: 1 addition & 1 deletion sentences/da/homeassistant_HassCancelTimer.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
language: da
language: "da"
intents:
HassCancelTimer:
data:
Expand Down
23 changes: 23 additions & 0 deletions tests/da/homeassistant_HassCancelAllTimers.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
language: da
tests:
- sentences:
- "stop alle nedtællinger"
- "afbryd alle nedtællinger"
- "afbryd alle mine nedtællinger"
- "fjern alle nedtællinger"
- "fjern alle mine nedtællinger"
- "slet alle nedtællinger"
- "slet alle mine nedtællinger"
intent:
name: HassCancelAllTimers
response: 3 nedtællinger afbrudt

- sentences:
- "stop alle nedtællinger i køkken"
- "afbryd alle nedtællinger i køkken"
- "fjern alle mine nedtællinger i køkken"
intent:
name: HassCancelAllTimers
slots:
area: Køkken
response: 1 nedtælling afbrudt i køkken

0 comments on commit 480095f

Please sign in to comment.