fix(menu): remove stale Debug tools help translation keys #273
No reviewers
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
area/renderer
area/saves
area/upscaling
good first issue
gpu/amd
gpu/igpu
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
needs measurements
platform/linux
platform/steam-deck
platform/windows
preview
priority
critical
priority
high
priority
low
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
testing wanted
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot!273
Loading…
Reference in a new issue
No description provided.
Delete branch "simonwjackson/Longshot:fix/damage-tools-help-i18n"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why
The Debug-tools help change merged with #138 left obsolete English lookup keys in the translation tables, breaking
test_menu_i18n.pyon main. Remove those stale entries without hiding the new damage-reset behavior behind incomplete translations.What changed
gpu/vk/menu_i18n.h: remove the old Debug-tools help entry from all 13 translated tables and decrement their counts.Flags and settings
None.
Measurements
main:
d9648863ab(2026-11-13)this PR: fix/damage-tools-help-i18n @
1a4deb45bdHardware: Linux/NixOS development machine; game-free check, no GPU or scene needed.
Method: two interleaved runs each of the unchanged
python -I -B tests/test_menu_i18n.py. This fixes the source-consistency check; it changes no rendered text because the stale keys already did not match.How to reproduce: run that command on main and this PR.
d96488631a4deb45test_texts_are_the_menusTesting
Tested: the unchanged translation-table checks and Debug visibility/navigation fixture pass (2 checks). C++17 syntax check of the complete table header with
-Wall -Wextra -Werrorpasses.git diff --checkpasses. Full game-free suite under the shared lock: 516 passed, 1 failed, 16 skipped in 515 s (Linux, 8 jobs). The only failure istest_linux_tools.py: its hardcoded/usr/bin:/binPATH omits Nix tools. That same failure reproduces on untouched main. The translation check passes; no tests were changed.Not tested: no game run or complete Windows/Linux game build. The change removes unreachable lookup entries and changes their counts; it does not alter runtime lookup or visible text.
Needs other testers: None for this data-only consistency fix. Complete translations of the expanded help are future localization work, not claimed here.
Screenshots
Nothing on screen changes: the current complete English hint already falls back to English on main because the obsolete keys do not match it.
Risk and rollback
The expanded hint stays English in non-English menus until retranslated. Other translated strings stay unchanged. Reverting restores the stale-key test failure; restoring these entries needs complete translations of the new text.
Reviewer notes
This repairs the main-branch failure reported by monsterlag on #138. The separate lethal-Half follow-up is #269. No game data, generated artifacts or translations with guessed new meaning are included.
Issues
See #138.
Checklist
For everyone
type(scope): description).main.git rebase origin/mainconfirmed currentd9648863before the first push.python -I -B tests/run_all.pyrun and passing (any failure that also fails onmainis named above).third_party/untouched (a new folder with aPROVENANCE.mdinstead).If applicable
Assisted-by:/Co-Authored-By:trailers.Full suite complete: 516 passed, 1 inherited Nix-PATH failure (test_linux_tools.py), 16 skipped. The unchanged menu translation check now passes. No new failures; marking this isolated table repair ready.
WIP: fix(menu): remove stale Debug tools help translation keysto fix(menu): remove stale Debug tools help translation keysApproved head
1a4deb45bdafter checking the one-file diff and independently reproducing the consistency repair on native Windows Python 3.14.7.Two sequential interleaved main
d906c8f4/ PR pairs of the unchanged test_menu_i18n.py give 1 failure / 0 failures, then 1 / 0 (5 cases each, median failures 1 -> 0). The exact main header blob is unchanged through current fetched main514591a3. The existing debug-tools source check also passes through run_all. A C++17 translation unit including the complete header passes llvm-mingw clang++ with -Wall -Wextra -Werror -fsyntax-only.All 13 removed entries are the same obsolete Debug-tools English key, and each table count decreases by one. There are no test or runtime lookup changes. The current English help already misses these obsolete keys on main, so removing them preserves its existing complete-English fallback rather than attaching an incomplete translated meaning to a new key.
No blocking findings. This is focused independent verification, not another whole-suite or game run; your full-suite result and its inherited Nix PATH failure remain separate. Note that PR255 now also repairs these same lookup entries, with expanded translations, so whichever lands second will need to resolve that overlap.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.