Skip to content

feat: Localize the GPU status summary and causes #945

Closed

Description

@zackees

Context

The light's tooltip, title and labels come from frontend/data/locale/en-US.ini. The summary and causes come from rust/obs-gpu-status/src/report.rs and are English only. Translators can't reach them.

Proposal

Rust returns message keys and parameters (e.g. {"key":"GpuStatus.Yellow","gpu":"...","renderer":"..."}). The frontend renders them through QTStr with locale strings. The summary and causes strings stay in English in the JSON, so the obs-websocket output does not change.

Acceptance criteria

  • RED: a test asserts that the report carries a key for each state and cause; it fails on stubs.
  • GREEN: the dialog text comes from en-US.ini. Changing a string there changes the dialog (checked by hand or with a frontend test).
  • GetStats.gpuAcceleration.summary is unchanged.

Decisions

  • Keep the English text in the JSON for API stability; add the keys alongside it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions