From 619e08578e178a687581b44e9a0ea38828e869b5 Mon Sep 17 00:00:00 2001 From: Rick Lan Date: Fri, 14 Nov 2025 16:21:00 +0800 Subject: [PATCH] multilang: Remove speed unit ("km/h", "mph") from translation strings --- selfdrive/ui/onroad/hud_renderer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/ui/onroad/hud_renderer.py b/selfdrive/ui/onroad/hud_renderer.py index a2459c27e21f2c..fd1862eac7872b 100644 --- a/selfdrive/ui/onroad/hud_renderer.py +++ b/selfdrive/ui/onroad/hud_renderer.py @@ -174,7 +174,7 @@ def _draw_current_speed(self, rect: rl.Rectangle) -> None: speed_pos = rl.Vector2(rect.x + rect.width / 2 - speed_text_size.x / 2, 180 - speed_text_size.y / 2) rl.draw_text_ex(self._font_bold, speed_text, speed_pos, FONT_SIZES.current_speed, 0, COLORS.white) - unit_text = tr("km/h") if ui_state.is_metric else tr("mph") + unit_text = "km/h" if ui_state.is_metric else "mph" unit_text_size = measure_text_cached(self._font_medium, unit_text, FONT_SIZES.speed_unit) unit_pos = rl.Vector2(rect.x + rect.width / 2 - unit_text_size.x / 2, 290 - unit_text_size.y / 2) rl.draw_text_ex(self._font_medium, unit_text, unit_pos, FONT_SIZES.speed_unit, 0, COLORS.white_translucent)