← Back to Pull requests

Move every user-visible string to resources, and add Polish #41

Open
unknown opened this pull request with 240 lines diff across 3 files
View on GitHub
unknown unknown commented on Oct 30, 2026 23:02 UTC
Author

This moves every user-visible string into Android resources and adds Polish as the first translation. After this, a new language is translated XML only, with no code changes.

What changed

  • values/strings.xml holds the shared text: manifest, services, data layer and formatting helpers. Each screen area has its own strings_<area>.xml (settings, home, apps, review).

  • Sentences that were glued from pieces are now single strings with placeholders, because word order differs between languages. One example is the weekly review's "… than last week", which was built with .replace("about the same than", …).

  • Counts use plurals, and enums carry @StringRes ids instead of English labels.

  • The helpers in Format.kt take Resources. Dates are formatted in the language the strings resolved to (resources_locale). On a phone set to a language without a translation, month names are then English, like the text around them.

  • generateLocaleConfig with res/resources.properties: Android 13+ lists each translation under the per-app language setting. Adding a language needs nothing else.

  • TRANSLATING.md explains how to add a language.
  • English text is unchanged, apart from singulars that used to be wrong: "1 app", "1 unlock", "1 of 1 day".

    Testing

  • Built and used on a Galaxy S24 (SM-S921B, Android 17), in Polish.

  • On this branch, testDebugUnitTest, lintDebug and assembleRelease (the CI tasks) pass locally.

  • A script checked that English and Polish have the same keys with the same placeholders, and that every R.string used in the code exists.
  • Notes

  • No new dependencies and no new permissions.

  • This touches most screens, so it overlaps with #25 (HomeWidgets split) and #26 (dragging the fast apps). Whichever lands first, I'll rebase.

  • It is independent of my fixes PR. Whichever lands second gets a one-line follow-up for the alarm toast.

  • I left .claude/ alone.
  • Diff: 240 lines (+180 / -60) across 3 files Reviewer: Sridhar1030 Review duration: 6575m
    All Vouch review confidence checks passed
    Residual risk 0.22 = Change Risk (0.39) × (1 − Review Confidence (0.43)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.39 · 240 lines diff across 3 files
    0.39
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    42%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Shallow Review Depth shallow_review_depth
    0.344
    Diff Size diff_size
    0.328
    Real PR Conversation Timeline
    1 comments
    "Review active on #41"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 43.0% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 38.7% (MEDIUM) · Higher = larger blast radius
    38.7%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 43.0% · Lower = rushed or shallow review
    43.0%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 22.1% · Safe to merge
    22.1%