From 95b582f8acd929fb3d3841935888a292f3a7be8c Mon Sep 17 00:00:00 2001 From: hueso Date: Tue, 16 Dec 2025 13:51:12 -0300 Subject: [PATCH] spanish translations --- watch-faces/clock/close_enough_face.c | 22 +++++++++++----------- watch-library/shared/watch/watch_utility.c | 4 ++-- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/watch-faces/clock/close_enough_face.c b/watch-faces/clock/close_enough_face.c index cde6d28e..026f3f48 100644 --- a/watch-faces/clock/close_enough_face.c +++ b/watch-faces/clock/close_enough_face.c @@ -40,20 +40,20 @@ static const char *words[12] = { " ", " 5", "10", - "15", + "CU", "20", - "25", - "30", - "35", + "Me", + "ME", + "mE", "40", "45", "50", "55", }; -static const char *past_word = " P"; -static const char *to_word = " 2"; -static const char *oclock_word = "OC"; +static const char *past_word = " y"; +static const char *to_word = " -"; +static const char *oclock_word = "EP"; // sets when in the five minute period we switch // from "X past HH" to "X to HH+1" @@ -189,14 +189,14 @@ bool close_enough_face_loop(movement_event_t event, void *context) { char second_word[3]; char third_word[3]; if (five_minute_period == 0) { // " HH OC", - sprintf(first_word, " "); - sprintf(second_word, "%2d", close_enough_hour); + sprintf(first_word, "%2d", close_enough_hour); + sprintf(second_word, " "); strncpy(third_word, oclock_word, 3); } else { // "MM P HH" or "MM 2 HH+1" int words_length = sizeof(words) / sizeof(words[0]); strncpy( - first_word, + third_word, show_next_hour ? words[words_length - five_minute_period] : words[five_minute_period], @@ -207,7 +207,7 @@ bool close_enough_face_loop(movement_event_t event, void *context) { show_next_hour ? to_word : past_word, 3 ); - sprintf(third_word, "%2d", close_enough_hour); + sprintf(first_word, "%2d", close_enough_hour); } watch_display_text_with_fallback( diff --git a/watch-library/shared/watch/watch_utility.c b/watch-library/shared/watch/watch_utility.c index 7179aa72..9d1c444e 100644 --- a/watch-library/shared/watch/watch_utility.c +++ b/watch-library/shared/watch/watch_utility.c @@ -28,12 +28,12 @@ #include "zones.h" const char * watch_utility_get_weekday(watch_date_time_t date_time) { - static const char weekdays[7][3] = {"MO", "TU", "WE", "TH", "FR", "SA", "SU"}; + static const char weekdays[7][3] = {"LU", "MA", "MI", "JU", "VI", "SA", "do"}; return weekdays[watch_utility_get_iso8601_weekday_number(date_time.unit.year + WATCH_RTC_REFERENCE_YEAR, date_time.unit.month, date_time.unit.day) - 1]; } const char * watch_utility_get_long_weekday(watch_date_time_t date_time) { - static const char weekdays[7][4] = {"MON", "TUE", "WED", "THU", "FRI", "SAT", "SUN"}; + static const char weekdays[7][4] = {"LUN", "MAR", "MIE", "JUE", "VIE", "SAB", "DOM"}; return weekdays[watch_utility_get_iso8601_weekday_number(date_time.unit.year + WATCH_RTC_REFERENCE_YEAR, date_time.unit.month, date_time.unit.day) - 1]; }