缩短 Studio 叠字与重复说明,色标只保留量程

去掉 depth_empty 与无用选区峰值文案,并修正「视图 → 分析视频」。已用 locale 单测与 depth_scale_text 核对;含证据录制的 wiring 用例本机跳过。
This commit is contained in:
ykcheungab
2026-10-08 15:41:30 +08:00
parent 48624dec99
commit f2bbab76a6
5 changed files with 56 additions and 69 deletions
+6 -5
View File
@@ -1527,17 +1527,18 @@ def test_the_nothing_to_draw_line_names_the_action_that_produces_a_result():
assert seen["zh_CN"] != seen["en_US"]
def test_the_empty_depth_note_is_not_the_missing_depth_note():
"""Both locales keep the two apart: a flat map is a reading, an absent one is not."""
def test_depth_unavailable_is_a_short_absent_note():
"""Both locales say the frame has no depth, without explaining zero vs absent."""
from orisys_app_shared.i18n import set_locale
try:
for locale in ("zh_CN", "en_US"):
set_locale(locale)
empty = t("panels.depth_empty", pixels=84000)
absent = t("panels.depth_unavailable")
assert "84000" in empty or "84,000" in empty, empty
assert empty != absent
assert absent
assert "\n" not in absent, absent
scale = t("panels.depth_scale", low="0.000", high="1.000")
assert scale != absent
finally:
set_locale("zh_CN")