From ebe8da774800d83651194dd30d6473664a14eeb2 Mon Sep 17 00:00:00 2001 From: Steve Wong Date: Mon, 22 Jul 2024 23:01:22 +0000 Subject: [PATCH] error message --- sentences/zh-hk/_common.yaml | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/sentences/zh-hk/_common.yaml b/sentences/zh-hk/_common.yaml index 01c1987901..cd07b2afdb 100644 --- a/sentences/zh-hk/_common.yaml +++ b/sentences/zh-hk/_common.yaml @@ -4,7 +4,7 @@ settings: responses: errors: # General errors - no_intent: "對唔住,我聽不明白" + no_intent: "對唔住,我聽唔明白" handle_error: "處理時發生意外錯誤" # Errors for when user is not logged in @@ -22,6 +22,17 @@ responses: entity_wrong_state: "唔好意思,無實體狀況係 {{ state | lower }}" feature_not_supported: "唔好意思,無設備支援所需的功能" + # Errors for when user is logged in and we can give more information + no_entity_exposed: "唔好意思, {{ entity }} 無暴露" + no_entity_in_area_exposed: "唔好意思, {{ entity }} 係 {{ area }} 地區 無暴露" + no_entity_in_floor_exposed: "唔好意思, {{ entity }} 係 {{ floor }} 樓層 無暴露" + no_domain_exposed: "唔好意思, 無 {{ domain }} 暴露" + no_domain_in_area_exposed: "唔好意思, 無 {{ domain }} 係 {{ area }} 地區 暴露" + no_domain_in_floor_exposed: "唔好意思, 無 {{ domain }} 係 {{ floor }} 樓層 暴露" + no_device_class_exposed: "唔好意思, 無 {{ device_class }} 暴露" + no_device_class_in_area_exposed: "唔好意思, 無 {{ device_class }} 係 {{ area }} 地區 暴露" + no_device_class_in_floor_exposed: "唔好意思, 無 {{ device_class }} 係 {{ floor }} 樓層 暴露" + # Errors for timers timer_not_found: "唔好意思,找不到那個計時器" multiple_timers_matched: "唔好意思,我無法定位多個計時器" @@ -48,34 +59,40 @@ lists: out: "black" - in: "棕色" out: "brown" + brightness: range: type: "percentage" from: 0 to: 100 + temperature: range: type: "temperature" from: 0 to: 100 + temperature_unit: values: - in: "c|攝氏|度|度攝氏|°C|℃" out: "celsius" - in: "f|華氏|度|度華氏|°F|℉" out: "fahrenheit" + brightness_level: values: - in: "(最大|最光|最高|最亮)" out: 100 - in: "(最小|最暗|最低|最黑)" out: 1 + on_off_states: values: - in: "(打開|開著|開了|開咗|開)[的]" out: "on" - in: "(關閉|關著|關了|關咗|閂咗|閂)[的]" out: "off" + on_off_domains: values: - in: "(燈|天花燈|筒燈|射燈|檯燈|床頭燈|燈光)" @@ -84,6 +101,7 @@ lists: out: fan - in: "(開關|開關制|電源|插座|通斷器)" out: switch + cover_states: values: - in: "(打開|開著|開了|開咗|打開)[的|咗]" @@ -94,6 +112,7 @@ lists: out: opening - in: "關閉緊" out: closing + cover_classes: values: - in: "(遮陽|雨)(蓬|棚)" @@ -135,20 +154,24 @@ lists: range: from: 1 to: 100 + timer_minutes: range: from: 1 to: 100 + timer_hours: range: from: 1 to: 100 + timer_half: values: - in: "半" out: 30 - in: "1/2" out: 30 + timer_5minute: values: - in: "一個字" @@ -171,8 +194,10 @@ lists: out: 50 - in: "十一個字" out: 55 + timer_name: wildcard: true + timer_command: wildcard: true