Add Traditional Chinese localization and Quiet Hours feature#13
Open
owovouo wants to merge 9 commits intoCodeZeno:mainfrom
Open
Add Traditional Chinese localization and Quiet Hours feature#13owovouo wants to merge 9 commits intoCodeZeno:mainfrom
owovouo wants to merge 9 commits intoCodeZeno:mainfrom
Conversation
|
Hah, I've completely missed that =) feel free to close #14 then. |
Replace preset quiet hours selection with a custom HH:MM input dialog, allowing users to set any start/end time for quiet hours.
Fix non-reentrant mutex deadlock where MoveWindow dispatches WM_PAINT synchronously, causing wnd_proc to re-enter lock_state() on the same thread. Credit: aa333 (PR CodeZeno#14)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Shows a green zone between actual usage and expected usage based on elapsed time within the 5h/7d rolling windows. Updated at each poll interval so the indicator grows in discrete steps matching the chosen update frequency. Toggle via Settings > Show Pacing Indicator. Also add Win32_System_SystemInformation feature (required for GetLocalTime) and TIMER_QUIET_BOUNDARY constant to native_interop. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Green pacing zone is now suppressed in both render paths when quiet hours are active, consistent with the quiet-hours design intent of pausing all live activity indicators.
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
Two independent improvements bundled in one PR:
zh-TW) localization — adds full UI string translations following the same pattern as the existing Japanese and Korean localizationsChanges
Traditional Chinese
src/localization/traditional_chinese.rs— new file with all UI strings translated into Traditional Chinesesrc/localization/mod.rs— addedTraditionalChinesevariant toLanguageId, wired upstrings(),code()("zh-TW"),native_name()("繁體中文"), andupdate_via_winget_label(); locale detection mapszh-TW,zh-HK, andzh-Hantto Traditional Chinese (Simplified Chinese falls back to system default)Quiet Hours
src/window.rs— addedquiet_hours_enabled,quiet_hours_start,quiet_hours_endfields toAppStateandSettingsFile(persisted to JSON); default window is 22:00–08:00; overnight ranges (start > end) are handled correctly; Quiet Hours submenu added to system tray for toggle + hour selection; widget label shows localized "Quiet Hours" string when activequiet_hours,quiet_start,quiet_endBehavior (Quiet Hours)
Notes
zh-TW