Skip to content

i18n polish: wake-ups and cached apps pluralization, QS tile label, Doze states and UID 0 mapping - #14

Merged
Order52 merged 1 commit into
Order52:mainfrom
tommynok:pr/i18n-polish-and-fixes
Nov 7, 2026
Merged

Order52 merged 1 commit into
Order52:mainfrom
tommynok:pr/i18n-polish-and-fixes

Conversation

@tommynok

@tommynok tommynok commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Summary of Changes

This PR includes a set of i18n polish items, localized pluralization handling, and small formatting fixes:

  1. Pluralization & Grammar Polish:

    • Wake locks count: Added language-aware pluralization for wake-ups (e.g. Russian 1 раз, 2/3/4 раза, 5-20 раз, 21 раз, etc. instead of fixed English times).
    • Ram cleaner results: Added plural formatting for closed cached apps (formatClosedApps) across Russian, Spanish, and default fallback.
    • Running services summary: Dynamic template formatting for %d service running / %d services running.
  2. Localization & UI Polish:

    • Quick Settings Tile label: Wrapped tile label in Tr.t(label) in MainActivity.addTile so added QS tiles display in the current UI language.
    • Doze sleep states: Localized deep and light sleep state values (ACTIVE, IDLE, INACTIVE, etc.) in Doze.java.
    • Translation sync: Added missing keys and aligned entries in ru.tsv and es.tsv.
  3. Battery Stats & UID Resolution:

    • Mapped raw UID 0 to "Root / Kernel" in wake locks and battery drain lists instead of showing numeric 0.
    • Filtered out non-capacity lines when parsing battery capacity in dumpsys batterystats.
    • Suppressed stderr (2>/dev/null) when piping dumpsys batterystats to grep to prevent broken pipe (SIGPIPE) warnings on some shells.

Tested and verified against upstream/main with scripts/check-repo.sh passing cleanly.

…parsing

- Support proper Russian plural forms for wake-up counts and cached apps

- Add localization for Quick Settings tile label in addTile

- Format running services count dynamically using localized templates

- Localize Doze sleep states and improve Doze screen descriptions

- Map UID 0 to 'Root / Kernel' in battery stats and wake lock views

- Suppress broken pipe stderr on batterystats grep and filter capacity lines

- Sync translation keys in ru.tsv and es.tsv
@Order52
Order52 merged commit 0bae909 into Order52:main Nov 7, 2026
7 checks passed
@Order52

Order52 commented Nov 7, 2026

Copy link
Copy Markdown
Owner

Merged, thank you. It first shipped in 1.23.0. On top of it the plural handling now lives in one helper (Tr.ruPlural) that both the wake-ups text and the cached-apps text use, and a unit test covers it. The latest release is 1.23.5.

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.

2 participants