Skip to content

i18n(slm): the locale generator leaves some strings in English where the main app's translations disagree #20199

Open

Description

@mrveiss

Problem

scripts/lift_locale_translations.py refuses a translation when the main app's copies of the same English string disagree below its majority threshold. So regenerating SLM locales left some strings in English, such as target in fr and others (reported from the review of merge train #20188), and "Overview" in de and es, and "Traces" in de and fr (PR #20077).

Fix

Settle the disagreeing main-app translations (a wrong or niche sense should use one word), then regenerate. Do not hand-edit SLM locale files. Measure the set from the generator's refusals first; the examples above are not the full list.

Acceptance criteria

  • The list of refused strings is measured and recorded.
  • Each is resolved in main-app locales, or left in English with a reason.
  • The SLM untranslated count drops by the measured amount, and a second generator run changes nothing.

Activity

  1. added
    bugSomething isn't working
    phase:M3.10New screens and cross-cutting close-out
    on Oct 31, 2026
  2. mrveiss commented on Oct 31, 2026

    @mrveiss
    OwnerAuthor

    Another case: agents.processMonitorTab.durationSeconds and durationMinutes (s, m) stay English in all SLM locales because scripts/lift_locale_translations.py has MIN_SOURCE_LENGTH = 4, so a one-letter unit never lifts. The main app has real values (min, ث, د and so on, PR for #19929). Short sources need a different route, such as a longer English source or an explicit SLM override the generator respects.

  3. github-actions commented on Nov 2, 2026

    @github-actions
    Contributor

    Landed via the merge train (#20598, merge 87eae8acf8) via #20420

  4. mrveiss commented on Nov 2, 2026

    @mrveiss
    OwnerAuthor

    Verified against origin/main after the merge train (PR #20598) landed (#20420 is a member).

    AC Evidence
    Refused strings measured and recorded scripts/lift_locale_translations.py now has --refusals (refusal_reason, collect_refusals), which prints per-locale counts by reason short, no-source, no-translation, tie. The measured counts for ten locales (tie 1377 over 114 distinct strings, no-translation 3170) are in the body of PR #20420; they are not on this issue.
    Each resolved in main-app locales, or left in English with a reason NOT MET. Only "Overview" in de and es was settled (autobot-frontend/src/i18n/locales/de.json, es.json). 112 or more tie strings per locale still need decisions; short, no-source and no-translation classes are described in the PR but not recorded per string.
    SLM untranslated count drops; a second run changes nothing NOT MET. Count fell by 2 tie keys in de and es only (96 to 94, 114 to 112). repo_tests/lift_locale_refusals_20199_test.py has no second-run check.

    Stays open for AC 2 and AC 3.

  5. mrveiss commented on Nov 8, 2026

    @mrveiss
    OwnerAuthor

    Closure check for merge train #21184 (merge commit 209d547, ancestor of main; #21030 is a Refs, not a Closes).

    AC Evidence Verdict
    The list of refused strings is measured and recorded. already ticked before this check met (prior)
    Each is resolved in main-app locales, or left in English with a reason. #21030 states the tie strings still need main-app decisions; no code evidence of resolution not met, left unchecked
    The SLM untranslated count drops by the measured amount, and a second generator run changes nothing. #21030 states the measured drop after regeneration is still pending not met, left unchecked

    Issue stays open; no body change.

  6. mrveiss commented on Nov 8, 2026

    @mrveiss
    OwnerAuthor

    Part landed: PR #21030 merged to main via merge train #21184 (merge commit 209d547): the SLM locale generator lifts mapped short strings from the main app. This PR referenced the issue (Refs), it did not close it; the issue is open and its remaining acceptance criteria are not claimed as delivered.

  7. mrveiss commented on Nov 20, 2026

    @mrveiss
    OwnerAuthor

    Branches issue-20199-locale-generator-refusals (PR #20420, head 5a584bf) and issue-20199-slm-locale-gen (PR #21030, head aecfd20) were deleted as zero-change branches: their content is already on main.

    On main: scripts/lift_locale_translations.py now names why a key keeps English (refusal_reason, collect_refusals, KEY_MAPPINGS at :82-90), covered by repo_tests/lift_locale_refusals_20199_test.py, and "Overview" is settled in de/es. Still unticked: AC2 (the full measured set is not shown resolved or reasoned; "Traces" in de/fr and target in fr are not covered by the landed test) and AC3 (before/after untranslated count and a no-op second run are not evidenced).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingphase:M3.10New screens and cross-cutting close-out

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions