From 81ebf7e302ecd3bd37b73f783e166ff0e30044c8 Mon Sep 17 00:00:00 2001 From: edisondeng Date: Fri, 31 Jul 2026 19:35:21 +0800 Subject: [PATCH] feat(i18n): add weekday abbreviation strings, remove static date text Replaces the fixed placeholder STR_CLOCK_DATE ("VEN 10-07"/"FRI 10-07") with 7 weekday abbreviation strings (FR/EN), ordered Sunday-Saturday to align with current_weekday's 0-6 convention for direct indexing (STR_WEEKDAY_SUN + current_weekday). --- App/strings.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/App/strings.h b/App/strings.h index e146f6f..f9a0b23 100644 --- a/App/strings.h +++ b/App/strings.h @@ -56,7 +56,14 @@ DEFINE_STRING(BIND_SENDING, "ENVOI EN COURS", "SENDING...") \ /* ---- 时钟页公共元素 ---- */ \ DEFINE_STRING(CLOCK_AMPM, "AM", "AM") \ - DEFINE_STRING(CLOCK_DATE, "VEN 10-07", "FRI 10-07") + /* ---- 星期缩写 (顺序必须是周日~周六,与 current_weekday 的 0~6 对齐,取用时按 STR_WEEKDAY_SUN + current_weekday 直接索引,顺序不能打乱) ---- */ \ + DEFINE_STRING(WEEKDAY_SUN, "DIM", "SUN") \ + DEFINE_STRING(WEEKDAY_MON, "LUN", "MON") \ + DEFINE_STRING(WEEKDAY_TUE, "MAR", "TUE") \ + DEFINE_STRING(WEEKDAY_WED, "MER", "WED") \ + DEFINE_STRING(WEEKDAY_THU, "JEU", "THU") \ + DEFINE_STRING(WEEKDAY_FRI, "VEN", "FRI") \ + DEFINE_STRING(WEEKDAY_SAT, "SAM", "SAT") typedef enum { WRISTBAND_STRING_LIST