← 输入框|github.com|刷新
Skip to content

fix(i18n): localize hardcoded layout text and check layouts in CI - #112

Merged
LeanBitLab merged 1 commit into
mainfrom
fix/settings-i18n-a11y
Nov 24, 2026
Merged

LeanBitLab merged 1 commit into
mainfrom
fix/settings-i18n-a11y

Conversation

@LeanBitLab

Copy link
Copy Markdown
Owner

The setup screen and a few settings views had hardcoded English that never went through R.string, and check_strings.py only scanned Kotlin.

  • activity_setup.xml: 9 visible labels (keep alive, battery optimization, calendar events, tasks, step counter, data usage, screen time, weather) now use string resources; 3 new strings added.
  • Search, clear/close search and drag-to-reorder content descriptions now use strings; decorative accordion chevrons are hidden from accessibility instead of carrying hardcoded text.
  • Runtime-overwritten placeholders (Default Settings ▾, Version %s) use tools:text; "by LeanBitLab" is a string.
  • check_strings.py now flags hardcoded text attributes in activity_*.xml and any layout contentDescription. The settings_* row templates and widget_layout* are not scanned.
  • New strings translated in all 10 locales (please review the translations).

Verified: check_strings.py, testDebugUnitTest, lintDebug. Not checked on a device in a non-English locale.

@LeanBitLab
LeanBitLab merged commit 41baabb into main Nov 24, 2026
1 check passed
@LeanBitLab
LeanBitLab deleted the fix/settings-i18n-a11y branch November 24, 2026 12:39
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