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).
This commit is contained in:
@@ -56,7 +56,14 @@
|
|||||||
DEFINE_STRING(BIND_SENDING, "ENVOI EN COURS", "SENDING...") \
|
DEFINE_STRING(BIND_SENDING, "ENVOI EN COURS", "SENDING...") \
|
||||||
/* ---- 时钟页公共元素 ---- */ \
|
/* ---- 时钟页公共元素 ---- */ \
|
||||||
DEFINE_STRING(CLOCK_AMPM, "AM", "AM") \
|
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 {
|
typedef enum {
|
||||||
WRISTBAND_STRING_LIST
|
WRISTBAND_STRING_LIST
|
||||||
|
|||||||
Reference in New Issue
Block a user