From f76785b52169159fe2f3d545ee2ceae05bb6e1b0 Mon Sep 17 00:00:00 2001 From: dragonpilot Date: Tue, 12 Nov 2019 13:34:02 +1000 Subject: [PATCH] more translations --- selfdrive/controls/lib/alerts.py | 10 +++++----- selfdrive/ui/ui.cc | 4 ++-- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/selfdrive/controls/lib/alerts.py b/selfdrive/controls/lib/alerts.py index 0337a85f2..ef2e61d15 100644 --- a/selfdrive/controls/lib/alerts.py +++ b/selfdrive/controls/lib/alerts.py @@ -196,7 +196,7 @@ ALERTS = [ Alert( "steerTempUnavailableNoEntry", - "無法使用 openpilot", + "無法使用 dragonpilot", "轉向控制暫時失效", AlertStatus.normal, AlertSize.mid, Priority.LOW, VisualAlert.none, AudibleAlert.chimeError, .4, 0., 3.), @@ -635,8 +635,8 @@ ALERTS = [ Alert( "invalidGiraffeToyotaNoEntry", - "openpilot Unavailable", - "Visit comma.ai/tg", + "無法使用 dragonpilot", + "請瀏覽 comma.ai/tg", AlertStatus.normal, AlertSize.mid, Priority.LOW, VisualAlert.none, AudibleAlert.chimeDisengage, .4, 2., 3.), @@ -740,13 +740,13 @@ ALERTS = [ Priority.LOW, VisualAlert.none, AudibleAlert.none, .0, .1, .1, alert_rate=0.25), Alert( "leadCarMoving", - "Lead Car Is Moving", + "前車移動中,請開始加速", "", AlertStatus.userPrompt, AlertSize.small, Priority.LOW, VisualAlert.steerRequired, AudibleAlert.chimeWarning2, .1, .1, .1), Alert( "leadCarDetected", - "Lead Car Detected", + "偵測到前車,等待中", "", AlertStatus.normal, AlertSize.small, Priority.LOW, VisualAlert.none, AudibleAlert.none, .0, .1, .1, alert_rate=0.25), diff --git a/selfdrive/ui/ui.cc b/selfdrive/ui/ui.cc index 78833794e..fbf5d5a60 100644 --- a/selfdrive/ui/ui.cc +++ b/selfdrive/ui/ui.cc @@ -2688,8 +2688,8 @@ int main(int argc, char* argv[]) { if (s->controls_seen && s->vision_connected && strcmp(s->scene.alert_text2, "Controls Unresponsive") != 0) { s->scene.alert_size = ALERTSIZE_FULL; update_status(s, STATUS_ALERT); - snprintf(s->scene.alert_text1, sizeof(s->scene.alert_text1), "%s", "TAKE CONTROL IMMEDIATELY"); - snprintf(s->scene.alert_text2, sizeof(s->scene.alert_text2), "%s", "Controls Unresponsive"); + snprintf(s->scene.alert_text1, sizeof(s->scene.alert_text1), "%s", "即刻接管控制"); + snprintf(s->scene.alert_text2, sizeof(s->scene.alert_text2), "%s", "操控服務沒有反應"); ui_draw_vision_alert(s, s->scene.alert_size, s->status, s->scene.alert_text1, s->scene.alert_text2); s->alert_sound_timeout = 2 * UI_FREQ;