Feat: translate web interface based on selected language (FR/EN)#8
Closed
Dcomp-commits wants to merge 2 commits into
Closed
Feat: translate web interface based on selected language (FR/EN)#8Dcomp-commits wants to merge 2 commits into
Dcomp-commits wants to merge 2 commits into
Conversation
Adds a weekly scheduler that overrides the general display settings at configurable half-hour intervals. Users define rules (mode, color, color randomization, animation, speed, brightness range) then paint time slots in a 7-day × 24-hour grid (each hour split in two halves). Implementation: - Page_scheduler.h: EEPROM read/write for 336 half-hour slots (7×48×8B), bulk save endpoint, apply-now endpoint, handleScheduler() called from loop() - Page_index.h: scheduler section with rule editor and interactive grid; click/drag to paint slots; single bulk POST to save entire grid at once - Page_style.css.h: scheduler grid and rule list CSS - global.h: SCHEDULER_EEPROM_BASE (1024) and SCHEDULER_SLOT_SIZE (8) defines - TexTime.ino: EEPROM.begin 1024→4096, include + routes + loop call EEPROM usage: existing config ends at ~778; scheduler starts at 1024, uses 2689 bytes (1 header + 336×8). Total: 3713 / 4096 bytes. ESP8266 supports EEPROM.begin() up to 4096 bytes. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Adds a JavaScript i18n system so the entire dashboard UI switches language automatically when the user changes the Language setting. Implementation: - Page_general.h: new /admin/langvalue endpoint returning _config.language - Page_index.h: ~100-key I18N dictionary (FR/EN), data-i18n attributes on all static text elements, T()/applyI18n()/initI18n() helpers; updatelang() now calls applyI18n() immediately; loadGeneralSettings() syncs currentLang after reload; all JS-generated strings (save states, network status, scheduler grid day labels, confirm dialogs) use T() - TexTime.ino: register /admin/langvalue route; fix setAPssid() call (missing APPassword argument) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
12 tasks
Author
|
remplacé par #9 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/admin/langvalue) returns the saved language index; all translation logic runs in the browserImplementation
Page_general.h— newsend_lang_value_html()serving/admin/langvaluePage_index.h—data-i18nattributes on all static text;I18Ndictionary (FR/EN);T()/applyI18n()/initI18n()helpers;updatelang()callsapplyI18n()immediately;loadGeneralSettings()re-syncscurrentLangafter AJAX reload; all JS-generated strings useT()TexTime.ino— registers/admin/langvalue; fixessetAPssid()(missingAPPasswordargument)Test plan
🤖 Generated with Claude Code