Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bugfix spanish layout #504

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

Conversation

isanch
Copy link

@isanch isanch commented Jan 4, 2025

Hello,
I've implemented the clock in its Spanish version. There is a minor bug regarding the Spanish hours in the clockWork.hpp.

  • The clock was not displaying "Es la una " (es_ist___plural___) for hour = 1, because the hour modulo was calculated in the first if statement of DetermineWhichTimeItIs. This was fixed by taking it out of the statement.
  • The clock should display "Es la una" for times >12:34 and < 13:35. Fixed by passing the minutes to DetermineWhichTimeItIs.

The code was tested with a ESP8266. It worked without problems.

isanch added 4 commits January 4, 2025 12:05
Issue: The Spanish layout was not displaying "Es la una" (es_ist___plural___). Corrected by adding hour%12 outside the first if statement.

Addition: "Es la una..." should be displayed for times >12:34 and < 13:35.
Corrected by passing the minutes to the DetermineWhichIsToShow function and adding the corresponding if statement.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant