Repository navigation
Conversation
zackees
enabled auto-merge
October 16, 2026 06:10
github-merge-queue
Bot
removed this pull request from the merge queue due to a conflict with the base branch
Oct 16, 2026
The dialog's summary and causes were English only. The report must name a locale key and arguments for each, and the en-US strings must match the English JSON exactly. Refs #945
The report now carries summaryKey/summaryArgs and causeKeys next to the English text; the dialog renders them from the locale (falling back to the English text), and en-US.ini gains the strings. A Tier 1 test fills each en-US template with the report's args and requires the English JSON exactly, so the two cannot drift. GetStats' summary and causes stay English. Fixes #945
zackees
force-pushed
the
feat/945-localize-gpu-status
branch
from
October 16, 2026 06:56
06d8976 to
f9bf823
Compare
zackees
enabled auto-merge
October 16, 2026 06:57
Member
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #945 (part of #939).
The light's tooltip, title and labels already came from
en-US.ini, but the dialog's summary and causes were English text fromrust/obs-gpu-status, out of translators' reach.Change
summaryandcauses, it now carriessummaryKeyplussummaryArgs(filled in as %1, %2, …) andcauseKeys, in both the struct and the JSON.Localized()renders each key withApp()->TranslateStringandQString::arg. If a key is missing it falls back to the English text.en-US.ini: 5 summary strings and 3 cause strings.GetStats.gpuAcceleration.summaryandcausesstay English, so the obs-websocket output does not change.RED → GREEN
todo!().every_summary_and_cause_has_an_en_us_string_matching_the_english_textreadsfrontend/data/locale/en-US.ini, fills each template with the report's arguments, and requires Rust's English text exactly, for all five states. The locale and the code cannot drift apart.obs-gpu-statustests pass, clippy is clean, andGpuStatus.cppcompiles cleanly with-WallagainstOBSApp.hpp.